Skip to main content
Glama

Get API X402 audit

get_api_x402_audit

Audits one page for an agent, paid per call: no account, no allowance and no tab. The report of POST /api/audit, sold per call to agents. A request without payment gets the 402 with the price; a paid one gets the report in the same response, with the payment in cobranca. Nothing is stored: the report has no id and no tab. A page that does not open is not charged. Writing and maintaining a page fetcher, HTML checks, and a report schema, with deterministic rules and no LLM. This is not a browser performance or accessibility test, and a technical score does not prove ranking, revenue, or the absence of security defects.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "get_api_x402_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe page to audit, `http` or `https`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the payment flow: a request without payment returns 402 with a price, a paid request returns the report with payment details in `cobranca`, nothing is persisted, and a page that does not open is not charged. That is materially useful behavior the annotations do not carry. The readOnlyHint=false is not contradicted, since a charge is a state effect even though no report is stored.

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?

The opening sentence front-loads the core action, but the paragraph is bloated with fragment sentences ('The report of `POST /api/audit`, sold per call to agents') and repeated phrasing ('no account, no allowance and no tab' / 'no `id` and no tab'). Several sentences could be merged without losing information.

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?

With no output schema, the description carries the return-value burden and does so by describing the report plus the `cobranca` payment field and the 402 case. It also bounds expectations (deterministic rules, no LLM, no ranking/revenue/security guarantee), which is adequate for a one-parameter tool.

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?

With a single parameter and 100% schema description coverage, the schema already defines `url` fully. The description's mention of http/https adds nothing beyond the schema, so the baseline of 3 is appropriate.

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 and resource (audits one page, paid per call) and adds a negative scope statement ('not a browser performance or accessibility test'). It does not differentiate itself from the obviously related siblings such as audit_url, audit_site, or get_audit, so an agent must infer which single-page audit variant applies.

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

Usage Guidelines3/5

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

It conveys the operating context (agent-paid, no account, per-call) and one exclusion (not a perf/accessibility test), but gives no explicit when-to-use framing versus the other audit siblings. The agent learns the cost model but not how to choose this tool over alternatives.

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.