Skip to main content
Glama
tokyo-transit-mcp
by loosephoto

Get Weather

get_weather
Read-onlyIdempotent

Retrieve weather and temperature for a specified area from the Japan Meteorological Agency API, including heatstroke cautions when temperatures are high.

Instructions

天気情報取得 - 気象庁APIから天気・気温を取得。高温時は熱中症の留意を返す。ai_transit_advice はLLM向けの留意メモ(ja/zh は 【留意】、en は [Note] で始まる)で、そのまま貼らず回答に織り込む。language(ja/en/zh)指定で応答言語を強制可能。

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": {
      "area_name": "<area_name>"
    },
    "name": "get_weather"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNo応答言語の強制指定(省略時は地域名から自動判定)
area_nameYes地域名(例: 東京, 横浜)

Output Schema

NameRequiredDescriptionDefault
statusYesSUCCESS / NO_DATA / ERROR など
messageNo
detected_languageNoja / en / zh

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.58.27
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "detected_language": {
      +      "description": "ja / en / zh",
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "SUCCESS / NO_DATA / ERROR など",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. Changed4 schema fields changedv2.58.7
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "応答言語の強制指定(省略時は地域名から自動判定)",
      +  "enum": [
      +    "ja",
      +    "en",
      +    "zh"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[]New value: +[
      +  "area_name"
      +]
  3. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, so safety is covered; the description adds real value beyond that by revealing it calls the JMA API, that it emits a heatstroke caution under high temperatures, and that ai_transit_advice carries marker prefixes (【留意】 for ja/zh, [Note] for en) that must be reworded rather than pasted. These are output-content behaviors not obvious from the annotations.

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?

Three compact sentences, front-loaded with the core purpose, followed by output-handling notes that genuinely affect how the agent should present results. The ai_transit_advice clause is dense with prefix details but each element earns its place for correct answer construction.

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 an output schema present, the description need not explain return values, and it still adds the key output-handling caveat plus the language-forcing behavior. It is largely complete for a simple two-parameter read tool; only error behavior for unrecognized area names is unaddressed.

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%, and both parameters are already documented there, including the enum and the auto-detection fallback for language. The description restates that specifying language (ja/en/zh) forces the response language but adds no syntax or edge-case detail beyond the schema, so it sits at the baseline.

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 opens with a specific verb+resource ("天気情報取得" – retrieve weather/temperature) and names the data source (気象庁API), so an agent knows exactly what the tool returns. It is not confused with any sibling, since all siblings are transit tools and none deal with weather, though the latter half of the sentence drifts into output-format guidance rather than purpose.

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/when-not-to-use or alternative comparison, presumably because no sibling overlaps in function. The guidance that is present is about post-call handling ("そのまま貼らず回答に織り込む" – don't paste ai_transit_advice verbatim) and forcing response language, which is implied usage rather than selection guidance.

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