Skip to main content
Glama

Strategy grid lookup

strategy_grid_lookup
Read-onlyIdempotent

Backtest lookup: what one exact version of a strategy actually did. Buy-the-dip and the moving-average cross, every combination of their knobs, computed over nine years of real prices with the exchange's fees charged both ways — sixteen coins, three of which died. Give the coin and the numbers and you get the return, the trades, the worst drawdown, and what buying and holding did over the same window. Read from a file you can download.

Use when someone quotes a specific dip-buying or moving-average rule ("buy 10% dips, take 5%") and you want its real backtest. For leverage use leverage_survival; for a stop on a plain buy-and-hold, stop_loss_check; to judge a win rate you were shown, overfitting_odds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinYesBTC, ETH, SOL, DOGE, PEPE, SRM… ticker or full pair. Ask with an unknown one and the answer lists the sixteen we hold.
dropNodip only: how far below its recent high to buy, in %.
fastNocross only: fast average.
slowNocross only: slow average.
stopNodip only: stop loss, in %.
hoursNodip only: give up after this many hours.
familyNodip (buy when it falls) or cross (moving average crossover). Defaults to dip.dip
targetNodip only: take profit, in %.
candlesNocross only: 1d or 4h.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNofalse when we do not hold that data. Never a zero standing in for an answer.
ruleNoThe rule in plain English.
errorNono_data when ok is false.
reasonNoWhy, in one sentence, and what we do have instead.
sourceNoThe public file these numbers come from.
tradesNoHow many trades it took.
return_pctNoWhat it returned, after fees.
win_rate_pctNoShare of winners.
buy_and_hold_pctNoWhat buying the coin and leaving it alone returned over the same window. A result without this is advertising.
max_drawdown_pctNoWorst peak-to-trough fall.
versions_in_familyNoHow many versions of this idea exist.
versions_beating_buy_and_holdNoHow many of them beat doing nothing. Often zero.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / candles / enum
      Added value: +[
      +  "1d",
      +  "4h"
      +]
    • addedInput schema / properties / family / default
      Added value: +"dip"
    • addedInput schema / properties / family / enum
      Added value: +[
      +  "dip",
      +  "cross"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false, and destructiveHint=false, covering the safety profile. The description adds context beyond annotations: data is computed over nine years of real prices with exchange fees charged both ways, across sixteen coins (three of which died), and results are read from a downloadable file. It also previews return values (return, trades, worst drawdown, buy-and-hold), though an output schema exists.

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. The description is slightly verbose with colorful phrasing ('knobs', 'sixteen coins, three of which died') but each sentence carries relevant information about scope, returns, data source, and routing. It could be tightened, but it remains structured and readable.

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?

For a 9-parameter tool with an output schema and rich annotations, the description covers purpose, data coverage, outputs, and alternatives. It does not detail every parameter or edge case, but the output schema and 100% schema coverage handle those. It is largely complete for correct selection and invocation.

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%, so the input schema already documents all nine parameters, including enum values and defaults. The description only broadly references 'the coin and the numbers' and 'every combination of their knobs', adding no syntax or format details beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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 ('Backtest lookup') and resource: what one exact version of a strategy actually did. Distinguishes from siblings by naming leverage_survival, stop_loss_check, and overfitting_odds for alternative use cases. An agent can immediately tell this is the tool for backtesting a specific dip-buying or moving-average rule.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when to use: when someone quotes a specific dip-buying or moving-average rule and you want its real backtest. Names three alternatives and the conditions that select them: leverage_survival for leverage, stop_loss_check for a stop on plain buy-and-hold, overfitting_odds to judge a win rate. Nothing is left to inference.

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