Skip to main content
Glama
matjmiles

mcp-weather-tutorial

by matjmiles

get_forecast

Retrieve daily weather forecast for given latitude and longitude coordinates, with forecast length from 1 to 16 days.

Instructions

Get the daily weather forecast for a set of coordinates.

This tool does not accept city names. To look up a city, call geocode_city first and pass its latitude and longitude here.

Args: latitude: Degrees north, e.g. 39.74 for Denver. longitude: Degrees east, e.g. -104.98 for Denver. days: How many days ahead to forecast, 1 to 16.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
latitudeYes
longitudeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysYes
unitsYes
timezoneYes
Behavior3/5

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

No annotations are provided, so the description carries full burden. It does not disclose behavioral traits such as rate limits, idempotency, or output format. While it describes input behavior, it lacks details on response structure or side effects, which is adequate but minimal.

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 at 7 lines, front-loads the main purpose, and each sentence adds value without redundancy. No wasted words.

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 has an output schema (not shown) and only 3 simple parameters, the description covers inputs well. However, it lacks a summary of expected output fields or any note on measurement units, which would help complete the context for an agent.

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 description coverage is 0%, so the description compensates by explaining latitude with example (e.g., 39.74 for Denver), longitude similarly, and days with a range (1 to 16). It adds meaning beyond the schema, though it could specify coordinate format (decimal degrees) explicitly.

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 tool gets a daily weather forecast for coordinates, and explicitly distinguishes itself from the sibling geocode_city by stating it does not accept city names. The verb 'get' and resource 'forecast' are specific.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit when-to-use and when-not-to-use guidance: to get a forecast for coordinates, and to use geocode_city first for city names. It also gives examples of coordinate formats, aiding correct invocation.

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/matjmiles/mcp-weather-tutorial'

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