Skip to main content
Glama

Smaregi MCP by usefulapi

List stock history

smaregi_list_stock_changes
Read-only

The stock change history of one product in one store: date, amount, division (sale, purchase, transfer, adjustment...). GET /stock/changes/{product_id}/{store_id}.

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, from 1 (default 1). Pass the previous reply's next_page.
sortNoSort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc).
limitNoResults per page, 1-500 (default 50).
fieldsNoComma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies.
store_idYesNumeric Smaregi id (string or number).
product_idYesNumeric Smaregi id (string or number).
target_dateNoOnly changes of this target date, as Smaregi formats it (yyyy-mm-dd).
stock_divisionNoOnly changes of this stock division code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds the useful detail of what a record contains (date, amount, division), but says nothing about pagination behavior, result size, or whether an unknown product/store errors versus returning empty — all of which the agent would benefit from knowing.

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?

Front-loaded single sentence naming the resource and its scope, followed by the returned fields. The trailing GET path is arguably redundant for an agent, but it is short and does no harm.

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?

For a read-only list tool with a fully documented schema and no output schema, the description gives enough to call it correctly: scope, returned fields, and the division vocabulary. Only the routing versus smaregi_list_stock and pagination expectations are left unstated.

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 coverage is 100%, so page, sort, limit, fields, target_date, and stock_division are all documented in the schema itself. The description adds no filter semantics beyond restating the product/store scoping, so the baseline 3 applies.

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?

States a specific verb and resource ('stock change history') along with the exact scope: one product in one store. It implicitly separates itself from smaregi_list_stock (current stock) and smaregi_adjust_stock (mutation) via the word 'history', but it never names those siblings to make the boundary explicit.

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?

Usage is only implied by the word 'history' and the presence of a target_date filter. There is no explicit when-to-use or when-not-to-use guidance, and no pointer to smaregi_list_stock for current levels or smaregi_adjust_stock for corrections, which are the obvious alternatives in this sibling set.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.