Skip to main content
Glama

Current AQI by Coordinate

weather.airnow.current_latlng
Read-onlyIdempotent

Get current AQI observations for a US location using latitude and longitude. Returns air quality data from EPA AirNow, with optional search radius.

Instructions

Current AQI observations near a US coordinate. Same fields as current_zip. EPA AirNow

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYesLatitude (decimal degrees, e.g. 40.7128 for NYC).
lngYesLongitude (decimal degrees, e.g. -74.0060 for NYC).
distanceNoSearch radius in miles around the coordinate (default 25).

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, destructiveHint=false, idempotentHint=true. The description adds that this provides observations (not forecasts) and references 'current_zip' for consistency. It does not contradict annotations and provides useful context beyond structured data.

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?

Two sentences with no redundant information. First sentence states the core purpose, second provides cross-reference to sibling. Every word serves a purpose.

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 existence of an output schema (as indicated by context signals), the description appropriately focuses on input semantics and behavior. References to 'current_zip' provide a completeness anchor. Only minor gap: no explicit mention of US-coordinate constraint beyond what's implied.

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?

The input schema has 100% description coverage for all three parameters (lat, lng, distance). The description adds no additional meaning beyond what the schema already provides, so baseline score of 3 applies.

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 verb ('get'), resource ('Current AQI observations'), and scope ('near a US coordinate'). It distinguishes from sibling 'current_zip' by noting 'Same fields as current_zip' and provides source attribution 'EPA AirNow', making the purpose unambiguous.

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 for coordinate-based queries versus zip code (via 'Same fields as current_zip'), but does not explicitly state when to choose this tool over alternatives like 'current_zip' or 'forecast_latlng'. No exclusions or prerequisites are mentioned.

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