Home / Servers / DigitalOcean API / insights_post_logs_search
Search logs
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Search logs To search log records in a region, send a POST request to /v2/insights/query/{region}/logs/search with a JSON body describing the time range, optional filter, ordering, and pagination. The time… [POST /v2/insights/query/{region}/logs/search]
Name on the gateway: digitalocean_api__insights_post_logs_search · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
region required | string | The datacenter region slug for the query. |
time_range required | object | An inclusive query time window. |
filter | object | A boolean filter tree for logs queries. Exactly one node is set per message. |
order_by | array | Sort clauses applied to the result set. |
pagination | object | Opaque keyset pagination request. Cursors are only valid when ordering by… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "digitalocean_api__insights_post_logs_search",
"arguments": {
"region": "…",
"time_range": "…"
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the search logs tool with region set to ….