Skip to main content
Glama
shioaji-mcp

shioaji-mcp

by xianyuntang

list_profit_loss_summary

Retrieve realized profit and loss summarized per instrument and totals for a date range, optionally filtered by stock or futures account type.

Instructions

Realized PnL summarized per instrument plus totals, dates YYYY-MM-DD.

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_summary"
  }
}

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?

No annotations exist, so the description carries the burden alone. It usefully discloses that figures are realized only and that output is grouped per instrument with totals, but says nothing about date-range inclusivity/timezone, default account scoping (stock vs futures), or result size limits.

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 dense sentence with the return shape front-loaded and no filler. The trailing "dates YYYY-MM-DD" is telegraphic but functional rather than wasteful.

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

Completeness3/5

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

For a 3-parameter read tool with zero schema coverage and no output schema, it covers the return shape and date syntax adequately. The notable remaining gap is account_type: with a stock default, the description never says that futures data is excluded unless requested.

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 adds the concrete date format (YYYY-MM-DD) for begin/end date, which the schema lacks, but gives no meaning to account_type or its effect on which instruments are returned.

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 states a specific verb+resource ("Realized PnL summarized") and pins down the granularity ("per instrument plus totals"), so an agent knows this is the aggregate report rather than a per-trade breakdown. It does not name the sibling report(s) explicitly, leaving the summary-vs-detail distinction to inference.

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?

There is no explicit when-to-use, when-not-to-use, or named alternative; the word "summarized" only implies that detail-level needs belong elsewhere. Usage is inferable but not routed.

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