05 · MCP Tools, Usage & Rate Limits Reference

SSOT Status: Authoritative Specification

Machine Source: spec/fiderail.manifest.json (schemaVersion: 1.0.0)

Release: v2.3.5


1. Transport Modes & Tool Availability Matrix

FideRail ships a dual-mode Model Context Protocol (MCP) server supporting JSON-RPC 2.0 across protocol versions 2025-06-18, 2025-03-26, and 2024-11-05:

Tool NameRemote HTTP /mcpLocal stdio @fiderail/mcpOutbound Network ProbeRate-Limit Bucket (Public Node)
check_agent_trustYesYesNoGeneral (120 req/min/IP)
preflight_payment_guardYesYesNoGeneral (120 req/min/IP)
list_audited_agentsYesYesNoGeneral (120 req/min/IP)
discover_trusted_servicesYesYesNoGeneral (120 req/min/IP)
diagnose_x402_endpointYesYesYes (fail-closed Worker proxy)Diagnose (6 req/min/IP, conc. 4)
guarded_x402_fetchDisabled (local-only)YesLocal client fetch onlyN/A (isError: true on /mcp)

Why is guarded_x402_fetch local-only? Maintaining per-buyer spend ledgers, circuit-breaker state, and payment signing belongs strictly on the caller's edge machine (ZERO_CUSTODY), and keeping arbitrary fetch proxy execution off the public node prevents open-proxy abuse. Calling guarded_x402_fetch on POST https://api.fiderail.com/mcp returns isError: true with zero outbound requests.


2. Tool-by-Tool Reference

2.1 check_agent_trust

Look up the cross-chain anti-sybil trust-v2 score, confidence, dual HHI payer concentration, USD volume, associated credit isolation, and risk flags for an agent/payee wallet before paying.

ParameterTypeRequiredDefault / Constraints
chainstringYesOne of base, solana, arbitrum, polygon
addressstringYes0x... EVM address or Base58 Solana public key
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "check_agent_trust",
    "arguments": {
      "chain": "base",
      "address": "0x7284d41b5b852f2bd4c99bdf95043d84452d299c"
    }
  }
}

2.2 preflight_payment_guard

Deterministic pre-flight payment firewall evaluating a planned stablecoin spend against hard single-transaction and daily caps, counterparty trust-v2 score, reciprocal wash-trading loops, single-payer concentration, isolated payer farms, and non-x402 whale channels.

ParameterTypeRequiredDefault / Constraints
chainstringYesOne of base, solana, arbitrum, polygon
counterpartystringYesRecipient EVM 0x... or Solana Base58 wallet
amountUsdcnumberYesPlanned spend in USD/USDC (e.g. 0.05)
spentTodayUsdcnumberNo0 (cumulative USD spent today)
maxSingleTxUsdcnumberNo1.0 (clamped by FIDERAIL_HOST_MAX_SINGLE_USDC)
maxDailyUsdcnumberNo10.0 (clamped by FIDERAIL_HOST_MAX_DAILY_USDC)
minTrustScorenumberNo40 (clamped by FIDERAIL_HOST_MIN_TRUST_SCORE, 0-100)
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "preflight_payment_guard",
    "arguments": {
      "chain": "base",
      "counterparty": "0x7284d41b5b852f2bd4c99bdf95043d84452d299c",
      "amountUsdc": 0.05,
      "spentTodayUsdc": 0.2
    }
  }
}

2.3 list_audited_agents

Browse indexed x402 payee profiles across Base, Solana, Arbitrum, and Polygon sorted by trust-v2 score.

ParameterTypeRequiredDefault / Constraints
chainstringNo"all" (or base, solana, arbitrum, polygon)
minScorenumberNo0 (0-100)
excludeFlaggedbooleanNofalse
limitnumberNo15 (range 1-100)
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "list_audited_agents",
    "arguments": {
      "chain": "base",
      "minScore": 70,
      "excludeFlagged": true,
      "limit": 10
    }
  }
}

2.4 discover_trusted_services

Search Coinbase CDP Bazaar, PayAI Discovery, and Open Bazaar capabilities joined with live cross-chain trust-v2 scores and L1/L2 liveness health.

ParameterTypeRequiredDefault / Constraints
querystringNo"" (keyword across name, description, tags, URL)
chainstringNo"all" (or base, solana, arbitrum, polygon)
maxPriceUsdcnumberNonull (optional per-call USD ceiling)
minTrustScorenumberNonull (0-100)
excludeFlaggedbooleanNotrue
limitnumberNo15 (range 1-100)
{
  "jsonrpc": "2.0",
  "id": 4,
  "method": "tools/call",
  "params": {
    "name": "discover_trusted_services",
    "arguments": {
      "query": "weather",
      "maxPriceUsdc": 0.05,
      "excludeFlagged": true,
      "limit": 5
    }
  }
}

2.5 diagnose_x402_endpoint

