Skip to main content
Glama
shioaji-mcp

shioaji-mcp

by xianyuntang

list_position_detail

Fetches a per-lot breakdown for a single position using its detail_id from list_positions, with optional stock or futures account type for accurate position analysis.

Instructions

Per-lot breakdown of one position (detail_id = position id from list_positions).

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": {
      "detail_id": "<detail_id>"
    },
    "name": "list_position_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
detail_idYes
account_typeNostock

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the entire behavioral burden. It does not state that this is a read-only operation, whether results are paginated or bounded, what happens for an invalid or non-existent detail_id, or how account_type changes the result set — all of which matter for a 2-parameter tool with zero annotation coverage.

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?

A single short sentence with zero waste, front-loading the output shape (per-lot breakdown) before the parameter hint. Nothing is redundant or padded.

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?

The core semantics and the id-provenance are covered, which is the minimum for a simple two-parameter tool with no output schema. It falls short on account_type behavior and on any return-shape or ordering expectations, which an agent would need to call it confidently.

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

Parameters2/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 supply parameter meaning. It does explain detail_id well by tying it to list_positions, but it says nothing about account_type, which is an enum ("stock"/"futures") and likely changes which position universe the id is resolved against. Half the parameters are left unexplained.

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?

"Per-lot breakdown of one position" gives a specific resource and granularity, which an agent can distinguish from the sibling list_positions (which returns whole positions rather than lots). It does not explicitly contrast with list_profit_loss_detail or other detail views, so differentiation is partial rather than complete.

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 parenthetical "detail_id = position id from list_positions" implies a drill-down workflow: call list_positions first, then fetch lots here. However, there is no explicit when-to-use statement, no when-not, and no mention of which alternatives (e.g., list_profit_loss_detail) cover different breakdowns.

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