Skip to main content
Glama
fd-paper-trading MCP Server

fd-paper-trading MCP Server

Official

Get Bars

get_bars
Read-onlyIdempotent

Fetch historical OHLCV bars for a trading symbol, oldest-first, to support charting, backtesting, and strategy analysis; specify timeframe and limit.

Instructions

Get historical OHLCV bars for a symbol, oldest-first.

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>"
    },
    "name": "get_bars"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of bars (capped by the server)
symbolYesTrading symbol (e.g. "AAPL")
timeframeNoOne of 1m, 5m, 15m, 1h, 1d (provider may support a subset)1d

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered. The description's only added behavioral fact is that bars are returned oldest-first, which is useful for interpreting the result but says nothing about rate limits, provider substitution for unsupported timeframes, or how limit interacts with recency.

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?

A single sentence with no wasted wording, and the ordering fact is packed in efficiently. It is arguably too terse for a tool whose behavior around limit and timeframe substitution needs a sentence of its own.

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?

An output schema exists, so return values needn't be described, and all three parameters are documented in the schema. For a simple read tool this is nearly complete; the remaining gap is what the server does with unsupported timeframes or an over-cap limit.

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

Parameters2/5

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

Schema description coverage is 100%, so the baseline would be 3, but the description contributes nothing beyond the schema's own text for symbol, timeframe and limit. It also doesn't resolve the ambiguity the schema leaves open — whether limit counts the most recent N bars or the first N oldest-first.

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?

Names a specific verb and resource (historical OHLCV bars for a symbol) and adds the ordering of results. It is unambiguous on its own, though it offers no explicit differentiation from any related data-retrieval sibling.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given; the agent must infer that this is the way to obtain price history before running backtests or placing orders. No alternatives or prerequisites (e.g. resolving the symbol via search_instruments) are mentioned.

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