Skip to main content
Glama

TakeJournal

get_statistics

Read-only

The user's statistics over closed trades, as the dashboard shows them: net P&L, win rate, profit factor, averages, expectancy, max drawdown, best and worst trade, R; the system's quality (summary.quality: Van Tharp's SQN and the Kelly criterion, in R or in P&L as its basis says, null below 30 closed trades; Kelly is no advice); breakdowns by instrument, hour, weekday, strategy, tag and tag category, calm, checklist rules and adherence; the cost of trades tagged as mistakes; the discipline score with its parts and what breaking each part cost (discipline.costs: per part the closed trades that broke it against those that kept it, in money, per trade and in R; key "all" any part, a trade that broke two counted once).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_statistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast trading day, YYYY-MM-DD, inclusive
fromNoFirst trading day, YYYY-MM-DD (a futures day runs from 18:00 New York time the evening before)
tagsNoTrades carrying at least one of these tags
viewNoLOGICAL (default): one decision copied to many accounts counts once, with the master's result. ACCOUNTS: every account's trade counts, results summed over the accounts
marketNoSTRATEGIES = multi-leg option trades, CRYPTO = crypto spot and perpetuals, FOREX = currency pairs, metals and CFDs
accountNoOne account by its alias from list_accounts, e.g. ACC-12, or several comma-separated (ACC-12,ACC-15)
symbolsNoFutures roots or tickers, e.g. ["MES", "AAPL"]
strategyNoA strategy (setup) by its name
checklistNoBy the strategy's checklist: all (every rule followed), broken:N (at most N broken), followed:X (at least X % followed), none (not answered)
account_kindNoAccounts of one or more types, comma-separated: EVAL evaluation, PA funded, LIVE the firm's capital, PERSONAL the trader's own broker or exchange account, PRACTICE a demo, paper or simulated account (e.g. EVAL,PA); REAL every type but practice, EVAL_PA both
account_roleNoAccounts of one or more roles in the copier, comma-separated: MASTER, COPY (a follower), SINGLE; MASTER,COPY = the copy group
exclude_tagsNoLeave out trades carrying any of these tags
include_dailyNoAdd the result of every trading day (for streaks, best and worst days)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the read-only annotation, the description discloses useful behavioral details: statistics are based on closed trades, SQN and Kelly are null below 30 closed trades, Kelly is explicitly not advice, and discipline costs are counted conservatively so a trade that broke two parts is counted once under 'all'. These caveats materially help an agent interpret the output.

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

Conciseness3/5

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

The description is front-loaded with the main metric families, which is good, but it is expressed as a dense, very long sentence with semicolon-separated clauses. It earns most of its length by enumerating return content without an output schema, yet the structure makes it harder to scan than necessary.

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 read-only statistics tool with 13 optional filters and no output schema, the description does substantial work by explaining the returned metric groups, quality null-handling, and discipline-cost interpretation. Parameter details are left to the fully covered schema, so the remaining gaps are relatively minor.

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 13 parameters are already documented in the input schema. The description adds little direct parameter meaning beyond output-related notes such as R versus P&L basis and the counting rules for discipline costs.

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 gives a specific verb and resource: it returns the user's statistics over closed trades as shown on the dashboard, and it enumerates the major metric families. It is clear what the tool does, but it does not explicitly differentiate itself from siblings such as get_period or get_copy_quality.

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 is implied by 'as the dashboard shows them' and by the comprehensive statistic list, suggesting this is the aggregate performance-report tool. However, the description gives no explicit when-to-use guidance, no exclusions, and no named alternatives despite several statistics-adjacent siblings.

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