Skip to main content
Glama
yehyaabk

Weather MCP Agent

by yehyaabk

fetch_weather_forecast

Retrieve the weather forecast for any city, including temperature, description, and datetime at 3-hour intervals.

Instructions

Fetch the weather forecast for a given city.

Args: city (str): Name of the city to fetch forecast data for.

Returns: dict[str, Any]: A dictionary containing the city, country, and a list of forecast entries (temperature, datetime, and description) at 3-hour intervals. Returns a dictionary with an "error" key if the request fails or the data cannot be retrieved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It does transparently describe the return format and error behavior (returning an 'error' key on failure). However, it does not mention potential prerequisites, rate limits, or side effects, though the tool is clearly a read-only operation. The error handling is a positive, but other behavioral aspects are omitted.

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 concise and well-structured. It promptly states the action, then details the argument and return value in a clear Args/Returns format. No words are wasted; every sentence contributes useful information.

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 simplicity of the tool (one parameter, no annotations, limited schema), the description is fairly complete. It covers purpose, parameter semantics, return structure, and error handling. The only gap is the lack of explicit usage guidance relative to the sibling tool, but that is a minor omission for such a straightforward fetch tool.

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?

The schema only provides a 'city' string with a title of 'City', and schema description coverage is 0%. The description compensates by explaining that the parameter is the 'Name of the city to fetch forecast data for', adding meaning beyond the schema. It could have provided more detail on city format, but for a single required parameter, it is helpful.

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 states the action ('Fetch the weather forecast') and the resource ('for a given city'). It also distinguishes itself from the sibling tool 'fetch_current_weather' by specifying '3-hour intervals' as part of the forecast data, making it clear this is for multi-period forecasts rather than current conditions.

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 usage when a forecast is needed, but it does not explicitly state when to use this tool over 'fetch_current_weather' or mention any exclusions. The '3-hour intervals' hint differentiates it, but no clear guidance on selection criteria is provided.

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/yehyaabk/mcp_weather_agent'

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