Skip to main content
Glama

Market Intelligence API (core)

Pre trade check

decision.pre_trade
Read-onlyIdempotent

Right before a trade: 'I want to buy (or sell) SYMBOL - is now a good moment?'. Returns a verdict (FAVORABLE, CAUTION, UNFAVORABLE), a score and the checks behind it: order flow, momentum, volatility, adverse events, market regime and news/filings of the last 24h. Use when you already know the symbol and side and only need go/no-go timing; for an action with conviction use decision.lite.

Input Schema

NameRequiredDescriptionDefault
sideNoThe side you intend to trade: buy or sellbuy
symbolYese.g. ETHUSD, BTCUSD, NVDA, TSLA
windowNoAggregation window of the live trade buckets: 1m, 5m (default) or 15m5m

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / window / enum
      Previous value: -[
      -  "1m",
      -  "5m",
      -  "15m"
      -]New value: +[
      +  "1m",
      +  "5m",
      +  "15m",
      +  "1h",
      +  "4h",
      +  "24h"
      +]
  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 the full safety profile (readOnly, idempotent, non-destructive, open-world). The description goes beyond them by disclosing the return shape (verdict, score, underlying checks) and the concrete data sources consulted (order flow, momentum, volatility, adverse events, regime, 24h news/filings). It omits latency/cost limits, so not a 5.

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?

Front-loads the real-world scenario, then the return payload, then the alternative-tool routing - each sentence earns its place. Slightly dense, but no filler.

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 present, the description carries the return-value burden and does so by enumerating the verdict, score and checks. Complete for a read-only timing tool; minor gaps like latency or pagination are not material here.

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 side, symbol and window are already documented in the schema; the description adds no parameter syntax or constraints beyond the schema's own descriptions. Per the high-coverage baseline, 3 is appropriate.

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?

Specific verb+resource: evaluates whether now is a good moment to trade a given symbol/side, returning a FAVORABLE/CAUTION/UNFAVORABLE verdict. It explicitly disambiguates from its sibling decision.lite, so an agent can choose between them without opening either schema.

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?

States the exact triggering context ('when you already know the symbol and side and only need go/no-go timing') and names the alternative with its own condition ('for an action with conviction use decision.lite'). When-to-use and the sibling route are both explicit.

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