Skip to main content
Glama
x402 Discovery & Trust MCP

x402 Discovery & Trust MCP

x402 Trust score for an endpoint

x402_trust_score

Returns a trust verdict for any x402 endpoint: score 0-100, grade, proceed/caution/avoid recommendation, price and flags, with live probing for unknown endpoints so agents know before they pay.

Instructions

The full trust verdict for one x402 endpoint: score 0-100, grade, recommendation (proceed, caution, avoid, ...), price, and flags. Unknown endpoints get live-probed on the spot.

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": {
      "resource": "<resource>"
    },
    "name": "x402_trust_score"
  }
}

Input Schema

NameRequiredDescriptionDefault
resourceYesFull x402 resource URL to evaluate, e.g. https://api.example.com/v1/thing

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.17.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It does add real value by stating that unknown endpoints get live-probed on the spot, which implies a network side effect and possible latency. However, it does not state whether the call is read-only, whether probing can fail or cost anything, or what the cost is.

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 compact sentences with no wasted wording; the return contents appear up front and the probing caveat is placed second. This structure is efficient, though the parenthetical "(proceed, caution, avoid, ...)" adds some slight clutter.

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, enumerating the returned fields (score, grade, recommendation, price, flags) is the necessary and correct approach. There is one well-documented parameter and the probing behavior is explained, so the definition is largely complete; however, it does not mention whether probing is slow or failure-prone.

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?

There is a single required parameter, and the schema already documents it fully (100% coverage) with a URL example. The description only reinforces that the resource is an endpoint; the schema does the rest, so the baseline of 3 applies.

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 names a specific resource (one x402 endpoint) and a specific output ("full trust verdict"), and enumerates the verdict contents (score 0-100, grade, recommendation, price, flags). "One endpoint" and "full" implicitly contrast it with the bulk and preview siblings, though no sibling is named explicitly.

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?

It says nothing about when to call this instead of x402_trust_bulk or x402_trust_preview. The only usage signal is the note that unknown endpoints are live-probed, which hints at latency but gives no explicit when-to-use or when-not-to-use guidance.

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