Zero-payment HTTP 402 compliance grader checking PAYMENT-REQUIRED header limits (8 KB aiohttp / 16 KB Node crash thresholds for x402#3803), Bazaar inputSchema quirks, HTTPS usage, and quoted price consistency.

ParameterTypeRequiredDefault / Constraints
urlstringYesPublic http:// or https:// URL (<= 2048 chars; control/CRLF/BiDi chars, %00/%0a/%0d, and private/loopback DNS IPs rejected)
methodstringNo"GET" (strictly "GET" or "POST")
{
  "jsonrpc": "2.0",
  "id": 5,
  "method": "tools/call",
  "params": {
    "name": "diagnose_x402_endpoint",
    "arguments": {
      "url": "https://x402.clashofcoins.com/x402/cheap-health",
      "method": "GET"
    }
  }
}

2.6 guarded_x402_fetch (Local stdio Only)

Full non-custodial Guard-and-Pay probe featuring atomic SQLite WAL budget reservation, outbound secret/PII scrubbing, immutable host policy clamping, 3-tier HITL approval gate, Quote-to-Pay digest binding, 60s idempotency deduplication, HTTP 5xx circuit breaker, and salted fiderail-sar-v2 receipt generation.

ParameterTypeRequiredDefault / Constraints
urlstringYesTarget x402 HTTP endpoint URL
methodstringNo"GET" (strictly "GET" or "POST")
preferredChainstringNo"base" (base, solana, arbitrum, polygon)
maxSingleTxUsdcnumberNo1.0 (clamped by FIDERAIL_HOST_MAX_SINGLE_USDC)
maxDailyUsdcnumberNo10.0 (clamped by FIDERAIL_HOST_MAX_DAILY_USDC)
minTrustScorenumberNo40 (clamped by FIDERAIL_HOST_MIN_TRUST_SCORE)

3. Public Hosted Node Limits, Quotas & Error Codes

The public hosted node (https://api.fiderail.com) runs on a best-effort community basis with zero SLA and enforces both edge (Cloudflare) and origin (Node API) protections:

ScopeLimit / RuleNotes
General REST & MCP (POST /mcp, /v1/*)120 req/min per IPSliding 60s window across general API & MCP calls
Endpoint Diagnostics (diagnose_x402_endpoint & POST /v1/diagnose)6 req/min per IP + global concurrency cap 4Shared bucket between REST grader and remote MCP
Open Bazaar autoRegister (POST /v1/diagnose)5 registrations / host / 24hPrevents directory spam on voluntary listing
L2 Delivery Telemetry (POST /v1/telemetry/delivery)10 req/min per IPfiderail-sar-v2 required + receiptHash deduplication; unverified negative claims quarantined
Cloudflare Edge Burst Shield30 req / 10s per IP (Block 10s)Protects /v1/diagnose, /v1/telemetry/delivery, and /mcp
Cloudflare API Agent CompatibilityBrowser Integrity Check Off on api.fiderail.com; Bot Fight Mode OffPrevents false 403 blocks on Python-urllib, curl, and Node fetch agents
JSON-RPC Batch (POST /mcp)Max 5 items per batch; max 1 diagnose_x402_endpoint call per batchPrevents single-request amplification
Request Body & URL CapsMax 64 KB (65,536 bytes) JSON body; max 2,048 chars URLNull bytes, CRLF, BiDi overrides, and prototype-pollution keys stripped/rejected

Common Limit & Validation Errors

HTTP StatusJSON-RPC CodeMeaning & Resolution
413N/ARequest JSON body exceeds 64 KB. Reduce payload or split calls.
429-32029Per-IP rate limit (120/min general or 6/min diagnose) or concurrency cap (4) exceeded. Wait for the Retry-After header seconds.
405N/AGET /mcp is not supported on this stateless server. Use POST /mcp (DELETE /mcp returns 204).
200 / 400-32600Invalid JSON-RPC payload, empty batch, batch > 5 requests, or > 1 diagnose_x402_endpoint call in a batch.
200isError: trueTool-level validation failure (e.g., invalid URL encoding/method, or calling guarded_x402_fetch on remote /mcp).

4. Local stdio Configuration & Host Policy Guardrails

Run all 6 tools locally (including guarded_x402_fetch with persistent SQLite WAL budgets and immutable host policy clamping) via npx -y @fiderail/mcp:

{
  "mcpServers": {
    "fiderail": {
      "command": "npx",
      "args": ["-y", "@fiderail/mcp"],
      "env": {
        "FIDERAIL_API_URL": "https://api.fiderail.com",
        "FIDERAIL_OUTAGE_POLICY": "fail-closed",
        "FIDERAIL_SPEND_LEDGER_PATH": "./edge-ledger.db",
        "FIDERAIL_HOST_MAX_SINGLE_USDC": "1.0",
        "FIDERAIL_HOST_MAX_DAILY_USDC": "10.0",
        "FIDERAIL_HOST_MIN_TRUST_SCORE": "40",
        "FIDERAIL_HOST_ALLOWED_ASSETS": "USDC",
        "FIDERAIL_HOST_BLOCK_LOOPS": "true"
      }
    }
  }
}
Environment VariableDefaultPurpose
FIDERAIL_API_URL"" (local DB mode)Point local stdio MCP to https://api.fiderail.com with zero local chain indexing
FIDERAIL_OUTAGE_POLICYfail-closedfail-closed (block on oracle outage) or fail-open-micro (bounded micro-probe fallback)
FIDERAIL_SPEND_LEDGER_PATH:memory:Path to .db SQLite WAL file for persistent atomic daily spend budgets & circuit breakers
FIDERAIL_HOST_MAX_SINGLE_USDCUnsetImmutable host ceiling that prompt arguments can narrow (clampPolicy) but never raise
FIDERAIL_HOST_MAX_DAILY_USDCUnsetImmutable daily budget ceiling enforced across concurrent tool calls
FIDERAIL_HOST_MIN_TRUST_SCOREUnsetImmutable minimum trust-v2 score floor (0-100)
FIDERAIL_HOST_HITL_ABOVE_USDCUnsetThreshold requiring human-in-the-loop approval before local settlement
FIDERAIL_HOST_ALLOWED_ASSETSUnsetComma-separated allowlist (e.g. USDC, EURC, USDT)
FIDERAIL_HOST_BLOCK_LOOPSfalseSet "true" to force-block any counterparty flagged with RECIPROCAL_LOOP

Teams requiring higher throughput or custom limits beyond 120 req/min / 6 diagnose/min should self-host following the Operations Runbook or contact founder@fiderail.com.