Tool Use Guardian
Overview
The reliability wrapper every AI agent needs. Monitors tool calls, auto-retries failures, fixes truncated responses, and learns which tools are unreliable — so you never lose your chain of thought.
Free forever. Built by the Genesis Agent Marketplace.
Install
npx skills add christopherlhammer11-ai/tool-use-guardian
When to Use This Skill
- Use when tool calls return truncated or malformed JSON
- Use when APIs timeout or rate-limit your agent mid-task
- Use when a multi-step chain breaks partway through
- Use when you need automatic retry logic without writing it yourself
- Use for any agent workflow that depends on external tool reliability
How It Works
Step 1: Pre-Call Validation
Before every tool call, Guardian validates:
- Required parameters are present and correctly typed
- The tool is not marked as "unreliable" from previous failures
- Request size is within known limits
Step 2: Failure Classification
When a tool call fails, Guardian classifies the failure into one of 9 categories:
| Failure Type |
Recovery Action |
| Truncated JSON |
Re-fetch with pagination or smaller chunks |
| API Timeout |
Retry once with simpler request, then decompose |
| Rate Limit (429) |
Exponential backoff, max 3 retries |
| Auth Expired |
Flag for user intervention |
| Mid-chain Break |
Resume from last successful checkpoint |
| Error-as-200 |
Detect {"error": "..."} disguised as success |
| Schema Mismatch |
Attempt auto-coercion, warn if lossy |
| Network Failure |
Retry with jitter, max 2 attempts |
| Unknown Error |
Log full context, escalate to user |
Step 3: Chain Protection
For multi-step tool chains, Guardian maintains checkpoints. If step 4 of 7 fails, it resumes from step 4 — never restarts from scratch.
Step 4: Learning
Guardian tracks failure patterns per tool. After 3+ failures of the same type, it marks the tool as unreliable and suggests alternatives.
Best Practices
- ✅ Let Guardian wrap all external tool calls automatically
- ✅ Review Guardian's reliability reports to identify flaky tools
- ✅ Use checkpoint recovery for long chains
- ❌ Don't disable retry logic for rate-limited APIs
- ❌ Don't ignore repeated failure warnings
Related Skills
@recallmax - Long-context memory enhancement (also free from Genesis Marketplace)
Links
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Source: sickn33/agentic-awesome-skills → skills/tool-use-guardian/SKILL.md
Also appears in: sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/tool-use-guardian/SKILL.md, sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/tool-use-guardian/SKILL.md
1---
2name: tool-use-guardian
3description: "FREE — Intelligent tool-call reliability wrapper. Monitors, retries, fixes, and learns from tool failures. Auto-recovers from truncated JSON, timeouts, rate limits, and mid-chain failures."
4allowed-tools: "[claude, cursor, codex, gemini, copilot, windsurf, antigravity]"
5category: general-purpose
6source_repo: sickn33/agentic-awesome-skills
7source_path: "skills/tool-use-guardian/SKILL.md"
8source_url: https://github.com/sickn33/agentic-awesome-skills/blob/HEAD/skills/tool-use-guardian/SKILL.md
9metadata:
10 source: https://skillmd.com/skills/sickn33/tool-use-guardian
11---
12
13
14# Tool Use Guardian
15
16## Overview
17
18The reliability wrapper every AI agent needs. Monitors tool calls, auto-retries failures, fixes truncated responses, and learns which tools are unreliable — so you never lose your chain of thought.
19
20Free forever. Built by the Genesis Agent Marketplace.
21
22## Install
23
24```bash
25npx skills add christopherlhammer11-ai/tool-use-guardian
26```
27
28## When to Use This Skill
29
30- Use when tool calls return truncated or malformed JSON
31- Use when APIs timeout or rate-limit your agent mid-task
32- Use when a multi-step chain breaks partway through
33- Use when you need automatic retry logic without writing it yourself
34- Use for any agent workflow that depends on external tool reliability
35
36## How It Works
37
38### Step 1: Pre-Call Validation
39
40Before every tool call, Guardian validates:
41- Required parameters are present and correctly typed
42- The tool is not marked as "unreliable" from previous failures
43- Request size is within known limits
44
45### Step 2: Failure Classification
46
47When a tool call fails, Guardian classifies the failure into one of 9 categories:
48
49| Failure Type | Recovery Action |
50|---|---|
51| Truncated JSON | Re-fetch with pagination or smaller chunks |
52| API Timeout | Retry once with simpler request, then decompose |
53| Rate Limit (429) | Exponential backoff, max 3 retries |
54| Auth Expired | Flag for user intervention |
55| Mid-chain Break | Resume from last successful checkpoint |
56| Error-as-200 | Detect `{"error": "..."}` disguised as success |
57| Schema Mismatch | Attempt auto-coercion, warn if lossy |
58| Network Failure | Retry with jitter, max 2 attempts |
59| Unknown Error | Log full context, escalate to user |
60
61### Step 3: Chain Protection
62
63For multi-step tool chains, Guardian maintains checkpoints. If step 4 of 7 fails, it resumes from step 4 — never restarts from scratch.
64
65### Step 4: Learning
66
67Guardian tracks failure patterns per tool. After 3+ failures of the same type, it marks the tool as unreliable and suggests alternatives.
68
69## Best Practices
70
71- ✅ Let Guardian wrap all external tool calls automatically
72- ✅ Review Guardian's reliability reports to identify flaky tools
73- ✅ Use checkpoint recovery for long chains
74- ❌ Don't disable retry logic for rate-limited APIs
75- ❌ Don't ignore repeated failure warnings
76
77## Related Skills
78
79- `@recallmax` - Long-context memory enhancement (also free from Genesis Marketplace)
80
81## Links
82
83- **Repo:** https://github.com/christopherlhammer11-ai/tool-use-guardian
84- **Marketplace:** https://genesis-node-api.vercel.app
85- **Browse skills:** https://genesis-marketplace.vercel.app
86
87## Limitations
88- Use this skill only when the task clearly matches the scope described above.
89- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
90- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
91
92---
93
94**Source:** [`sickn33/agentic-awesome-skills`](https://github.com/sickn33/agentic-awesome-skills) → `skills/tool-use-guardian/SKILL.md`
95
96**Also appears in:** `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/tool-use-guardian/SKILL.md`, `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/tool-use-guardian/SKILL.md`