Skip to main content
Glama

get_daily_forecast

Retrieve the daily weather forecast for any Spanish municipality using its AEMET code. Access accurate meteorological data directly via the AEMET-MCP server.

Instructions

Get the daily weather forecast for a Spanish municipality.

Args: municipality_code: AEMET municipality code (e.g., "28079" for Madrid)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
municipality_codeYes

Implementation Reference

  • The main handler function for the 'get_daily_forecast' tool. It is registered via the @mcp.tool() decorator and fetches the daily weather forecast from AEMET API using the provided municipality code.
    @mcp.tool() async def get_daily_forecast(municipality_code: str): """Get the daily weather forecast for a Spanish municipality. Args: municipality_code: AEMET municipality code (e.g., "28079" for Madrid) """ url = f"{AEMET_API_BASE}/prediccion/especifica/municipio/diaria/{municipality_code}" return await make_aemet_request(url)

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/AnCode666/aemet-mcp'

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