Skip to main content
Glama

Basis

screener_backtest

Read-onlyIdempotent

Historically replay a cross-sectional screen at every bar. Matching instruments form an equal-weight long or short portfolio, entered at the next bar open and held to the following bar open, then re-screened. Use this when the question is whether repeatedly trading screener matches worked — a single-symbol backtest of coins that match today is not a substitute. Costs follow actual portfolio turnover, so an unchanged holding is not charged as a fresh round trip.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
logicNoDefault all.
quoteNoDefault USDT.
rulesYes
feeBpsNoPer side. Default 4.
lookbackNoBars. Default 300.
directionNoDefault long.
timeframeNoDefaults to the chart.
slippageBpsNoPer side. Default 1.
maxPositionsNoEqual-weight slots, 1 to 50. Default 10.
universeSizeNoDefault 50.
manualSymbolsNoOptional symbols forced into the universe before current-volume ranking.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnlyHint and idempotentHint annotations, the description discloses concrete behavior: equal-weight long/short portfolios, next-bar-open entry and following-bar-open exit, re-screening each bar, and turnover-based cost calculation so unchanged holdings are not double-charged. This is rich, non-obvious behavioral detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences with no filler: the mechanism is front-loaded, the usage condition follows, and the cost nuance earns its place. Every sentence contributes distinct value.

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?

For a complex 12-parameter backtest tool, the description plus a well-covered schema and strong annotations gives an agent everything needed to select and invoke it correctly. The absence of an output schema is acceptable because the description focuses on behavior needed before calling, and the schema documents the parameters.

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 high (83%), so the baseline is 3, but the description adds meaningful parameter-level context: 'equal-weight' clarifies maxPositions behavior, 'long or short' ties to direction, and the turnover-cost sentence clarifies how feeBps actually applies. It doesn't document each parameter, but it adds interaction semantics the schema lacks.

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?

The description opens with a specific verb and resource: 'Historically replay a cross-sectional screen at every bar,' then details the portfolio construction, entry/exit timing, and re-screening process. It explicitly distinguishes itself from a single-symbol backtest, so an agent can tell it apart from siblings like backtest_run.

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 gives an explicit use case: 'Use this when the question is whether repeatedly trading screener matches worked.' It also states what is not a substitute — a single-symbol backtest of coins that match today — providing clear when-not guidance.

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