Skip to main content
Glama

trade_decide

One-call sub-second market decision loop: fetches multi-venue quote + quantitative regime/signal (EMA-9/21, RSI-14, ATR%, Bollinger %B) + Ed25519-signed receipt URL.

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": {
      "symbol": "<symbol>"
    },
    "name": "trade_decide"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiKeyNoOptional ag_live_... key (if not passed in Authorization header)
symbolYesAsset symbol or pair (e.g. "ETH-USD", "BTC", "SOL")
candlesNoOptional deterministic candle closes/objects for offline evaluation
intervalNoCandle interval ("1m", "5m", "15m", "1h", "4h", "1d"; default "5m")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful traits: sub-second latency, multi-venue sourcing, the exact indicator set computed, and that a cryptographically signed (Ed25519) receipt is produced for auditability. It omits authentication expectations (the apiKey/Authorization relationship), rate limits, and whether the call is strictly read-only, which matters for a tool with zero annotation coverage.

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 sentence that front-loads the value proposition and then lists the return payload with a colon-delimited structure; there is no filler. It is dense and slightly jargon-laden ('decision loop'), but every clause conveys a distinct fact.

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?

Four fully documented parameters, no output schema, and no annotations — and the description does describe the return payload (quote, indicators, receipt URL) in enough detail to call the tool correctly. What's missing is whether a directional decision/recommendation is part of the response and any error or failure behavior.

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 coverage is 100%, so symbol, interval, candles, and apiKey are already documented in the schema; baseline 3 applies. The description adds nothing about how interval affects the signal computation or what offline candle evaluation changes, so it does not compensate beyond the schema.

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?

Uses a concrete verb ('fetches') and enumerates the resources returned: multi-venue quote, quantitative regime/signal with named indicators (EMA-9/21, RSI-14, ATR%, Bollinger %B), and an Ed25519-signed receipt URL. This clearly distinguishes it from siblings like get_receipt or act. The only ambiguity is the phrase 'market decision loop', which hints at a recommendation output that the rest of the sentence never confirms.

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?

'One-call' implies a batching rationale — use this instead of making several separate quote/indicator calls — but that inference is left to the agent. There is no explicit when-to-use, no exclusions, and no mention of how it relates to act, chat_inference, or get_receipt.

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