Skip to main content
Glama

Current Weather

weather.weatherapi.current
Read-onlyIdempotent

Retrieve current weather conditions for any location using city name, coordinates, zip code, or airport code. Includes temperature, wind, humidity, pressure, UV index, cloud cover, and feels-like temp.

Instructions

Get current weather conditions for any location worldwide — temperature, wind, humidity, pressure, UV index, cloud cover, feels-like temp. Accepts city name, coordinates, zip code, or airport code. 100K+ stations globally (WeatherAPI.com)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesLocation query — city name (e.g. "London"), coordinates ("48.8,2.35"), US zip ("10001"), UK postcode ("SW1"), IP address, or IATA airport code ("JFK")

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds valuable context about global station coverage (100K+ stations) and the data source (WeatherAPI.com), which goes beyond the annotations without contradicting them.

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: two sentences that front-load the purpose and output fields, then specify input types. No redundant information; every word adds value.

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

Completeness5/5

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

The description, combined with the output schema (which exists but is not shown here) and annotations, provides a complete picture. It explains what the tool returns (specific weather parameters) and how to use it (input types). There are no gaps given the tool's simplicity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already provides 100% coverage for the 'q' parameter with examples. The description adds further semantic clarity by explicitly listing allowed input types (city name, coordinates, zip, airport code) and noting the global station count, enriching understanding beyond the schema.

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's purpose: to get current weather conditions for any location worldwide, listing specific data fields (temperature, wind, humidity, etc.) and input types. It distinguishes itself from sibling tools like forecast or astronomy by emphasizing '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 Guidelines4/5

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

The description specifies acceptable input formats (city name, coordinates, zip code, airport code) and notes global coverage, giving clear context for when to use it. However, it does not explicitly mention when not to use it or alternative tools for non-current data, but the distinction is implicit given the title and sibling context.

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/whiteknightonhorse/APIbase'

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