Get Earthquakes
get_earthquakesRetrieve 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
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look back N days (1-30, default 1) | |
| min_magnitude | No | Minimum magnitude (default 4.0) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Total number of earthquakes found | |
| earthquakes | Yes | List of earthquake events |