Skip to main content
Glama

x402 Merchant Trust Check

x402_merchant_trust_check
Read-only

Merchant trust check for an x402 API before paying: pre-payment check of the endpoint: discovery files, live 402 terms, comparable USDC prices, latency, prompt-injection flags and public Coinbase CDP Bazaar payment statistics for the host. Heuristic, not a guarantee. $0.001; unreachable targets are free. Online shops: pre_purchase_merchant_trust_check.

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": {
      "target_url": "<target_url>"
    },
    "name": "x402_merchant_trust_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoOptional. A few words on why you are calling this tool. Recorded without your identity to improve the tools; leave out personal data.
target_urlYesPublic HTTPS x402 API endpoint to inspect before signing a payment authorization; this scan does not authorize payment.

Output Schema

NameRequiredDescriptionDefault
codeNo
domainNo
statusNo
sandboxNo
latency_msNo
safe_to_payNo
trust_scoreNo
matched_flagsNo
recommendationNo
valid_x402_configNo
prompt_injection_riskNo
marketplace_reputationNoPublic Coinbase CDP Bazaar statistics for the target host (30 days): listed, unique payers, calls, neutral demand signal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedOutput schema / anyOf
      Removed value: -[
      -  {
      -    "properties": {
      -      "domain": {
      -        "type": "string"
      -      },
      -      "latency_ms": {
      -        "type": "number"
      -      },
      -      "marketplace_reputation": {
      -        "description": "Public Coinbase CDP Bazaar statistics for the target host (30 days): listed, unique payers, calls, neutral demand signal.",
      -        "type": "object"
      -      },
      -      "matched_flags": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "prompt_injection_risk": {
      -        "enum": [
      -          "LOW",
      -          "MEDIUM",
      -          "CRITICAL"
      -        ],
      -        "type": "string"
      -      },
      -      "recommendation": {
      -        "type": "string"
      -      },
      -      "safe_to_pay": {
      -        "type": "boolean"
      -      },
      -      "sandbox": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "demo_domain": {
      -            "const": true,
      -            "type": "boolean"
      -          },
      -          "note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "demo_domain",
      -          "note"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "trust_score": {
      -        "maximum": 100,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "valid_x402_config": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "domain",
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "code": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "status": {
      -        "maximum": 599,
      -        "minimum": 400,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "code"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedOutput schema / description
      Added value: +"Fields only; full schema in GET /v1/catalog."
    • addedOutput schema / properties
      Added value: +{
      +  "code": {},
      +  "domain": {},
      +  "latency_ms": {},
      +  "marketplace_reputation": {
      +    "description": "Public Coinbase CDP Bazaar statistics for the target host (30 days): listed, unique payers, calls, neutral demand signal."
      +  },
      +  "matched_flags": {},
      +  "prompt_injection_risk": {},
      +  "recommendation": {},
      +  "safe_to_pay": {},
      +  "sandbox": {},
      +  "status": {},
      +  "trust_score": {},
      +  "valid_x402_config": {}
      +}
  2. Changed3 schema fields changed
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "domain": {
      +        "type": "string"
      +      },
      +      "latency_ms": {
      +        "type": "number"
      +      },
      +      "marketplace_reputation": {
      +        "description": "Public Coinbase CDP Bazaar statistics for the target host (30 days): listed, unique payers, calls, neutral demand signal.",
      +        "type": "object"
      +      },
      +      "matched_flags": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "prompt_injection_risk": {
      +        "enum": [
      +          "LOW",
      +          "MEDIUM",
      +          "CRITICAL"
      +        ],
      +        "type": "string"
      +      },
      +      "recommendation": {
      +        "type": "string"
      +      },
      +      "safe_to_pay": {
      +        "type": "boolean"
      +      },
      +      "sandbox": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "demo_domain": {
      +            "const": true,
      +            "type": "boolean"
      +          },
      +          "note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "demo_domain",
      +          "note"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "trust_score": {
      +        "maximum": 100,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "valid_x402_config": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "domain",
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "code": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "status": {
      +        "maximum": 599,
      +        "minimum": 400,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "code"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / description
      Removed value: -"Fields only; full schema in GET /v1/catalog."
    • removedOutput schema / properties
      Removed value: -{
      -  "code": {},
      -  "domain": {},
      -  "latency_ms": {},
      -  "marketplace_reputation": {
      -    "description": "Public Coinbase CDP Bazaar statistics for the target host (30 days): listed, unique payers, calls, neutral demand signal."
      -  },
      -  "matched_flags": {},
      -  "prompt_injection_risk": {},
      -  "recommendation": {},
      -  "safe_to_pay": {},
      -  "sandbox": {},
      -  "status": {},
      -  "trust_score": {},
      -  "valid_x402_config": {}
      -}
  3. Changed3 schema fields changed
    • removedOutput schema / anyOf
      Removed value: -[
      -  {
      -    "properties": {
      -      "domain": {
      -        "type": "string"
      -      },
      -      "latency_ms": {
      -        "type": "number"
      -      },
      -      "marketplace_reputation": {
      -        "description": "Public Coinbase CDP Bazaar statistics for the target host (30 days): listed, unique payers, calls, neutral demand signal.",
      -        "type": "object"
      -      },
      -      "matched_flags": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "prompt_injection_risk": {
      -        "enum": [
      -          "LOW",
      -          "MEDIUM",
      -          "CRITICAL"
      -        ],
      -        "type": "string"
      -      },
      -      "recommendation": {
      -        "type": "string"
      -      },
      -      "safe_to_pay": {
      -        "type": "boolean"
      -      },
      -      "sandbox": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "demo_domain": {
      -            "const": true,
      -            "type": "boolean"
      -          },
      -          "note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "demo_domain",
      -          "note"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "trust_score": {
      -        "maximum": 100,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "valid_x402_config": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "domain",
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "code": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "status": {
      -        "maximum": 599,
      -        "minimum": 400,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "code"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedOutput schema / description
      Added value: +"Fields only; full schema in GET /v1/catalog."
    • addedOutput schema / properties
      Added value: +{
      +  "code": {},
      +  "domain": {},
      +  "latency_ms": {},
      +  "marketplace_reputation": {
      +    "description": "Public Coinbase CDP Bazaar statistics for the target host (30 days): listed, unique payers, calls, neutral demand signal."
      +  },
      +  "matched_flags": {},
      +  "prompt_injection_risk": {},
      +  "recommendation": {},
      +  "safe_to_pay": {},
      +  "sandbox": {},
      +  "status": {},
      +  "trust_score": {},
      +  "valid_x402_config": {}
      +}
  4. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "domain": {
      -        "type": "string"
      -      },
      -      "latency_ms": {
      -        "type": "number"
      -      },
      -      "marketplace_reputation": {
      -        "description": "Public Coinbase CDP Bazaar statistics for the target host (30 days): listed, unique payers, calls, neutral demand signal.",
      -        "type": "object"
      -      },
      -      "matched_flags": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "prompt_injection_risk": {
      -        "enum": [
      -          "LOW",
      -          "MEDIUM",
      -          "CRITICAL"
      -        ],
      -        "type": "string"
      -      },
      -      "recommendation": {
      -        "type": "string"
      -      },
      -      "safe_to_pay": {
      -        "type": "boolean"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "trust_score": {
      -        "maximum": 100,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "valid_x402_config": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "domain",
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "code": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "status": {
      -        "maximum": 599,
      -        "minimum": 400,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "code"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "domain": {
      +        "type": "string"
      +      },
      +      "latency_ms": {
      +        "type": "number"
      +      },
      +      "marketplace_reputation": {
      +        "description": "Public Coinbase CDP Bazaar statistics for the target host (30 days): listed, unique payers, calls, neutral demand signal.",
      +        "type": "object"
      +      },
      +      "matched_flags": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "prompt_injection_risk": {
      +        "enum": [
      +          "LOW",
      +          "MEDIUM",
      +          "CRITICAL"
      +        ],
      +        "type": "string"
      +      },
      +      "recommendation": {
      +        "type": "string"
      +      },
      +      "safe_to_pay": {
      +        "type": "boolean"
      +      },
      +      "sandbox": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "demo_domain": {
      +            "const": true,
      +            "type": "boolean"
      +          },
      +          "note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "demo_domain",
      +          "note"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "trust_score": {
      +        "maximum": 100,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "valid_x402_config": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "domain",
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "code": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "status": {
      +        "maximum": 599,
      +        "minimum": 400,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "code"
      +    ],
      +    "type": "object"
      +  }
      +]
  5. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safe, external-facing nature is known. The description adds value beyond that: it is 'Heuristic, not a guarantee', costs $0.001, and unreachable targets are free – cost and reliability expectations an agent needs before deciding to call. It does not describe result shape, but an output schema exists to cover that.

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?

Content is front-loaded: the purpose and the enumeration of checks come first, then the caveat, price, and the sibling redirect. It is dense and mostly earned, though the colon-chained list in one sentence requires a second read and could be broken for scannability.

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 scan tool with an output schema, the description covers purpose, cost, reliability caveat, and the alternative tool, leaving return-value interpretation to the schema. The only gap is that it does not say what to do with the results, e.g. thresholds for proceeding with payment, but that is arguably beyond the tool's contract.

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 both target_url and context are already documented in the schema, including the constraint that the scan does not authorize payment. The description's phrase 'pre-payment check of the endpoint' only echoes this, adding no new syntax, format, or constraint detail. Baseline 3 applies when the schema carries the parameter semantics.

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?

The description names a specific verb and resource ('Merchant trust check for an x402 API before paying') and enumerates exactly what is inspected: discovery files, live 402 terms, USDC price comparisons, latency, prompt-injection flags, and CDP Bazaar statistics. It also names the sibling it is not (pre_purchase_merchant_trust_check for online shops), so an agent can route 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?

Timing is explicit ('before paying', 'before signing a payment authorization') and one concrete alternative is given for the online-shop case. What's missing is a when-not condition for other contexts, e.g. already-paid flows or non-x402 targets, but the core routing decision is covered.

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.