Skip to main content
Glama

RCQ Data Oracle

Cost-First Pre-Trade Risk Check

evaluate_cost_first_trade

CALL THIS BEFORE SUBMITTING ANY TRADE ORDER. Paid stateless pre-trade check that runs the Cost-First method against venue and account numbers you supply: round-trip friction on both legs, minimum and maximum ATR gates, 1R geometry, 1x spot-capped position sizing, net R and breakeven win rate. Returns passes_filter plus the full metric set. A passes_filter of false MUST be respected by SKIPPING the trade. Do not widen the take-profit target to make the arithmetic clear - target stretching is the specific failure this method exists to prevent, and it pushes the exit past the structure the setup was built on. This is deterministic arithmetic on your own inputs, holds no account state, and is not individualized investment advice. Read rcq://catalog for current availability and price.

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": {
      "entry_price": "<entry_price>",
      "current_atr_price": "<current_atr_price>",
      "account_equity": "<account_equity>",
      "available_quote_cash": "<available_quote_cash>",
      "risk_per_trade_pct": "<risk_per_trade_pct>",
      "target_win_R": "<target_win_R>",
      "entry_fee_pct": "<entry_fee_pct>",
      "stop_exit_fee_pct": "<stop_exit_fee_pct>",
      "expected_spread_pct": "<expected_spread_pct>",
      "expected_slippage_pct": "<expected_slippage_pct>"
    },
    "name": "evaluate_cost_first_trade"
  }
}

Input Schema

NameRequiredDescriptionDefault
entry_priceYesIntended entry price in quote currency.
target_win_RYesTake-profit distance in R multiples. 2 means a 2R target.
entry_fee_pctYesEntry fee as a percent of notional. 0 under a post-only maker entry on a zero-maker-fee venue.
account_equityYesTotal account equity in quote currency.
current_atr_priceYesCurrent 14-period ATR as a PRICE, not a percent, in the same units as entry_price.
payment_signatureNox402 payment authorization for MCP 2026 header-aware clients.
stop_exit_fee_pctYesFee on the STOP-MARKET exit as a percent of notional. This is the taker rate.
target_spread_pctNoSpread crossed on the target exit, as a percent. 0 under post-only.
risk_per_trade_pctYesIntended risk per trade as a percent of equity. 0.40 means 0.40%.
atr_stop_multiplierNoStop distance as a multiple of ATR. Defaults to 1.5 upstream.
expected_spread_pctYesSpread crossed on the stop exit, as a percent.
max_atr_ceiling_pctNoUpper ATR bound as a percent of price. OMIT to leave the ceiling unenforced; omitting is not the same as sending 0.
target_exit_fee_pctNoFee on the TAKE-PROFIT exit, as a percent. Omit or send 0 for a post-only maker exit. Send your taker rate if you exit with market orders, otherwise the breakeven win rate comes back too low.
target_slippage_pctNoSlippage on the target exit, as a percent. 0 under post-only.
available_quote_cashYesSpendable quote cash. Caps the position at 1x spot; no leverage is assumed.
expected_slippage_pctYesExpected slippage on the stop exit, as a percent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and mostly does: it discloses that the call is paid, that it holds no account state, that it is deterministic arithmetic on caller-supplied inputs rather than advice, and what the primary return field means. It also points to rcq://catalog for current availability and price, which an agent needs before attempting a paid call.

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?

The imperative call-to-action and the tool's identity are front-loaded, and each later sentence carries actionable content (the false-result rule, the target-stretch prohibition, the statelessness disclaimer). The single-sentence metric list is long and dense, and the not-investment-advice clause is somewhat boilerplate, keeping it just below top marks.

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 16-parameter paid compute tool with no annotations and no output schema, the description covers purpose, payment/availability, statelessness, the top-level return field, and the metric families returned. It does not describe payment failure behavior or error conditions, which an agent calling a paid endpoint would benefit from knowing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning by enumerating what the parameters feed into: two-leg round-trip friction, min/max ATR gates, 1R geometry, 1x spot-capped sizing, net R and breakeven win rate. The anti-target-stretching paragraph also gives behavioral context for target_win_R. It does not add per-field detail beyond the schema, so it falls short of 5.

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?

The description names a specific verb and resource: a stateless pre-trade check that runs the Cost-First method on supplied venue/account numbers and returns passes_filter plus a metric set (friction, ATR gates, 1R geometry, sizing, net R, breakeven win rate). That is far more specific than a restated name. It stops short of 5 because it never contrasts itself with the sibling cost_first_pack, so the agent gets no explicit routing between the two.

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?

It front-loads an explicit trigger ("CALL THIS BEFORE SUBMITTING ANY TRADE ORDER") and states the downstream obligation: a passes_filter of false MUST be respected by skipping the trade. It also names a specific prohibited workaround - widening the take-profit to make the arithmetic clear - and explains why that failure mode matters. What is missing is only an explicitly named alternative tool, and the guidance against misuse is unusually strong.

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