- Home
- Skills
- Agents & Orchestration
- Tool-Call Contract Auditor Pro
More screenshots
Works with the AI Agents you already use
Tool-Call Contract Auditor Pro
Schema lint, replay fixtures, CI gate, and repo-wide MCP tool-surface scan. Free teaches the checklist; Pro automates the merge gate.
$9.99
Tool-Call Contract Auditor Pro
Example session with this skill installed
Run a contract audit on my create_invoice tool using the schemas/create_invoice.schema.json and the fixtures/bad-args.json trace. Output a verdict report.
- Read your context and instructions
- Compiled the tool-call contract auditor
I have performed a contract audit on the create_invoice tool. The linting process identified a contract break where the agent attempted to pass a string to a field requiring an integer.
Tool-Call Contract Audit Results
| Check | Result | Details |
|---|---|---|
| Schema Lint | FAIL | Found 1 validation error in fixtures/bad-args.json |
| Contract Match | PASS | Call matches defined templates/tool-contract.yml rules |
| Side-Effect Class | CRITICAL | Non-idempotent: Requires Idempotency-Key which was missing |
| Verdict | BAD_ARGS | Type mismatch on property amount_cents |
Error Log
{
"status": "error",
"error_type": "arg_mismatch",
"field": "amount_cents",
"expected": "integer",
"actual": "string",
"message": "Value '1200.50' is not of type 'integer'"
}
Post-Call Verdict
The agent attempted a double-fire on a non-idempotent tool after a timeout. Because the Idempotency-Key was not present in the original schema, this would have resulted in a duplicate invoice in production.
Next steps
- Update
schemas/create_invoice.schema.jsonto strictly enforce theintegertype foramount_cents. - Implement an
Idempotency-Keyrequirement in the tool contract to preventdouble-fireerrors. - Run
python3 scripts/replay_tool_trace.pyagainst the updated contract to verify the fix.
Connects securely to your tools. The creator never sees your data.
About this skill
Schema lint, replay fixtures, CI gate, and repo-wide MCP tool-surface scan. Free teaches the checklist; Pro automates the merge gate.
Free vs Pro
- Free audits tool use in conversation with a checklist and failure taxonomy; Pro lints JSON Schema and OpenAPI tool args via
scripts/lint_tool_schemas.py - Free stops at chat guidance; Pro replays recorded traces against contracts via
scripts/replay_tool_trace.py - Free has no CI story; Pro ships
templates/github-action-tool-contract.ymlthat fails the merge on contract breaks - Free leaves reporting to chat; Pro exports Markdown/JSON verdict reports for pull requests
- Free covers one session; Pro adds per-tool contract YAML — allow/deny, max retries, side-effect class
Upgrade Path
Upgrade when you maintain more than three tools, ship MCP surfaces to others, or need a merge gate. Free stays useful for a single-session review; Pro is for teams that change tools every sprint.
Free version: https://www.agensi.io/skills/tool-call-contract-auditor
The Problem
A checklist catches a bad call in conversation, then the same contract break ships in the next pull request because nothing in CI reads the tool schema. Schema drift stays invisible until a caller passes a string where the schema says integer, and by then the invoice exists twice.
The free skill has no artifact a reviewer can open and no gate that fails a branch. Reviewers get a chat transcript, not a verdict.
What You Get
scripts/lint_tool_schemas.py— validate tool arguments against JSON Schema or OpenAPI params, with JSON output for CIscripts/replay_tool_trace.py— replay recorded fixtures against a contract file and return PASS or FAIL per fixturetemplates/tool-contract.yml— per-tool allow/deny, max retries, side-effect class, required idempotencytemplates/github-action-tool-contract.yml— CI wiring that fails the merge on a contract breaktemplates/verdict-report.md— a pull-request-ready export a reviewer can read in one pagefixtures/— recorded traces for good-call, bad-args, double-fire, partial-as-success, skip-retryschemas/— sample tool JSON Schemas forcreate_invoiceandtransfer_fundsreferences/failure-taxonomy.mdandreferences/idempotency-patterns.md— the same shared vocabulary as the free skill
Why This Beats Prompting It Yourself
Asking an agent to check the tool schema returns prose. The Pro scripts return an exit status. A demo fixture pair makes the difference concrete: before, the agent retries create_invoice four times and creates four invoices; with Pro, the replay fixture INV-create-001 FAILs on a missing Idempotency-Key and CI blocks the merge until the contract YAML is updated.
Example Session
Run the lint against a schema and a recorded bad call, then replay the fixture set against the contract.
Lint reports one validation error: amount_cents received the string "1200.50" where the schema requires an integer. Replay reports the double-fire fixture as FAIL — a non-idempotent tool re-called after a timeout with no idempotency key in the original schema. Verdict is BAD_ARGS on the first, CRITICAL side-effect on the second, and the merge is blocked until both are fixed.
Use Cases
- Block pull requests that break a tool JSON Schema or OpenAPI parameter contract
- Replay historical agent traces against a contract to find which failure modes actually occurred
- Standardize retry and idempotency rules across a repo of MCP tools
- Produce a verdict report a reviewer can attach to a pull request
Known Limitations
- Uses the Python standard library subset for JSON Schema validation unless
jsonschemais installed - Does not detect agent loops or prompt-injection attempts
- Limited to tools exposed to the agent harness
- Does not replace provider-side idempotency
Tags: agents, mcp, tools, reliability, ci, json-schema Version: 1.0
Standard library subset used for JSON Schema validation unless jsonschema is installed. Does not detect agent loops or prompt-injection attempts. Limited to tools exposed to the agent harness.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
Requires