Skip to main content
Glama

get_device_current

Fetch full current air quality and weather readings for a specific Yerevan sensor by device code, including AQI, PM2.5, PM10, NO2, O3, temperature, humidity, and wind.

Instructions

Full current reading for a specific sensor: AQI, PM2.5, PM10, NO2, O3, temperature, humidity, wind.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>"
    },
    "name": "get_device_current"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesDevice code identifier

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it only says what data comes back. It does not say whether the reading is live or cached, how stale it may be, what units are used, or what happens when an unknown device code is supplied — all material for a data-retrieval tool.

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?

A single front-loaded sentence with no filler, and the metric list earns its place by telling the agent what fields to expect. Slightly list-heavy, but nothing is wasted.

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 one-parameter read tool with no output schema, the field enumeration is genuinely helpful and largely sufficient to call it correctly. It stops short of covering freshness, units, or error behavior, which an agent would still need for a sensor reading.

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 coverage is 100% for the single `code` parameter, so the baseline is 3. The description only refers to "a specific sensor" without adding format, case-sensitivity, or lookup-failure guidance beyond what the schema already states.

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 verb+resource ("Full current reading for a specific sensor") and enumerates the returned metrics, which makes its scope concrete. The word "current" implicitly distinguishes it from get_device_history, but no sibling is named explicitly.

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?

Usage is only implied: "current" signals this is the snapshot tool rather than the history or aggregate tools, and the required device code implies per-sensor lookup. There is no explicit when-to-use statement, no exclusions, and no mention of when a sibling like get_device_history would be preferable.

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