Skip to main content
Glama

get_weather

Read-onlyIdempotent

Weather now, 7-day forecast, air quality and local time for 250 major cities (by name or nearest to coordinates). Metric.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_weather"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoe.g. 'Paris' or 'Portland, US'.
daysNoForecast days (default 3).
latitudeNoLatitude.
longitudeNoLongitude.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / days / maximum
      Removed value: -7
    • removedInput schema / properties / days / minimum
      Removed value: -0
    • addedInput schema / properties / latitude / description
      Added value: +"Latitude."
    • removedInput schema / properties / latitude / maximum
      Removed value: -90
    • removedInput schema / properties / latitude / minimum
      Removed value: --90
    • addedInput schema / properties / longitude / description
      Added value: +"Longitude."
    • removedInput schema / properties / longitude / maximum
      Removed value: -180
    • removedInput schema / properties / longitude / minimum
      Removed value: --180
    • removedInput schema / required
      Removed value: -[]
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint, so the safety profile is covered. The description adds genuinely new behavior: coverage is limited to 250 major cities, coordinates resolve to the nearest city, and output is metric. It does not mention rate limits or what happens for a city outside the 250-city set.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with the deliverable front-loaded, followed by scope and accepted input forms. There is no filler, and every clause carries information an agent needs.

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, the description usefully enumerates what comes back (current weather, forecast, air quality, local time), which is exactly what an agent needs to choose this tool. The remaining gap is the ambiguous relationship between the 'days' parameter and the stated 7-day maximum.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning beyond the schema: coordinates produce weather for the nearest covered city rather than an arbitrary point, and results are in metric. It does not clarify the interaction between 'days' and the advertised 7-day forecast.

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 names the resources precisely: current conditions, 7-day forecast, air quality, and local time, plus scope (250 major cities) and input modes (name or coordinates). It is clearly distinguishable from siblings like get_current_time or get_disaster_alerts. The only wobble is '7-day forecast' versus the schema's default of 3 days, which blurs whether 7 is a cap or the deliverable.

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 implied by the domain ('Weather now, 7-day forecast...'), and the parenthetical hints that either a city name or coordinates can drive the lookup. However, there is no explicit statement of when to prefer one input mode over the other, nor any exclusion pointing to alternative tools for time-only or alert-only queries.

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.