Skip to main content
Glama

Hazards near batch

hazards_near_batch
Read-onlyIdempotent

Use when you need to screen several sites for natural hazards at once: up to 10 'lat,lon' points in one POST, each answered exactly like /hazards/near. Returns the paid x402 request for your input (POST /hazards/near/batch, $0.05 per call; schema linked). POST that JSON body to the URL with an x402 or MPP client to get the data. Bad input is refused before any charge. For a single site use hazards_near.

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": {
      "sites": "<sites>"
    },
    "name": "hazards_near_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
kmNooptional, for every site: radius in km for earthquakes and EONET events (NWS alerts are for the point itself), 1..500
daysNooptional, for every site: look-back days, 1..30
sitesYes1 to 10 sites; duplicates are removed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / km / description
      Previous value: -"optional, for every site: radius in km, 1..500"New value: +"optional, for every site: radius in km for earthquakes and EONET events (NWS alerts are for the point itself), 1..500"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the paid x402/MPP flow, the $0.05 per-call cost, the POST target, and that bad input is refused before any charge — key behavioral facts an agent cannot infer from readOnlyHint/idempotentHint. It stops short of stating rate limits or response shape, so it is not exhaustive.

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?

Front-loads the usage trigger, then the pricing/execution mechanics, then the sibling redirect — a logical order with little waste. It is dense but slightly repetitive in restating the payment/POST mechanics twice.

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?

With no output schema, the description still tells the agent this returns a paid request payload to POST onward and that results mirror /hazards/near, which is enough to act correctly. It does not describe the eventual payload contents directly, but the sibling reference covers that.

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%, so km, days and sites are already fully documented with ranges and semantics. The description adds only that km/days apply uniformly to every site via 'each answered exactly like /hazards/near', which is marginal beyond the schema baseline.

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 concrete verb and resource (screen several sites for natural hazards), quantifies scope (up to 10 'lat,lon' points in one POST), and explicitly contrasts with the sibling hazards_near for single-site use.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Opens with 'Use when you need to screen several sites at once' and closes with 'For a single site use hazards_near', giving both the positive selection condition and the alternative tool by name.

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