Skip to main content
Glama
エアレジCSV取得MCP

エアレジCSV取得MCP

by koyo-suzuki

start_download

Initiates CSV downloads of specified AirREGI sales reports by store and month, returning a job_id to track progress with get_download and avoid treating failed stores or periods as zero sales.

Instructions

指定した帳票のCSVを、店舗ごと・月ごとに取得して保存します。期間のない帳票(list_reports で period が false。例:product_settings、category_settings)は from と to を省き、店舗ごとに1ファイル取得します。すぐに job_id を返すので、get_download で終わるまで確認してください。取得に失敗した店舗や期間を売上ゼロと扱わないでください。

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": {
      "report": "<report>",
      "stores": "<stores>"
    },
    "name": "start_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo終了日 YYYY-MM-DD(日本時間の今日以前)。期間のない帳票では省く
fromNo開始日 YYYY-MM-DD。期間のない帳票では省く
reportYes帳票のID(list_reports で確認)
storesYes店舗名(list_stores で確認)
output_dirNo保存先フォルダの絶対パス。省略するとデータフォルダの downloads の下に作ります

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare that this is not read-only, that it may reach external data, and that it is non-destructive. The description adds substantial context beyond that: the call is asynchronous and returns a job_id immediately, the job must be polled via get_download, and failed stores/periods must not be treated as zero-sales data. It does not cover cost, rate limits, or overwrite behavior for existing files in output_dir.

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 with the action, then the conditional parameter rule, then the polling requirement and the failure caveat; no filler sentences. The first sentence is long (two clauses joined), but each part carries information.

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 5-parameter async job tool with no output schema, the description supplies the essential missing pieces: the job_id return, the polling workflow through get_download, and the partial-failure interpretation rule. Only file-overwrite behavior in output_dir is left implicit.

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 the baseline is 3. The description does add real meaning by tying the report enum to whether from/to are required (the period-less case), which is a cross-parameter rule the schema states only per-field. It adds no further detail on output_dir or store-name format.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (fetch and save the CSV of the specified report, per store and per month) and distinguishes itself from siblings by naming list_reports for report IDs and get_download for completion checks. An agent can tell what it produces (files) and what it returns (a job_id).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete conditional rule: for period-less reports (period=false in list_reports, e.g. product_settings/category_settings), omit from and to and fetch one file per store. It also directs the agent to poll get_download. It does not discuss when not to use this tool or mention cancel_download as an alternative, which keeps it from a 5.

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