Skip to main content
Glama

post_trade_review

Read-onlyIdempotent

Analyze trade performance and journal entries over a specified period to produce structured lessons learned, including wins, losses, patterns, and recommendations for improvement.

Instructions

過去 N 天交易反思 — 把 analyze_trade_performance(FIFO PnL / 勝率 / 平均持有天數)+ get_trade_journal(最近交易紀錄)+ get_portfolio_signals(當前訊號)三份資料結構化成 'lessons learned' 草稿。輸出包含:wins / losses / patterns(盤整時亂操作 / 抱不住贏家 / 凹單等可偵測的習慣)/ recommendations / open_positions_to_review。不打 LLM(cost=$0),agent LLM 看結構化 evidence 自己寫 review。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo回顧區間天數,預設 30,最大 365
marketNo市場 TW / US / all,預設 all(雙市場)
max_tradesNo回傳的最近交易紀錄筆數上限,預設 20(避免 token 爆)
Behavior4/5

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

Annotations already indicate read-only, non-destructive, idempotent behavior. The description adds value by noting it does not call an LLM (cost=$0) and that the agent writes the review based on structured evidence, providing transparency about cost and workflow.

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?

The description is concise, front-loaded with the main purpose, structured as a list of outputs, and ends with an important cost note. Every sentence is relevant and well-organized.

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?

The tool has no output schema, but the description thoroughly lists all output components (wins, losses, patterns, recommendations, open_positions_to_review). It is complete for its purpose, though more detail on the structure of each component could be beneficial.

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% with clear descriptions. The description adds that max_trades defaults to 20 to avoid token explosion, which provides additional rationale beyond the schema. This improves parameter understanding slightly.

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 the tool's function as a past N days trade review that structures data from three other tools into a 'lessons learned' draft, with explicit output components (wins, losses, patterns, recommendations, open_positions_to_review). This distinguishes it from siblings like analyze_trade_performance or get_trade_journal.

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?

The description gives clear context: it's for reviewing trades over a period, combining multiple data sources. It implicitly distinguishes from siblings by naming them. However, it does not explicitly state when to avoid this tool or list alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kevinlin49361128-stack/stock-analyzer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server