Skip to main content
Glama
shioaji-mcp

shioaji-mcp

by xianyuntang

get_ticks

Retrieve one trading day's tick data for a stock code and date, optionally limited by a time range or last N ticks.

Instructions

Ticks of one trading day (YYYY-MM-DD). Give last_count for the last N ticks, or time_start/time_end ('HH:MM:SS') for a range; otherwise the whole day.

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": {
      "code": "<code>",
      "date": "<date>"
    },
    "name": "get_ticks"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
dateYes
time_endNo
last_countNo
time_startNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose a meaningful default — no range parameters means the entire day is returned, which signals a potentially large payload — but says nothing about permissions, rate limits, result size, or data volume.

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?

Two compact sentences with the core resource statement front-loaded and the parameter modes following. The telegraphic style ('Ticks of one trading day') costs little but leaves some ambiguity that a few more words would have removed.

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 five-parameter tool with no annotations and no output schema, the description covers retrieval modes but omits the shape of returned tick records, the meaning of 'code', and conflict resolution between mutually exclusive parameters. Adequate to call the tool, not fully complete.

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 description coverage is 0%, so the description must compensate, and it largely does: it specifies the date format YYYY-MM-DD, the time format HH:MM:SS for time_start/time_end, and the meaning of last_count as the last N ticks. It leaves 'code' undefined and does not state precedence if both last_count and a time range are supplied.

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 the resource precisely: tick data for exactly one trading day, with the date format given. 'Ticks' versus 'kbars' in get_kbars is implicitly differentiated by domain terminology, though the description never explicitly contrasts the two.

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?

It explains the three retrieval modes (last N ticks, time range, whole day), which is essentially usage guidance for the parameters. It gives no guidance on when to prefer this over get_kbars or get_snapshots, and no prerequisites or data-volume warnings.

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