Skip to main content
Glama

porto_sensors

Latest readings of Porto's street sensors: air quality, noise and weather.

Args: kind: "air" (PM2.5, PM10, NO2, O3, CO in µg/m³), "noise" (LAeq in dB(A)), "weather" (temperature, humidity, rain, wind) or "all". near: a Porto postal code, or pass lat/lon, to sort sensors by distance. Only readings from the last 3 hours are returned; sensors that stopped reporting are counted.

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": "porto_sensors"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNo
lonNo
kindNoall
nearNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden but does disclose two genuinely useful behaviors: a 3-hour freshness window and the fact that non-reporting sensors are still counted rather than silently dropped. It does not explain what that count looks like, whether results are capped, or whether there are rate limits, so the disclosure is partial for an unannotated read 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?

The lead sentence is front-loaded with purpose, followed by a compact per-argument breakdown; no sentence is redundant. The parenthetical unit lists are dense but earn their space by defining the readings.

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 shape need not be explained, and the description covers what an agent needs to call it: the freshness window, the sensor-health caveat, and the meaning of each argument. The only unresolved point is the precedence between 'near' and lat/lon and the exact meaning of 'counted'.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% – all four parameters carry only bare titles – and the description compensates well by enumerating every 'kind' value with measurement units (µg/m³, dB(A)) and explaining that 'near' takes a postal code as an alternative to passing lat/lon. The remaining gap is what happens when 'near' and lat/lon are supplied together.

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?

The opening sentence names a specific resource (Porto's street sensors) and an explicit scope (latest readings), enumerating the three data domains returned (air quality, noise, weather). It is immediately distinguishable from every listed sibling, none of which cover environmental sensors, though it does not explicitly state that differentiation.

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 implied by 'latest readings' and by the argument breakdown, which tells the agent how to choose a sensor family via 'kind'. However, there is no guidance on when to prefer this tool over alternatives, no exclusions, and no note about which kind to pick for a general-purpose query beyond the implicit 'all' default.

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.