Skip to main content
Glama

Audit a full OpenAPI spec (paid, $5.00)

api_audit
Read-only

PAID over x402 inside this tool call ($5.00 USDC on Base, Polygon or Arc): everything in api_test_spec, plus auth diagnostics, full response-schema validation, and a corrected working request per endpoint. Public endpoints only in v1. Call once without payment to get the x402 PaymentRequired, then call again with the signed payment in _meta["x402/payment"].

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": "api_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
specNoInline OpenAPI spec JSON (instead of specUrl).
samplesNoSample values per endpoint, keyed by 'METHOD /path'.
specUrlNoURL of the OpenAPI spec JSON.

Output Schema

NameRequiredDescriptionDefault
baseNoServer base URL used
_paidNox402 receipt
totalNoEndpoints probed (capped at 50)
brokenNoEndpoints that are broken
cappedNoSpec had more than 50 endpoints
resultsNoPer-endpoint results with corrections: method, path, probed, status, verdict, failure class, schema, corrections
versionNoOpenAPI version
workingNoEndpoints that work
specValidNoSpec is valid OpenAPI
specErrorsNoSpec validation errors
needsSamplesNoEndpoints needing sample values

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Goes well beyond the annotations by disclosing the $5.00 USDC price, accepted chains, and the payment handshake sequence — critical context that readOnlyHint=true alone would hide (the call has a real monetary side effect). It also implies non-idempotency consistent with idempotentHint=false, since a second paid call costs again. It does not state whether payment is refunded on failure, how long the paid result is retained, or rate limits.

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

Conciseness4/5

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

Two dense sentences with the price and the value proposition front-loaded, which is the right ordering for a paid tool. Every clause carries information; only the chain list ('Base, Polygon or Arc') is mildly expendable relative to the core message.

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

Completeness4/5

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

For a paid, network-facing tool with an output schema already covering return values, the description supplies the pieces that matter: cost, currency, payment mechanics, and scope limits. The residual gap is that all three parameters are optional and the 'supply one of spec or specUrl' rule is never stated, which is a real calling hazard for a $5 invocation.

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

Parameters3/5

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

Schema description coverage is 100% (spec, specUrl, samples all documented inline), so the baseline is 3. The description adds nothing about the parameters themselves — notably it never clarifies that spec and specUrl are alternatives or what the samples object buys you, leaving the mutual-exclusivity rule for the agent to infer from the schema.

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

Purpose5/5

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

Names a specific resource (an OpenAPI spec) and enumerates the concrete deliverables: auth diagnostics, full response-schema validation, and a corrected working request per endpoint. It also positions itself as a superset of api_test_spec, so an agent can distinguish it from that sibling without opening either schema.

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

Usage Guidelines4/5

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

Gives an explicit two-step invocation protocol (unsigned call to obtain the x402 PaymentRequired, then a second call carrying the signed payment in _meta["x402/payment"]), which is exactly the guidance an agent needs to avoid a failed call. It also bounds scope with 'Public endpoints only in v1'. What's missing is an explicit 'choose api_audit over api_test_spec when X' statement, though the superset framing implies it.

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.