Skip to main content
Glama

peer_challenge

Validate a peer's CertBeforePay certificate against a policy before an x402 payment to confirm counterparty compliance.

Instructions

Verify a peer's CertBeforePay certificate against a policy with POST /v1/peer/challenge. Paid: $0.01 in USDC on Base via x402 from your key.

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": {
      "certificate": "<certificate>"
    },
    "name": "peer_challenge"
  }
}

Input Schema

NameRequiredDescriptionDefault
min_scoreNo
certificateYesThe peer's CertBeforePay certificate
require_tierNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses the payment requirement ($0.01 USDC on Base via x402 from your key) and the HTTP endpoint, but says nothing about what a failed verification returns, whether the charge is incurred on failure, or any auth/error behavior.

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 tight sentences, front-loaded with the action and resource, followed by cost and endpoint. Nothing is wasted, though the payment clause is dense and could be split for readability.

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

Completeness2/5

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

With a nested certificate object, no output schema, and no annotations, the description should explain the certificate shape and what a successful or failed verification yields. It omits both, leaving an agent unable to construct a correct call beyond the required field name.

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

Parameters2/5

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

Schema description coverage is only 33% across three parameters. The phrase 'against a policy' hints at min_score and require_tier, but the nested certificate object's structure and the accepted tier values are undocumented in both schema and description.

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: 'Verify a peer's CertBeforePay certificate against a policy,' plus the underlying endpoint POST /v1/peer/challenge. It does not differentiate from the siblings gate and wallet_check, so an agent must infer which one 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?

Usage is only implied by the word 'Verify' and the mention of a peer certificate; there is no explicit when-to-use statement, no exclusion, and no pointer to gate or wallet_check as alternatives.

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

Deploy Server

Other Tools