Skip to main content
Glama

Active hazards near a ZIP

get_hazards
Read-onlyIdempotent

Today's active hazards near a US ZIP code (weather, outages, fire, quakes, recalls and more), each with its source name and time. Use get_threat_score for the overall score.

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": {
      "zip": "<zip>"
    },
    "name": "get_hazards"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipYes5-digit US ZIP code, e.g. '33101' (Miami)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/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 and determinism are covered structurally. The description adds genuinely new context: results are limited to 'today' and each entry includes its source name and time, which tells the agent the recency window and the shape of the payload. It omits rate limits, latency, and empty-result behavior, keeping it below 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.

Conciseness5/5

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

Two sentences, zero filler. The core capability and coverage categories are front-loaded, with the sibling routing sentence placed after so it doesn't obscure the primary purpose.

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?

For a one-parameter, read-only lookup with no output schema, the description does the necessary work by naming the categories returned and the per-item fields (source name and time). It's nearly complete, though a note on empty results or an unexpected ZIP would close the remaining gap.

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% and the single 'zip' parameter is fully documented with format and an example, so the schema carries the burden. The description only reinforces the US-only scope of the ZIP, adding little beyond what the schema already states; baseline 3 applies.

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 and resource ('Today's active hazards near a US ZIP code') plus the scope of coverage (weather, outages, fire, quakes, recalls) and what each result carries (source name and time). It also explicitly names get_threat_score as the different sibling, so an agent can separate the list tool from the score tool 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 clear routing guidance: use this for the hazard list, and 'Use get_threat_score for the overall score' for the aggregate. It doesn't state exclusions (e.g. behavior for non-US or invalid ZIPs, or when this tool is unnecessary), so it falls short of full when/when-not guidance, but the primary selection decision is 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