Skip to main content
Glama
MCP Template

MCP Template

by VitorKaeZ

Get Weather Forecast

get_forecast
Read-only

Retrieves a daily weather forecast for a city for the next 1–16 days, including high/low temperatures and precipitation chance.

Instructions

Get a daily weather forecast for a city for the next N days (1-16), including high/low temperatures and precipitation chance.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "city": "<city>"
    },
    "name": "get_forecast"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesCity name, e.g. 'São Paulo' or 'Tokyo'
daysNoNumber of forecast days (1-16)
countryNoOptional ISO-3166 country code to disambiguate, e.g. 'BR'

Output Schema

NameRequiredDescriptionDefault
daysYes
locationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety and external-data behavior are covered. The description adds useful content signals (daily granularity, high/low temperatures, precipitation chance), but omits units, timezone handling, and what happens when a city is ambiguous or unknown.

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?

A single front-loaded sentence with the resource, horizon, and returned fields, with no redundant or filler wording.

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?

With an output schema present, return values need not be explained, and the description is adequate for invocation. However, for a weather tool the missing unit convention (metric vs imperial) and the lack of guidance on using country to resolve ambiguous city names leave real gaps an agent would hit in practice.

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?

Schema description coverage is 100%, so city, days, and country are already documented in the schema. The description restates the day range (1-16) but says nothing about the country disambiguation parameter or the default of 3 days, adding no meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('Get') and resource ('daily weather forecast for a city') and scopes it to the next N days (1-16), which implicitly separates it from the current-conditions sibling. It does not explicitly name or contrast with get_current_weather or plan_outfit, so it falls short of full sibling differentiation.

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?

Usage is only implied: the multi-day horizon suggests using it when a forecast, not current conditions, is needed. There is no explicit statement of when to prefer this over get_current_weather or when to hand off to plan_outfit.

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

Deploy Server

Other Tools