Skip to main content
Glama
shioaji-mcp

shioaji-mcp

by xianyuntang

get_snapshots

Retrieves current market snapshots for up to 500 codes, including open/high/low/close, change, volume, and best bid/ask. Use it to check price and quote data across multiple symbols.

Instructions

Latest snapshot (open/high/low/close, change, volume, best bid/ask) for up to 500 codes.

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": {
      "codes": "<codes>"
    },
    "name": "get_snapshots"
  }
}

Input Schema

NameRequiredDescriptionDefault
codesYes

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 supplied, so the description carries the full behavioral burden. It does disclose the returned data shape and a concrete operational limit (max 500 codes), which is real value, but it says nothing about data freshness/delay, whether codes are validated, what happens on unknown codes, or rate limiting.

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?

One front-loaded sentence with no filler; the returned fields and the batch cap both fit naturally without padding. It is arguably slightly too terse for the amount of undocumented semantics, but nothing in it is wasted.

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

Completeness4/5

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

With no output schema and no annotations, the description partially compensates by listing the returned fields, which is the main thing missing otherwise. Remaining gaps (code format, freshness, error behavior) are modest for a one-parameter read-only lookup, but they are not zero.

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?

The single parameter has 0% schema description coverage, so the description must compensate. It does add meaning by establishing that 'codes' is a batch list capped at 500 instruments, but it never states the expected code format (exchange suffix, case, market prefix), leaving the most error-prone aspect undocumented.

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?

'Latest snapshot ... for up to 500 codes' gives a specific resource (current market snapshot) and enumerates exactly what the snapshot contains (OHLC, change, volume, best bid/ask). It does not name or contrast with siblings such as get_kbars or get_ticks, so an agent must infer the difference from the 'latest' wording alone.

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 statement, no prerequisites, and no named alternative. Usage is only implied: the emphasis on the current best bid/ask and single latest values suggests quoting current state rather than retrieving historical bars or ticks, but the agent has to draw that inference itself.

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