AgentRail
Exchange health, fees and uptime history, plus x402 service search, for trading agents.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"agentrail": {
"url": "https://agentrail-backend-eta.vercel.app/api/mcp"
}
}
}リモートエンドポイント
https://agentrail-backend-eta.vercel.app/api/mcpstreamable-httpできること
ツール一覧
ツール(7)
⚪agentrail_register_agent(enrollment_code, name)
Enrol this agent with its owner, using the enrollment code the owner gave you (starts with ar_enroll_). Call this ONCE, before any other tool. Returns this agent's API key a single time; store it securely. The agent starts as pending_approval until the owner approves it; poll agentrail_heartbeat to see when it is active. Example: register "momentum-scanner" with code ar_enroll_abc....
入力スキーマ
{
"type": "object",
"properties": {
"enrollment_code": {
"type": "string",
"minLength": 10,
"maxLength": 200,
"description": "Enrollment code from the owner (starts with ar_enroll_)."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9 _.-]+$",
"description": "Short readable name for this agent, e.g. \"momentum-scanner\"."
}
},
"required": [
"enrollment_code",
"name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}出力スキーマ
{
"type": "object",
"properties": {
"agent_id": {
"type": "string"
},
"status": {
"type": "string",
"const": "pending_approval"
},
"api_key": {
"type": "string",
"description": "Shown ONCE. Send as \"Authorization: Bearer <api_key>\" on every later call."
},
"api_key_notice": {
"type": "string"
},
"approval_url": {
"type": "string"
},
"next_step": {
"type": "string"
}
},
"required": [
"agent_id",
"status",
"api_key",
"api_key_notice",
"approval_url",
"next_step"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢agentrail_heartbeat
Free. Report that this agent is alive (keeps it shown as active to its owner) and read its approval status. Call every few minutes while running, and after registering to poll until status is "active".
入力スキーマ
{
"type": "object",
"properties": {}
}出力スキーマ
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"active",
"pending_approval"
]
},
"received_at": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"status"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢agentrail_get_credit_balance
Free. Return the owner's remaining prepaid credits (1 USD = 1,000 credits). Check this before a run of paid calls.
入力スキーマ
{
"type": "object",
"properties": {}
}出力スキーマ
{
"type": "object",
"properties": {
"credit_balance": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"credit_balance"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢agentrail_get_venue_health(venue, idempotency_key)
Live status and latency for exchanges (binance, kraken, bybit), cached for 30 seconds. Costs 1 credit per successful call; failed calls are free. Use before routing an order to check a venue is up. Omit venue to check all.
入力スキーマ
{
"type": "object",
"properties": {
"venue": {
"description": "One venue, or omit for all.",
"type": "string",
"enum": [
"binance",
"kraken",
"bybit"
]
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_.:-]+$",
"description": "Unique per distinct call, e.g. a UUID. Retrying with the SAME key and SAME arguments is never charged twice and returns the original result."
}
},
"required": [
"idempotency_key"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}出力スキーマ
{
"type": "object",
"properties": {
"venues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"venue": {
"type": "string",
"enum": [
"binance",
"kraken",
"bybit"
]
},
"status": {
"type": "string",
"enum": [
"online",
"degraded",
"offline"
]
},
"latency_ms": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"detail": {
"type": [
"string",
"null"
]
},
"checked_at": {
"type": "string"
}
},
"required": [
"venue",
"status",
"latency_ms",
"detail",
"checked_at"
],
"additionalProperties": false
}
},
"billing": {
"type": "object",
"properties": {
"replayed": {
"type": "boolean",
"description": "true = retry of an already-charged call; the original result was returned and nothing was charged"
},
"credits_charged": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"credit_balance": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Owner's remaining prepaid credits after this call"
}
},
"required": [
"replayed",
"credits_charged",
"credit_balance"
],
"additionalProperties": false
}
},
"required": [
"venues",
"billing"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}⚪agentrail_estimate_fees(venue, liquidity, notional_usd, idempotency_key)
Estimate the exchange fee for a trade of a given size at public base-tier rates. Costs 1 credit per successful call. AgentRail never places orders. Example: Kraken, taker, 1,000 USD.
入力スキーマ
{
"type": "object",
"properties": {
"venue": {
"type": "string",
"enum": [
"binance",
"kraken",
"bybit"
]
},
"liquidity": {
"type": "string",
"enum": [
"maker",
"taker"
],
"description": "maker = resting limit order; taker = order that fills immediately"
},
"notional_usd": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000,
"description": "Trade size in USD"
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_.:-]+$",
"description": "Unique per distinct call, e.g. a UUID. Retrying with the SAME key and SAME arguments is never charged twice and returns the original result."
}
},
"required": [
"venue",
"liquidity",
"notional_usd",
"idempotency_key"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}出力スキーマ
{
"type": "object",
"properties": {
"venue": {
"type": "string",
"enum": [
"binance",
"kraken",
"bybit"
]
},
"liquidity": {
"type": "string",
"enum": [
"maker",
"taker"
]
},
"notional_usd": {
"type": "number"
},
"fee_rate_pct": {
"type": "number"
},
"fee_usd": {
"type": "number"
},
"schedule": {
"type": "string"
},
"disclaimer": {
"type": "string"
},
"billing": {
"type": "object",
"properties": {
"replayed": {
"type": "boolean",
"description": "true = retry of an already-charged call; the original result was returned and nothing was charged"
},
"credits_charged": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"credit_balance": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Owner's remaining prepaid credits after this call"
}
},
"required": [
"replayed",
"credits_charged",
"credit_balance"
],
"additionalProperties": false
}
},
"required": [
"venue",
"liquidity",
"notional_usd",
"fee_rate_pct",
"fee_usd",
"schedule",
"disclaimer",
"billing"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢agentrail_venue_uptime(days, idempotency_key)
Uptime history for binance, kraken, bybit: % online, degraded and offline, average and p95 latency, last outage, over the last 1 to 90 days. Costs 2 credits per successful call. Check counts show how much data backs each figure.
入力スキーマ
{
"type": "object",
"properties": {
"days": {
"default": 7,
"description": "Look-back window in days",
"type": "integer",
"minimum": 1,
"maximum": 90
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_.:-]+$",
"description": "Unique per distinct call, e.g. a UUID. Retrying with the SAME key and SAME arguments is never charged twice and returns the original result."
}
},
"required": [
"idempotency_key"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}出力スキーマ
{
"type": "object",
"properties": {
"days": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"venues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"venue": {
"type": "string"
},
"checks": {
"type": "number"
},
"online_pct": {
"type": [
"number",
"null"
]
},
"degraded_pct": {
"type": [
"number",
"null"
]
},
"offline_pct": {
"type": [
"number",
"null"
]
},
"avg_latency_ms": {
"type": [
"number",
"null"
]
},
"p95_latency_ms": {
"type": [
"number",
"null"
]
},
"last_offline": {
"type": [
"string",
"null"
]
},
"first_check": {
"type": [
"string",
"null"
]
}
},
"required": [
"venue",
"checks",
"online_pct",
"degraded_pct",
"offline_pct",
"avg_latency_ms",
"p95_latency_ms",
"last_offline",
"first_check"
],
"additionalProperties": false
}
},
"billing": {
"type": "object",
"properties": {
"replayed": {
"type": "boolean",
"description": "true = retry of an already-charged call; the original result was returned and nothing was charged"
},
"credits_charged": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"credit_balance": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Owner's remaining prepaid credits after this call"
}
},
"required": [
"replayed",
"credits_charged",
"credit_balance"
],
"additionalProperties": false
}
},
"required": [
"days",
"venues",
"billing"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢agentrail_market_search(q, max_price_usd, limit, idempotency_key)
Search pay-per-call (x402) services listed in the Coinbase and PayAI catalogues by keyword. One result per provider, ranked by relevance then price, each checked live just now. Costs 2 credits per successful call. Example: "token price", "weather", "web search".
入力スキーマ
{
"type": "object",
"properties": {
"q": {
"type": "string",
"minLength": 2,
"maxLength": 200,
"description": "What you are looking for"
},
"max_price_usd": {
"description": "Only services at or below this price per call",
"type": "number",
"exclusiveMinimum": 0
},
"limit": {
"default": 10,
"type": "integer",
"minimum": 1,
"maximum": 25
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_.:-]+$",
"description": "Unique per distinct call, e.g. a UUID. Retrying with the SAME key and SAME arguments is never charged twice and returns the original result."
}
},
"required": [
"q",
"idempotency_key"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}出力スキーマ
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"service_name": {
"type": [
"string",
"null"
]
},
"resource": {
"type": "string"
},
"host": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"network": {
"type": [
"string",
"null"
]
},
"price_usd": {
"type": [
"number",
"null"
]
},
"live": {
"type": "boolean"
},
"live_price_usd": {
"type": [
"number",
"null"
]
}
},
"required": [
"service_name",
"resource",
"host",
"description",
"network",
"price_usd",
"live",
"live_price_usd"
],
"additionalProperties": false
}
},
"billing": {
"type": "object",
"properties": {
"replayed": {
"type": "boolean",
"description": "true = retry of an already-charged call; the original result was returned and nothing was charged"
},
"credits_charged": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"credit_balance": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Owner's remaining prepaid credits after this call"
}
},
"required": [
"replayed",
"credits_charged",
"credit_balance"
],
"additionalProperties": false
}
},
"required": [
"query",
"results",
"billing"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}コミュニティ
エビデンス