Skip to main content
Glama
Agent Trading Desk

Agent Trading Desk

simulate_historical_veto

Replay historical trade setups to benchmark pre-trade veto decisions, comparing ALLOW/VETO outcomes against past candidates for counterfactual risk analysis.

Instructions

Black-box historical benchmark referee tool for counterfactual replay studies. Compares Sim Lab pre-trade veto decisions against historical trade setups. Subject to strict T-48h historical age lock (timestamp must be >= 48 hours old) and token-bucket rate limits (5 req/min free, 30 req/min paid). Zero proprietary weights or formula leak.

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>",
      "timestamp": "<timestamp>",
      "side": "<side>"
    },
    "name": "simulate_historical_veto"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideYesHistorical trade candidate direction ("LONG" or "SHORT")
atr14NoOptional 14-period ATR of the setup candle
symbolYesThe asset pair symbol (e.g. "BTC/USDT", "SOL/USDT")
volRatioNoOptional volume ratio vs 20-period moving average
timestampYesHistorical timestamp in milliseconds (MUST be >= 48 hours in the past)
entryPriceNoOptional execution candle close price
isWickTrapNoOptional candle flag indicating adverse rejection wick
lowerWickRatioNoOptional candle lower wick ratio
upperWickRatioNoOptional candle upper wick ratio

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden. It does add valuable operational facts — the strict T-48h age lock on timestamps and token-bucket rate limits (5 req/min free, 30 req/min paid) — but it never says what a call returns (a veto verdict? a comparison score?), whether errors are thrown on age-lock violations, or whether any state is created. The 'zero weights or formula leak' line reassures about opacity but doesn't describe observable behavior.

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?

Three compact sentences with the purpose front-loaded and constraints following. The closing 'zero proprietary weights or formula leak' is slightly promotional but does convey black-box semantics, so little is wasted.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter tool with no output schema and no annotations, the definition covers input constraints and rate limits reasonably well. The major gap is that nothing explains the shape or meaning of the result — an agent cannot anticipate whether it gets a binary veto flag, a comparison table, or a score — which is exactly what the missing output schema would otherwise supply.

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 all nine parameters are already documented, including the enum for side and the 48-hour rule on timestamp. The description reinforces the age-lock constraint on timestamp but adds no new meaning for optional fields like atr14, volRatio, or the wick ratios beyond what the schema states. 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?

It states a concrete action and resource: it benchmarks Sim Lab pre-trade veto decisions against historical trade setups for counterfactual replay. The scope word 'historical' implicitly separates it from the live sibling pre_trade_check, but no sibling is named outright, so the differentiation is left to inference.

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?

Usage context is implied by 'counterfactual replay studies' and the 48-hour age requirement, which tells an agent this is for backtesting rather than live decisions. However, it never explicitly says when to choose this over pre_trade_check or evaluate_trap_shield, nor does it state what to do when the timestamp is too recent beyond the implied constraint.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.