Skip to main content
Glama

Usgs Earthquakes Search Earthquakes

usgs_earthquakes_search_earthquakes
Read-onlyIdempotent

Search the USGS earthquake catalog (FDSNWS event API) for real-time and historical seismic events. Filter by time window, magnitude, depth, and a circular geographic area. For "last N days/hours" questions pass days/hours rather than computing start_time yourself. Returns a compact list of quakes with magnitude, location, time, coordinates, depth, and significance, plus the exact start_time/end_time and magnitude filter actually queried. Keyless.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "usgs_earthquakes_search_earthquakes"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoTrailing window length in days, measured back from the exact current time (e.g. days: 7 for "the last 7 days"). Use this instead of computing a start_time for relative-window questions, it is the only way to get an EXACT trailing window rather than a date-boundary approximation. Ignored if start_time or end_time is given. If `hours` is also given, `hours` wins.
hoursNoTrailing window length in hours, measured back from the exact current time (e.g. hours: 168 for "the past 168 hours"). Same precedence as `days` (ignored if start_time/end_time given); takes priority over `days` if both are given.
limitNoMax events to return (default 20, max 100).
end_timeNoISO date/time upper bound, e.g. "2026-06-09". A bare date is treated as 00:00:00 UTC that day. Defaults to now.
latitudeNoCenter latitude for a circular search (use with longitude + max_radius_km).
order_byNoSort order: "time" (newest first, default), "magnitude" (largest first), "time-asc", or "magnitude-asc".
longitudeNoCenter longitude for a circular search (use with latitude + max_radius_km).
start_timeNoISO date/time lower bound, e.g. "2026-06-01" or "2026-06-01T00:00:00". A bare date (no time) is treated as 00:00:00 UTC that day. If given, this (with end_time) takes precedence over `days`/`hours`, which are then ignored. For "in the last N days" questions, prefer `days` instead of computing this yourself, a model-guessed start_time is a common source of silently-wrong counts. Defaults to 30 days before now if start_time, days, and hours are all omitted.
max_depth_kmNoMaximum hypocenter depth in km.
min_depth_kmNoMinimum hypocenter depth in km.
max_magnitudeNoMaximum magnitude.
max_radius_kmNoSearch radius in km around latitude/longitude.
min_magnitudeNoMinimum magnitude (e.g. 5 for M5+).

Output Schema

NameRequiredDescriptionDefault
countNoTotal number of earthquakes matching criteria
earthquakesNoList of earthquakes matching search criteria

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / days / description
      Previous value: -"Trailing window length in days, measured back from the exact current time (e.g. days: 7 for \"the last 7 days\"). Use this instead of computing a start_time for relative-window questions — it is the only way to get an EXACT trailing window rather than a date-boundary approximation. Ignored if start_time or end_time is given. If `hours` is also given, `hours` wins."New value: +"Trailing window length in days, measured back from the exact current time (e.g. days: 7 for \"the last 7 days\"). Use this instead of computing a start_time for relative-window questions, it is the only way to get an EXACT trailing window rather than a date-boundary approximation. Ignored if start_time or end_time is given. If `hours` is also given, `hours` wins."
    • changedInput schema / properties / start_time / description
      Previous value: -"ISO date/time lower bound, e.g. \"2026-06-01\" or \"2026-06-01T00:00:00\". A bare date (no time) is treated as 00:00:00 UTC that day. If given, this (with end_time) takes precedence over `days`/`hours`, which are then ignored. For \"in the last N days\" questions, prefer `days` instead of computing this yourself — a model-guessed start_time is a common source of silently-wrong counts. Defaults to 30 days before now if start_time, days, and hours are all omitted."New value: +"ISO date/time lower bound, e.g. \"2026-06-01\" or \"2026-06-01T00:00:00\". A bare date (no time) is treated as 00:00:00 UTC that day. If given, this (with end_time) takes precedence over `days`/`hours`, which are then ignored. For \"in the last N days\" questions, prefer `days` instead of computing this yourself, a model-guessed start_time is a common source of silently-wrong counts. Defaults to 30 days before now if start_time, days, and hours are all omitted."
  2. Added

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds genuinely useful non-annotation context: keyless access, default 30-day window, limit default 20 cap 100, and that the response echoes the exact window and magnitude filter actually applied. It says nothing about rate limits, pagination beyond limit, or failure modes, keeping it at solid-but-not-rich.

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?

Four sentences, front-loaded with purpose then usage rule then return shape then auth, with no filler. Each clause carries information an agent needs to pick the right parameters.

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 13-parameter tool with an output schema, the description covers purpose, the key precedence trap, defaults, and auth status, which is close to sufficient. It omits edge behavior such as what happens with invalid ISO inputs or partial geo parameters (only latitude supplied), leaving a small 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 description coverage is 100%, so the schema already documents every parameter including the days/hours vs start_time precedence and the latitude+longitude+max_radius_km triplet. The description restates the filter axes at a high level ("time window, magnitude, depth, and a circular geographic area") and adds the heuristic about not computing start_time, but adds little syntax or meaning the schema lacks, matching the baseline 3.

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 and resource ("Search the USGS earthquake catalog (FDSNWS event API)") plus the filter axes, so the agent knows exactly what it retrieves. It also implies a list-returning retrieval versus an aggregate, but never names a sibling such as count_earthquakes or get_earthquake, so the differentiation is only implicit.

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 actionable routing guidance for the most error-prone case: for "last N days/hours" questions pass days/hours rather than computing start_time yourself. That is a clear when-to-use rule with an explicit anti-pattern. It stops short of any when-not guidance or named alternatives, so it is clear context without exclusions.

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.