Skip to main content
Glama

Get municipality forecast

get_municipality_forecast

Fetch daily weather forecasts for up to 7 days for any Spanish municipality using its INE code, with data from AEMET.

Instructions

Get the daily weather forecast (up to 7 days) for a Spanish municipality from AEMET (Spanish State Meteorological Agency), identified by its INE code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
municipioCodeYesINE municipality code (5 digits), e.g. 28079 for Madrid. Look it up at https://www.ine.es/daco/daco42/codmun/codmunmapa.htm
Behavior4/5

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

With no annotations provided, the description takes on the burden of conveying safety and behavior. It clearly indicates a read-only operation ('Get') and discloses the forecast window (up to 7 days) and data source (AEMET). It does not mention potential limitations like response format or external dependencies, but for a simple read tool this is adequate.

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?

The description is a single, front-loaded sentence that covers the essential aspects without fluff. Every phrase adds value: action, resource, scope, source, and identifier.

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?

Given the tool's simplicity—one well-documented parameter and a clear read operation—the description is nearly complete. It covers the return type (daily forecast), time window, and data source. It lacks explicit differentiation from siblings, but the sibling names in the context signal provide that information.

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?

The input schema already documents the sole parameter with 100% coverage, including format (5 digits), an example (28079 for Madrid), and a lookup URL. The description only adds 'INE code' which is redundant with the schema, providing no additional semantic meaning beyond the structured data.

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?

The description clearly identifies the verb ('Get'), the resource ('daily weather forecast'), and the scope ('Spanish municipality from AEMET', 'up to 7 days'). It differentiates itself from sibling tools (station observation, weather warnings) by focusing on forecast for a municipality by INE code.

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?

The description implies use for municipality weather forecasts and mentions the 7-day limit, but it does not explicitly state when to use this tool versus get_station_observation or get_weather_warnings. No exclusions or alternative instructions are provided, leaving the choice to the agent based solely on tool names.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mmillan76/aemet-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server