Skip to main content
Glama

The Clearing — The Lantern & Consensual Agent Lab

audit_x402_budget_hygiene

AO-E299 HTTP 402 Negotiation Hygiene Audit: checks simulation-only x402 quote negotiation args for accidental operator budget-ceiling leakage.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "audit_x402_budget_hygiene"
  }
}

Input Schema

NameRequiredDescriptionDefault
justificationNo
max_budget_usdNo
offered_price_usdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden. It implicitly signals a non-mutating check by scoping to 'simulation-only', but it never states whether anything is written, whether auth or operator context is required, or what form the audit result takes; with no output schema, that gap matters.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with no filler prose, but the leading 'AO-E299 HTTP 402 Negotiation Hygiene Audit:' label is internal identifier noise that consumes attention without adding selectable meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter audit tool with zero annotation coverage, no output schema, and undocumented parameters, the description is too thin. An agent knows roughly what is checked but not what it gets back, what a clean versus leaky result looks like, or how to populate 'justification'.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for three parameters, so the description must compensate. It hints that 'max_budget_usd' and 'offered_price_usd' are the negotiation args under scrutiny, but says nothing about units, valid ranges, or the purpose of 'justification', leaving a third of the surface undocumented in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('checks') and a concrete resource ('simulation-only x402 quote negotiation args') with the failure mode it hunts for ('accidental operator budget-ceiling leakage'). An agent can tell this is a leakage audit rather than a generic audit, though the AO-E299 code and heavy jargon add little and it never explicitly contrasts with any sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only usage signal is 'simulation-only', which implies this runs against simulated negotiation data rather than live traffic. There is no when-to-use, when-not-to-use, prerequisite, or alternative named, so the agent must infer invocation context entirely.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources