Skip to main content
Glama
shioaji-mcp

shioaji-mcp

by xianyuntang

list_positions

Retrieve open positions with unrealized P&L for stock or futures accounts, in lots or shares; use each position ID to view detailed position data.

Instructions

Open positions with unrealized PnL. unit applies to stocks: Common = lots, Share = shares. Each row's id can be passed to list_position_detail.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_positions"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoCommon
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, the description must carry the behavioral burden. It does disclose that results include unrealized PnL and that each row carries an id usable elsewhere, which is useful beyond a bare 'list' claim, but it says nothing about permissions, ordering, pagination, or whether all accounts are covered by default.

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?

Three short sentences with the primary purpose front-loaded and no filler. The phrase 'unit applies to stocks' is slightly clipped and could read more cleanly, but nothing is wasted.

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 two-parameter read tool with no annotations and no output schema, the description covers the return content and one parameter's enum meaning. It still leaves account_type semantics, futures behavior, and result ordering undocumented, which is a meaningful gap given zero schema coverage.

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, and it partially does by decoding the unit enum for stocks (Common = lots, Share = shares). The account_type parameter is never explained, and the interaction between unit and a futures account type is left entirely to inference.

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 opens with a specific resource and payload: 'Open positions with unrealized PnL', which tells an agent exactly what the tool returns. It does not explicitly contrast itself with siblings like list_position_detail or list_trades, but the final sentence establishes the follow-up relationship, so the purpose is unambiguous.

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 last sentence gives one concrete routing rule: pass a row's id to list_position_detail for more detail. There is no guidance on when to prefer this tool over list_position_detail or the P&L tools, and no explanation of when account_type should be set to futures rather than the default stock.

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