Skip to main content
Glama

Machine Utility Foundry (x402 + ICP Trust & Safety Oracles)

oracle_x402_counterparty

Read-onlyIdempotent

[x402 Paid: $0.01 Base USDC] Probe an unknown x402 endpoint for live HTTP 402 compliance, official Base USDC asset verification, price bait-and-switch anomalies, and ICP-anchored historical 0-100 trust score.

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": {
      "targetUrl": "<targetUrl>"
    },
    "name": "oracle_x402_counterparty"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodNoHTTP method used by the target x402 endpoint (auto-detected if omitted).
targetUrlYesPublic https:// URL of the external x402 paid endpoint to inspect before paying.
catalogQuotedUsdNoOptional advertised catalog price in USD to cross-check against live 402 bait-and-switch inflation.
maxAcceptableUsdNoOptional maximum price in USD your agent is willing to pay; triggers DO_NOT_PAY if exceeded.

Output Schema

NameRequiredDescriptionDefault
verdictYes
findingsYes
latencyMsYes
targetUrlYes
httpStatusYes
trustScoreYes
probeSha256Yes
probedAtUtcYes
x402VersionNo
paymentTermsYes
hasWellKnownX402Yes
historicalReputationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds context those annotations cannot express: the call itself costs $0.01 in Base USDC, and the probe actively checks for bait-and-switch price inflation and asset authenticity. It stops short of describing response shape or failure modes, but the cost disclosure is genuinely valuable.

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?

A single sentence, front-loaded with the paid-call tag so an agent sees the cost before anything else. The trailing list of checks is dense but each item is distinct; slight run-on quality keeps it from a 5.

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

Completeness5/5

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

With an output schema present, annotations covering the safety profile, and full schema coverage on all four parameters, the description only needs to convey purpose, cost, and what is verified — all of which it does. Nothing an agent needs before invoking it is missing.

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%, so each parameter is already documented with format and effect (including the DO_NOT_PAY trigger). The description only indirectly connects to parameters via 'price bait-and-switch anomalies', so the baseline of 3 applies rather than added semantic value.

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?

The description pairs a specific verb ('Probe') with a specific resource ('an unknown x402 endpoint') and enumerates exactly what is inspected: 402 compliance, Base USDC asset verification, price anomalies, and a 0-100 trust score. It is clear enough to separate this from aggregate siblings like get_x402_reputation_stats, though it never names an alternative explicitly.

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?

Usage is only implied: 'unknown x402 endpoint' and the schema's 'before paying' note suggest pre-payment due diligence. There is no explicit when-to-use/when-not-to-use statement or routing to sibling tools such as get_x402_reputation_stats or guard_evm_preflight_base.

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