Skip to main content
Glama

get_air_quality

Read-onlyIdempotent

Retrieve US AQI scores, health categories, PM2.5, PM10, NO2, and ozone concentrations across 13 Bangladeshi cities. Use for air pollution, smog, or particulate matter queries. For temperature and rainfall, use get_bd_weather instead. Read-only, updated every 2 hours. Returns us_aqi, category (Good to Hazardous), pm2_5_ugm3, pm10_ugm3, no2_ugm3, and o3_ugm3.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_air_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoOptional city or division name filter (e.g. 'Dhaka', 'Narayanganj', 'Gazipur', 'Chattogram', 'Bogura'). Omit to return all 13 cities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / city / description
      Previous value: -"City or division name"New value: +"Optional city or division name filter (e.g. 'Dhaka', 'Narayanganj', 'Gazipur', 'Chattogram', 'Bogura'). Omit to return all 13 cities."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so safety is covered structurally. The description adds genuinely new behavioral context: data freshness ("updated every 2 hours") and the concrete return fields including the category scale. It does not mention rate limits or latency, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the capability, then usage routing, then the return contract. The final field enumeration partly restates the opening pollutant list, but it earns its place as a return-value specification rather than empty filler.

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?

There is no output schema, so the description carries the burden of describing return values and does so explicitly (us_aqi, category range, pm2_5_ugm3, pm10_ugm3, no2_ugm3, o3_ugm3). Combined with the single optional parameter and existing annotations, an agent has everything needed to invoke it correctly.

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 the sole city parameter is already fully documented, including the omit-to-return-all behavior and example values. The description adds only the count of 13 cities, which is marginal meaning beyond the schema; baseline 3 is appropriate.

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?

States a specific verb ("Retrieve") and resource (US AQI scores and pollutant concentrations) and scopes it to 13 Bangladeshi cities. It enumerates the exact metrics returned and explicitly contrasts itself with get_bd_weather, so an agent can distinguish it from siblings without opening a schema.

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?

Gives explicit use conditions ("air pollution, smog, or particulate matter queries") and names the alternative route for a different need ("For temperature and rainfall, use get_bd_weather instead"). Both the when-to-use and when-not-to-use cases are covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources