Skip to main content
Glama

gasoline_cost

ガソリン代の計算。片道の距離(km)と燃費(km/L)を渡すと、その都道府県の今週のレギュラー・ハイオク・軽油の平均単価(資源エネルギー庁の週次調査・暮らしグラムの台帳)で、片道・往復・1か月・1年のガソリン代と1kmあたりの円を返す。「〇〇まで車で行くとガソリン代はいくら」「通勤のガソリン代」「燃費が良くなると年にいくら得か」「会社の規定の1kmあたり◯円で交通費はいくら」「通勤手当は月いくらまで非課税」の相談にはこれ。片道の距離から通勤手当の非課税限度額(国税庁 No.2585・令和8年4月1日現在)も返す。距離は渡す側が出す(直線距離なら道のりは1.2〜1.4倍と添える)。画面は /now/gasoline/keisan/、表は /now/gasoline/tsukin/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kmYes片道の距離(km)
fuelNoregular / hioku / diesel。既定 regular
kmplNo燃費(km/L)。既定 15
prefNo都道府県コード2桁(東京 13・広島 34)か名前。既定 13
priceNo単価を自分で指定するとき(円/L)
per_monthNo1か月の回数(通勤なら出勤日数)
roundtripNo往復なら 1
rate_per_kmNo会社の規定の 1km あたりの単価(円)。渡すと燃費と単価の代わりにこれで計算

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / rate_per_km
      Added value: +{
      +  "description": "会社の規定の 1km あたりの単価(円)。渡すと燃費と単価の代わりにこれで計算",
      +  "type": "number"
      +}
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the data source (資源エネルギー庁の週次調査・暮らしグラム), the tax rule basis (国税庁 No.2585・令和8年4月1日現在), that km must be supplied by the caller, and the 1.2–1.4 straight-line-to-road caveat. It does not state auth needs or error behavior, so not a 5.

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 core purpose and returns, followed by routing examples and reference URLs. The list of example queries is somewhat long but each maps to a distinct use case; structure is functional with little filler.

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 an 8-parameter tool with no annotations and no output schema, the description explains what is returned (period totals, per-km cost, non-taxable commuter limit) and the provenance of the price data. Only permission/error behavior and the distinction from other cost tools 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 description coverage is 100%, so the schema already documents all 8 parameters (fuel enums, pref codes, defaults, rate_per_km override). The description adds only the straight-line-distance caveat and the fact that km is caller-provided, so it does not go beyond the baseline for high-coverage schemas.

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?

Starts with a specific verb+resource (ガソリン代の計算) and enumerates exactly what it computes and returns (片道・往復・1か月・1年のガソリン代、1kmあたりの円、通勤手当の非課税限度額). An agent can tell what it does, though it never names a sibling or states how it differs from cost tools like seikatsuhi or cost_item.

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 concrete trigger phrases ('〇〇まで車で行くと…', '通勤のガソリン代', '通勤手当は月いくらまで非課税') that map user intents to this tool. Clear context for when to call, but no explicit when-not or named alternative among the many cost/price siblings.

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.

Resources