Skip to main content
Glama
shioaji-mcp

shioaji-mcp

by xianyuntang

list_profit_loss

Retrieve realized profit and loss records for a specified date range and get row IDs for viewing detailed entries.

Instructions

Realized PnL records between dates (YYYY-MM-DD). Each row's id works with list_profit_loss_detail.

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": {
      "begin_date": "<begin_date>",
      "end_date": "<end_date>"
    },
    "name": "list_profit_loss"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateYes
begin_dateYes
account_typeNostock

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose several behavioral facts: results are realized (not unrealized) PnL, they are bounded by dates, and rows carry ids usable elsewhere. It says nothing about permissions, result size, pagination, or what fields a row actually contains, so an agent cannot predict the response shape.

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?

Two short sentences with no filler, front-loading what the tool returns before the cross-reference to the detail tool. Nothing is repeated from the name and nothing could be cut without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations and no output schema, the definition leaves important gaps: the account_type parameter is unaddressed, the shape of a returned record is unspecified, and there is no indication of whether results are paginated or capped. The date-format detail is helpful but the definition is under-specified for its complexity.

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 0%, so the description must compensate; it supplies the required YYYY-MM-DD format for begin_date and end_date, which is genuine added meaning. The third parameter, account_type (enum stock/futures, default stock), is never mentioned, leaving a full third of the inputs undocumented in both schema and description.

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?

"Realized PnL records between dates" gives a specific resource (realized PnL records) with an explicit scope (date-bounded), which is more than a restatement of the name. It does not, however, distinguish itself from the sibling list_profit_loss_summary, which an agent would also plausibly reach for.

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?

The description implies when to use this tool (when you need per-row realized PnL between two dates) and explicitly routes follow-up work to list_profit_loss_detail via the row id. It offers no exclusions or comparison against list_profit_loss_summary, so the choice between the two list variants is left to inference.

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