Skip to main content
Glama

evaluate_strategy

Evaluate a saved strategy against current live market data to check if entry or exit signals are firing right now. Returns the current asset price and any order intents the signals would produce. It places no orders and opens no positions, but each call records the evaluation: it updates the strategy's last_evaluated_at and evaluation_count and adds an agent_evaluations audit row. Use it when the user asks whether a strategy should be entering or exiting at this moment, or wants the live signal state for a specific strategy. data_unavailable lists the optional data providers that could not be read for this evaluation ("x" or "cambrian") and is empty otherwise. When it is not empty, rules that read that data are not satisfied: an entry that depends on one does not fire because the provider was unreachable, not because its condition was false. All other rules run, so price-based exits are still returned and success stays true. Over x402, a wallet that proves its identity (Sign-In-With-X) gets 30 evaluations free per UTC day, then 0.05 USDC each; an API key is covered by its plan.

[Access: pay 0.05 USDC via x402 (PAYMENT-SIGNATURE header) OR authenticate with an API key. An x402-capable client will auto-pay; API-key clients pay nothing per call.]

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": {
      "strategy_id": "<strategy_id>"
    },
    "name": "evaluate_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
strategy_idYesThe strategy's UUID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / strategy_id / description
      Added value: +"The strategy's UUID."
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that no orders are placed or positions opened, yet each call mutates state (last_evaluated_at, evaluation_count, an agent_evaluations audit row) — which is exactly what readOnlyHint=false with destructiveHint=false implies, so it explains rather than contradicts. It also documents the data_unavailable semantics (rules depending on an unreachable provider don't fire, other rules still run, success stays true) and the auth/rate-limit model (30 free evaluations per UTC day for SIWX wallets, then 0.05 USDC; API keys covered by plan).

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?

Purpose is front-loaded in the first sentence, and the following sentences each carry non-redundant information (side effects, data_unavailable failure semantics, payment model). It is on the long side for a single-parameter tool, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 carries the return burden and does so: current asset price, any order intents the signals would produce, plus the data_unavailable field and its interpretation. Combined with side-effect disclosure and payment/auth details, an agent has everything needed to call it and read the result 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?

Only one parameter and the schema already documents strategy_id at 100% coverage as 'The strategy's UUID.' The description adds only that the strategy must be saved/existing, which is marginal meaning beyond the schema — 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?

States a specific verb and resource — evaluate a *saved* strategy against current live market data — and clarifies it reports whether entry/exit signals are firing right now, which separates it from single-signal evaluation siblings. It never names an alternative tool explicitly (e.g. evaluate_signal or evaluate_multiple_signals_series), so sibling differentiation is left implicit.

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?

Gives concrete triggering conditions: 'when the user asks whether a strategy should be entering or exiting at this moment, or wants the live signal state for a specific strategy.' That is clear positive guidance, but there is no when-not guidance and no named alternative for ad-hoc or multi-strategy evaluation.

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.