Skip to main content
Glama

OneQAZ Trading Intelligence

get_trade_history

Read-onlyIdempotent

Purpose: Query paper-trading history with dynamic filters (action / P&L / time / symbol). Triggers (casual questions too): "what trades happened lately?", "최근 거래 내역 보여줘", "how did the BTC trades go?", "승률 어때?", "show me the trade log", "how many trades won this week?". When to call: past trade review, single-symbol post-mortem, win-rate audits. Prerequisites: none. Next steps: analyze_trades, market://{market_id}/signals/feedback. Caveats: paper-trading data only (not real money). limit capped at 1000.

Args: market_id: Market ID (crypto, kr_stock, us_stock; aliases coin/kr/us accepted) limit: Max results (default 1000) action_filter: Filter by action (all, buy, sell) min_pnl: Min P&L % filter (e.g., -5.0) max_pnl: Max P&L % filter (e.g., 10.0) hours_back: Only trades within last N hours symbol: Filter by ticker symbol (e.g., "BTC", "AAPL"); case-insensitive

Disclaimer: Information only, not investment advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
symbolNo
max_pnlNo
min_pnlNo
market_idYes
hours_backNo
action_filterNoall

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoSet true on error responses
actionNoRecommended client action (error path)
reasonNoHuman-readable cause (error path)
full_dataNo
retryableNoWhether the client should retry (error path)
timestampYesRFC3339 UTC, server build time
ai_summaryNoOne-line AI-oriented summary (success path)
disclaimerYesCanonical compliance disclaimer (always present)
error_codeNoStable error identifier; see mcp_error_policy.md
request_idYes32-hex per-response correlation id
_llm_summaryNo
action_valueNo
_next_actionsNo
fallback_noteNo
fallback_toolNoSuggested fallback (error path)
is_real_moneyNo
_value_signalsNo
summary_for_userNoOne-line jargon-free Korean summary (success path)
data_classificationNo
is_investment_adviceNo
ai_summary_ttl_secondsNo
_market_state_narrativeNo
ai_summary_generated_atNoRFC3339 UTC
_followup_questions_for_userNo

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the readOnly=true annotation, it adds key behavioral caveats: 'paper-trading data only (not real money)' and 'limit capped at 1000'. This gives important context about data scope and constraints without contradicting annotations.

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 description is well-organized with clear sections (Purpose, Triggers, When to call, Args, Caveats) and is front-loaded with the core purpose. Slightly verbose due to the extensive list of example triggers, but every section adds 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?

Given the 7-parameter schema, presence of an output schema, and many sibling tools, this description covers purpose, usage triggers, prerequisites, next steps, parameter semantics, and caveats. It is sufficiently complete without needing to restate output structure since an output schema exists.

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

Parameters5/5

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

Schema coverage is 0%, but the description compensates fully by explaining every parameter in plain language. It adds meaning for market_id (aliases), min_pnl/max_pnl (percentage), symbol (case-insensitive), and action_filter (allowed values), going well beyond the raw schema.

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 clearly states 'Query paper-trading history with dynamic filters (action / P&L / time / symbol)', using a specific verb and resource. It distinguishes from siblings like get_winning_trades and get_losing_trades by framing this as the general history query with filters.

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

Usage Guidelines4/5

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

Provides explicit 'When to call' scenarios (past trade review, single-symbol post-mortem, win-rate audits) and example user triggers. Does not explicitly mention when not to use or contrast with specific alternatives, which prevents a 5.

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.

TDQS

A4.3/5.0
Disambiguation4/5

Most tools have clearly distinct purposes, but there are overlapping areas such as get_feature_governance_state vs get_feature_governance_status_tool and the convenience wrappers for losing/winning positions/trades. Descriptions clarify relationships well, so confusion is limited.

Naming Consistency4/5

The vast majority follow a consistent 'get_' prefix with descriptive nouns, but inconsistencies exist: some tools have '_tool' suffix (e.g., get_macro_causality_graph_tool) while similar ones do not, and governance tools use 'state' vs 'status_tool'. Overall, the pattern is predictable.

Tool Count2/5

39 tools is excessive for the apparent scope. Many are redundant convenience wrappers (get_losing_positions, get_winning_trades, etc.) that duplicate filters on other tools, and there are near-duplicate governance tools. The count could be significantly consolidated.

Completeness5/5

The tool surface is remarkably comprehensive, covering signals, trades, predictions, positions, macro relationships, news causality, strategies, structure, governance, and ledger integrity. There are no obvious functional gaps, and the tools form a well-integrated evidence chain.