get_latest
Retrieve recent Cloudflare Workers log entries from Logpush MCP by environment, with optional filtering by script name and result limit.
Instructions
Get the most recent log entries.
Args: environment: Environment (production or staging). script_name: Filter by worker script name (optional). limit: Maximum entries to return (default 50).
Returns: Dict with the most recent log entries.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_latest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environment | No | production | |
| script_name | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||