Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Machine Utility Foundry (x402 + ICP Trust & Safety Oracles). If you published it, claim ownership there.

oracle_x402_counterparty

Read-onlyIdempotent

[x402 Paid: $0.005 Base USDC] Probe an unknown x402 endpoint for live HTTP 402 compliance, official Base USDC asset verification, price bait-and-switch anomalies, wash-trade detection, 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. Changed4 schema fields changed
    • addedOutput schema / properties / historicalReputation / properties / settledCalls30d
      Added value: +{
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / historicalReputation / properties / uniquePayers30d
      Added value: +{
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / historicalReputation / properties / washTradeSuspected
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / historicalReputation / required
      Previous value: -[
      -  "knownEndpoint",
      -  "knownMerchantWallet",
      -  "endpointObservations",
      -  "baitAndSwitchDetected",
      -  "priceSpikeDetected",
      -  "ledgerProof"
      -]New value: +[
      +  "knownEndpoint",
      +  "knownMerchantWallet",
      +  "endpointObservations",
      +  "baitAndSwitchDetected",
      +  "priceSpikeDetected",
      +  "washTradeSuspected",
      +  "ledgerProof"
      +]
  2. Changed6 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / catalogQuotedUsd / description
      Previous value: -"Optional catalog price in USD to detect live 402 price bait-and-switch"New value: +"Optional advertised catalog price in USD to cross-check against live 402 bait-and-switch inflation."
    • addedInput schema / properties / maxAcceptableUsd / description
      Added value: +"Optional maximum price in USD your agent is willing to pay; triggers DO_NOT_PAY if exceeded."
    • addedInput schema / properties / method / description
      Added value: +"HTTP method used by the target x402 endpoint (auto-detected if omitted)."
    • addedInput schema / properties / targetUrl / description
      Added value: +"Public https:// URL of the external x402 paid endpoint to inspect before paying."
    • addedInput schema / properties / targetUrl / maxLength
      Added value: +2048
  3. Changed4 schema fields changed
    • addedInput schema / properties / catalogQuotedUsd
      Added value: +{
      +  "description": "Optional catalog price in USD to detect live 402 price bait-and-switch",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / maxAcceptableUsd / minimum
      Added value: +0
    • addedInput schema / properties / targetUrl / format
      Added value: +"uri"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "findings": {
      +      "items": {
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "severity": {
      +            "enum": [
      +              "CRITICAL",
      +              "WARN",
      +              "INFO"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "severity",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "hasWellKnownX402": {
      +      "type": "boolean"
      +    },
      +    "historicalReputation": {
      +      "properties": {
      +        "baitAndSwitchDetected": {
      +          "type": "boolean"
      +        },
      +        "catalogAdvertisedUsd": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "endpointEmaLatencyMs": {
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "endpointObservations": {
      +          "type": "integer"
      +        },
      +        "endpointUptime402Rate": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "firstSeenUtc": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "historicalMaxUsd": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "historicalMinUsd": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "knownEndpoint": {
      +          "type": "boolean"
      +        },
      +        "knownMerchantWallet": {
      +          "type": "boolean"
      +        },
      +        "lastSeenUtc": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "ledgerProof": {
      +          "properties": {
      +            "icpAnchorReceiptId": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "snapshotSha256": {
      +              "type": "string"
      +            },
      +            "trackedEndpoints": {
      +              "type": "integer"
      +            },
      +            "trackedWallets": {
      +              "type": "integer"
      +            },
      +            "updatedAtUtc": {
      +              "type": "string"
      +            },
      +            "verifyUrl": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "updatedAtUtc",
      +            "trackedEndpoints",
      +            "trackedWallets",
      +            "snapshotSha256"
      +          ],
      +          "type": "object"
      +        },
      +        "merchantHealthyRate": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "merchantWalletEndpoints": {
      +          "type": "integer"
      +        },
      +        "priceSpikeDetected": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "knownEndpoint",
      +        "knownMerchantWallet",
      +        "endpointObservations",
      +        "baitAndSwitchDetected",
      +        "priceSpikeDetected",
      +        "ledgerProof"
      +      ],
      +      "type": "object"
      +    },
      +    "httpStatus": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "latencyMs": {
      +      "type": "integer"
      +    },
      +    "paymentTerms": {
      +      "properties": {
      +        "amountAtomic": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "asset": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "estimatedUsd": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "hasBazaarSchema": {
      +          "type": "boolean"
      +        },
      +        "isOfficialBaseUsdc": {
      +          "type": "boolean"
      +        },
      +        "network": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "payTo": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "network",
      +        "asset",
      +        "isOfficialBaseUsdc",
      +        "payTo",
      +        "amountAtomic",
      +        "estimatedUsd",
      +        "hasBazaarSchema"
      +      ],
      +      "type": "object"
      +    },
      +    "probeSha256": {
      +      "type": "string"
      +    },
      +    "probedAtUtc": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "targetUrl": {
      +      "type": "string"
      +    },
      +    "trustScore": {
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "verdict": {
      +      "enum": [
      +        "SAFE_TO_PAY",
      +        "CAUTION",
      +        "DO_NOT_PAY"
      +      ],
      +      "type": "string"
      +    },
      +    "x402Version": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "verdict",
      +    "trustScore",
      +    "targetUrl",
      +    "httpStatus",
      +    "latencyMs",
      +    "paymentTerms",
      +    "hasWellKnownX402",
      +    "historicalReputation",
      +    "findings",
      +    "probeSha256",
      +    "probedAtUtc"
      +  ],
      +  "type": "object"
      +}
  4. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and openWorld, so safety is covered. The description adds genuinely new behavior: this is a paid call ($0.005 Base USDC), it performs a live outbound probe rather than reading a cached record, and it returns a historical 0-100 trust score. It does not mention rate limits, timeouts, or what happens if the target is unreachable, so it stops short of a 5.

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 dense sentence with the cost/currency tag front-loaded, so an agent immediately sees the paid nature before the capability list. The comma-separated check list is slightly run-on, but every clause names a distinct detection capability and nothing is redundant.

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 an output schema present, the description needn't explain return values, and annotations plus full schema coverage carry the safety and parameter burden. What remains is a missing statement of when this fits versus sibling reputation/recommendation tools; otherwise the definition is sufficient to invoke correctly.

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 all four parameters are already documented in the input schema, including auto-detection of method and DO_NOT_PAY behavior on maxAcceptableUsd. The description's mention of 'price bait-and-switch anomalies' loosely motivates catalogQuotedUsd but adds no syntax or edge-case detail beyond the schema, so the baseline 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 opens with a specific verb and object ('Probe an unknown x402 endpoint') and enumerates the concrete checks performed: HTTP 402 compliance, Base USDC asset verification, price anomalies, wash-trade detection, and a 0-100 trust score. That is enough to distinguish it from sibling tools like get_x402_reputation_stats or preview_x402_recommendation, 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: 'probe an unknown endpoint' and the word 'counterparty' suggest pre-payment due diligence, but the description never states when to choose this over the reputation-stats or recommendation siblings. The 'before paying' framing appears in the schema's targetUrl text, not in the description itself, so the agent must infer the workflow context.

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