Skip to main content
Glama

Weather Forecast

weather_forecast
Read-onlyIdempotent

Get weather forecasts for up to 16 days with daily, hourly, or minutely precision. Use location, coordinates, or IP to specify the target.

Instructions

Get weather forecast for up to 16 days with daily, hourly, or minutely precision. Use EITHER 'forecast_days' OR 'start_date'+'end_date' to define the range, not both. Only current or future dates are allowed. Provide at least one of: 'location', lat+long, or 'ip'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
locationNoTarget location — city name, place name, or full address (e.g. "London", "Paris, France", "1600 Amphitheatre Parkway, Mountain View, CA").
latNoLatitude (-90 to 90). Must be paired with 'long'.
longNoLongitude (-180 to 180). Must be paired with 'lat'.
ipNoIPv4 or IPv6 address. Required if 'location' and lat/long are not provided.
start_dateNoStart date for forecast range (YYYY-MM-DD). Current or future dates only. Must be paired with 'end_date'. Max 16-day range.
end_dateNoEnd date for forecast range (YYYY-MM-DD). Current or future dates only. Must be paired with 'start_date'. Max 16-day range.
forecast_daysNoNumber of forecast days (1–16). Defaults to 7 if neither this nor start_date/end_date is provided. Do NOT combine with start_date/end_date.
precisionNoForecast granularity: 'daily' (default), 'hourly', or 'minutely'.daily
time_zoneNoTimezone for returned timestamps (tz database name, e.g. 'America/New_York'). Defaults to the resolved location's timezone.
Behavior3/5

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

Annotations already indicate the tool is read-only, idempotent, and non-destructive. The description adds behavioral details like allowed date ranges and precision options, but these are largely implied by the tool's purpose and schema.

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 brief (two sentences) and front-loads the core purpose. Every sentence adds essential information without redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of an output schema, the description should provide more detail about the returned data (e.g., temperature, conditions). While it covers invocation constraints, it omits what the agent can expect in the response.

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?

With 100% schema coverage, the baseline is 3. The description adds value by explaining the exclusive parameter groups (forecast_days vs. date range) and the required location conditions, enhancing understanding beyond the schema definitions.

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 explicitly states the tool retrieves weather forecasts for up to 16 days with selectable precision, distinguishing it from sibling tools like weather_current or weather_historical. The verb 'Get' and resource 'weather forecast' clearly define the action and subject.

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

Usage Guidelines4/5

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

The description provides clear constraints on parameter usage (e.g., exclusive use of forecast_days vs. start_date+end_date, required location input). However, it does not explicitly contrast with siblings, relying on the tool's name and title for differentiation.

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/api-freaks/apifreaks-mcp'

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