Skip to main content
Glama

Get Earthquakes

get_earthquakes
Read-onlyIdempotent

Retrieve up to 20 globally recent earthquakes from the USGS FDSN service, filtered by lookback period (1-30 days, default 1) and minimum magnitude (default 4.0). Returns magnitude, location name, depth (km), coordinates, time, and tsunami warning flag.

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": {
      "days": 7,
      "min_magnitude": 5
    },
    "name": "get_earthquakes"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLook back N days (1-30, default 1)
min_magnitudeNoMinimum magnitude (default 4.0)

Output Schema

NameRequiredDescriptionDefault
countYesTotal number of earthquakes found
earthquakesYesList of earthquake events

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "count": {
      +      "description": "Total number of earthquakes found",
      +      "type": "number"
      +    },
      +    "earthquakes": {
      +      "description": "List of earthquake events",
      +      "items": {
      +        "properties": {
      +          "depth_km": {
      +            "description": "Depth in kilometers",
      +            "type": "number"
      +          },
      +          "details_url": {
      +            "description": "URL to USGS event details",
      +            "type": "string"
      +          },
      +          "latitude": {
      +            "description": "Event latitude",
      +            "type": "number"
      +          },
      +          "location": {
      +            "description": "Geographic location description",
      +            "type": "string"
      +          },
      +          "longitude": {
      +            "description": "Event longitude",
      +            "type": "number"
      +          },
      +          "magnitude": {
      +            "description": "Earthquake magnitude",
      +            "type": "number"
      +          },
      +          "time": {
      +            "description": "ISO 8601 timestamp of event",
      +            "type": "string"
      +          },
      +          "tsunami_warning": {
      +            "description": "Whether tsunami warning was issued",
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "magnitude",
      +          "location",
      +          "time",
      +          "latitude",
      +          "longitude",
      +          "depth_km",
      +          "tsunami_warning",
      +          "details_url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "count",
      +    "earthquakes"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "days": 7,
      +    "min_magnitude": 5
      +  },
      +  {
      +    "days": 1
      +  }
      +]
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, open-world), so the description's value is in the extra constraints it discloses: a hard cap of 20 results, the external USGS dependency, and the filter bounds/defaults. It does not explain result ordering (most recent vs. largest magnitude) or behavior when the lookback window has fewer than 20 events, which is the remaining gap for a capped read.

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; source, scope, and filters are front-loaded before the return fields. Every clause carries information an agent would otherwise have to infer.

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?

Complete for a simple two-parameter, zero-required read: source, cap, defaults, and filter ranges are all present, and an output schema exists so return values need not be spelled out. The only omission is result ordering/truncation semantics for the 20-item cap, a minor gap for a tool whose annotations already establish it as a safe read.

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% and both parameters already document their range and defaults, so the schema does the heavy lifting. The description only restates '1-30 days, default 1' and 'default 4.0' without adding new meaning such as units, upper bound for magnitude, or how a fractional day value is interpreted. 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 (retrieve), resource (recent earthquakes), upstream source (USGS FDSN), scope (globally recent, up to 20) and the two filters. No sibling covers seismic data, so an agent can identify this as the sole earthquake-retrieval entry point without ambiguity.

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?

Use is strongly implied by the resource and the filter defaults, so an agent knows this is the tool for recent seismic events. However, there is no explicit when-to-use/when-not statement, no mention of what to do if zero results are expected, and no named alternative or follow-up for historical or per-region queries.

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.