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.
1---2name: tool-use-guardian3description: "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."4version: 1.0.05author:6 name: "sickn33 / Antigravity Community"7 github: sickn338tags: [tool, use, guardian, reliability]9category: reliability10platforms: [macos, linux, windows]11license: MIT12metadata:13 hermes:14 source: https://skillmd.com/skills/nous-hermeshub/tool-use-guardian15 upstream: "antigravity-awesome-skills"16 risk: "safe"17 date_added: "2026-03-13"18 original_author: "Antigravity Community"19---2021# Tool Use Guardian2223## Overview2425The 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.2627Free forever. Built by the Genesis Agent Marketplace.2829## Install3031```bash32npx skills add christopherlhammer11-ai/tool-use-guardian33```3435## When to Use This Skill3637- Use when tool calls return truncated or malformed JSON38- Use when APIs timeout or rate-limit your agent mid-task39- Use when a multi-step chain breaks partway through40- Use when you need automatic retry logic without writing it yourself41- Use for any agent workflow that depends on external tool reliability4243## How It Works4445### Step 1: Pre-Call Validation4647Before every tool call, Guardian validates:48- Required parameters are present and correctly typed49- The tool is not marked as "unreliable" from previous failures50- Request size is within known limits5152### Step 2: Failure Classification5354When a tool call fails, Guardian classifies the failure into one of 9 categories:5556| Failure Type | Recovery Action |57|---|---|58| Truncated JSON | Re-fetch with pagination or smaller chunks |59| API Timeout | Retry once with simpler request, then decompose |60| Rate Limit (429) | Exponential backoff, max 3 retries |61| Auth Expired | Flag for user intervention |62| Mid-chain Break | Resume from last successful checkpoint |63| Error-as-200 | Detect `{"error": "..."}` disguised as success |64| Schema Mismatch | Attempt auto-coercion, warn if lossy |65| Network Failure | Retry with jitter, max 2 attempts |66| Unknown Error | Log full context, escalate to user |6768### Step 3: Chain Protection6970For multi-step tool chains, Guardian maintains checkpoints. If step 4 of 7 fails, it resumes from step 4 — never restarts from scratch.7172### Step 4: Learning7374Guardian tracks failure patterns per tool. After 3+ failures of the same type, it marks the tool as unreliable and suggests alternatives.7576## Best Practices7778- ✅ Let Guardian wrap all external tool calls automatically79- ✅ Review Guardian's reliability reports to identify flaky tools80- ✅ Use checkpoint recovery for long chains81- ❌ Don't disable retry logic for rate-limited APIs82- ❌ Don't ignore repeated failure warnings8384## Related Skills8586- `@recallmax` - Long-context memory enhancement (also free from Genesis Marketplace)8788## Links8990- **Repo:** https://github.com/christopherlhammer11-ai/tool-use-guardian91- **Marketplace:** https://genesis-node-api.vercel.app92- **Browse skills:** https://genesis-marketplace.vercel.app9394## Limitations95- Use this skill only when the task clearly matches the scope described above.96- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.97- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.