Skip to main content
Glama

get_devices_by_aqi

Filter Yerevan air quality devices by AQI threshold to find sensors above or below a chosen pollution level, ordered by AQI for quick comparison.

Instructions

Devices filtered above or below an AQI threshold, ordered by AQI.

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_devices_by_aqi"
  }
}

Input Schema

NameRequiredDescriptionDefault
aboveNotrue = above threshold, false = below
limitNoMax results
thresholdNoAQI threshold value

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it does not clearly state that this is a read-only listing operation, nor how defaults (above=true, threshold=100, limit=20) behave. 'Ordered by AQI' is disclosed, but sort direction relative to the above flag and the response shape are left unstated.

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?

One tight sentence with the resource and filter condition front-loaded and no filler. Every phrase carries information.

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?

For a simple three-optional-parameter read tool with full schema coverage, minimal description is defensible, but the ambiguous meaning of 'ordered by AQI' (ascending vs descending, and whether it follows the above flag) leaves a small but real gap. Nothing about return fields is given, though no output schema exists to cover it.

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 each of the three parameters (above, limit, threshold) is already documented in the schema, including defaults and ranges. The description adds no syntax or semantics beyond what the schema provides, so the baseline of 3 applies.

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?

States a specific resource (devices) and filter behavior (above or below an AQI threshold) plus ordering, which is more specific than the sibling get_all_devices. It does not explicitly name or differentiate itself from siblings like get_worst_locations, keeping it below a 5.

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 filtering semantics imply when the tool applies (threshold-based device queries), but the description gives no explicit when-to-use or when-not-to-use guidance relative to get_all_devices or get_worst_locations. Usage is inferable rather than stated.

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