Skip to main content
Glama

oracle.market-arbitrage

Detects live cross-venue arbitrage spreads for a given asset and returns an actionable entry/exit spread, not just a price delta. Built on oracle.cross-chain-prices' price aggregation. Settlement proof: ProofOfSettledOutcome (kind 30120, data/proof_settled_outcomes.jsonl). Refuses, with no charge, when live prices from ≥2 venues cannot be fetched. (x402: $0.10 USDC per call)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "oracle.market-arbitrage"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskNoTask/query text for this SKU

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the per-call price ($0.10 USDC via x402), the no-charge refusal policy when live prices from ≥2 venues are unavailable, the settlement proof artifact (kind 30120, proof_settled_outcomes.jsonl), and the qualitative shape of the return value. The openWorldHint and non-idempotent annotations are consistent with a live, paid, external-data call.

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?

Four short sentences, front-loaded with the differentiator and followed by dependency, proof, failure mode, and price. Dense but every sentence carries operational information; the provenance tokens (kind 30120, jsonl filename) are the least essential but support verification.

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 no output schema, the description still conveys the return shape (entry/exit spread), the failure contract, and the cost, which is nearly everything needed to call it correctly. Only minor gaps remain, such as latency expectations or whether the spread is returned for a specific pair when the task text is ambiguous.

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% for the single 'task' parameter, so baseline is 3. The description says the tool operates 'for a given asset', which is more informative about intent than the generic 'Task/query text for this SKU' in the schema, but it does not clarify how an asset is expressed inside the free-text task field.

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?

States a specific verb and resource ('Detects live cross-venue arbitrage spreads') and immediately scopes the output ('actionable entry/exit spread, not just a price delta'), which distinguishes it from the sibling oracle.cross-chain-prices. An agent can tell what this returns without opening the 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?

Explicitly positions the tool relative to oracle.cross-chain-prices ('Built on ... price aggregation'), implying this is the layer to use when a raw price delta is insufficient. It also states the precondition under which the tool declines to run (fewer than 2 venues reachable), but never names an explicit alternative for that failure case.

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.