Skip to main content
Glama

Air quality (AQI)

get_air_quality
Read-onlyIdempotent

Current U.S. Air Quality Index (0–500). When measured:true it is the EPA/AirNow monitor reading for the Houston-Galveston-Brazoria reporting area, which includes Crosby, TX: a regional reading, not Crosby-specific. When measured:false it is an Open-Meteo modeled estimate at Crosby's coordinates, not a monitor reading. Use this for AQI questions; get_current_conditions also carries an AQI summary.

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

No arguments

Output Schema

NameRequiredDescriptionDefault
updatedNoISO 8601 timestamp of the last data refresh.
locationYes
airQualityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / properties / airQuality / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "category": {
      +        "type": "string"
      +      },
      +      "dominantMonitor": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Site name of the monitor reporting the dominant pollutant (measured path)."
      +      },
      +      "dominantPollutant": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "measured": {
      +        "type": "boolean"
      +      },
      +      "monitors": {
      +        "anyOf": [
      +          {
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Per-pollutant reporting monitor site names (measured path)."
      +      },
      +      "observed": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "reportingAgency": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "reportingArea": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "source": {
      +        "type": "string"
      +      },
      +      "subIndices": {
      +        "anyOf": [
      +          {
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Per-pollutant AQI (ozone/pm25/pm10/…)."
      +      },
      +      "usAqi": {
      +        "type": "integer"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / airQuality / properties
      Removed value: -{
      -  "category": {
      -    "type": "string"
      -  },
      -  "dominantMonitor": {
      -    "description": "Site name of the monitor reporting the dominant pollutant (measured path).",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "dominantPollutant": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "measured": {
      -    "type": "boolean"
      -  },
      -  "monitors": {
      -    "description": "Per-pollutant reporting monitor site names (measured path).",
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  },
      -  "observed": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "reportingAgency": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "reportingArea": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "source": {
      -    "type": "string"
      -  },
      -  "subIndices": {
      -    "description": "Per-pollutant AQI (ozone/pm25/pm10/…).",
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  },
      -  "usAqi": {
      -    "type": "integer"
      -  }
      -}
    • removedOutput schema / properties / airQuality / type
      Removed value: -[
      -  "object",
      -  "null"
      -]
    • addedOutput schema / properties / updated / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / updated / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Adds real substance beyond the annotations: it discloses data provenance (EPA/AirNow monitor vs Open-Meteo modeled estimate) and geographic representativeness, warning that the measured reading is a Houston-Galveston-Brazoria regional value that merely includes Crosby rather than being Crosby-specific. That caveat is exactly the kind of behavioral context annotations cannot carry. It loses a point only because the 'measured:true / measured:false' switch is never reconciled with the fact that the tool accepts no input parameters.

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?

Three sentences, front-loaded with the value range, then the two data-source branches, then the sibling routing note. Every sentence carries distinct information; there is no restatement of the title or annotations.

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?

An output schema exists, so return values need not be explained, and the description covers the hard part — provenance and whether the number is local or regional. The residual gap is the unaddressed measured flag, which is the one thing an agent would still wonder about before calling.

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 schema has zero properties, so by baseline this would be a 4 and no parameter explanation is owed. However, the description introduces a 'measured:true/measured:false' toggle that an agent cannot set through the empty input schema, creating ambiguity about how the two readings are selected. The provenance detail is valuable, but the phantom parameter costs a point.

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?

Names a specific resource and scale ('Current U.S. Air Quality Index (0–500)') and immediately distinguishes itself from the sibling that also surfaces AQI: 'Use this for AQI questions; get_current_conditions also carries an AQI summary.' An agent can route between the two without opening either schema.

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?

Gives an explicit positive selection rule ('Use this for AQI questions') and names the overlapping alternative, which is the main routing risk. It stops short of stating when-not to use it (e.g., whether get_current_conditions should win when the user wants AQI alongside weather context), so it is clear but not fully conditioned.

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.