Skip to content

Commit 8c5b8c1

Browse files
committed
formatting
1 parent 80f87d8 commit 8c5b8c1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

apps/workers-builds/src/tools/observability.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ import type { BuildsMCP } from '../index'
2020
export function registerBuildsTools(agent: BuildsMCP) {
2121
// Register the worker logs analysis tool by worker name
2222
agent.server.tool(
23-
'query_worker_observability',
24-
`Query the Workers Observability API to analyze logs and metrics from your Cloudflare Workers.
23+
'list_workers_builds',
24+
`
25+
Query the Workers Builds API to view builds from your Cloudflare Workers.
2526
26-
* A query typical query looks like this:
27-
{"view":"events","queryId":"workers-logs-events","limit":5,"dry":true,"parameters":{"datasets":["cloudflare-workers"],"filters":[{"id":"520","key":"message","operation":"eq","type":"string","value":"Clickhouse Statistics"},{"id":"2088","key":"statistics.elapsed","operation":"gt","type":"number","value":"0.269481519"}],"calculations":[],"groupBys":[],"havings":[]},"timeframe":{"to":"2025-04-30T20:53:15Z","from":" ""2025-04-30T19:53:15Z"}}
2827
## Core Capabilities
2928
This tool provides three primary views of your Worker data:
3029
1. **List Events** - Browse individual request logs and errors
@@ -41,7 +40,7 @@ This tool provides three primary views of your Worker data:
4140
## Troubleshooting
4241
- If no results are returned, suggest broadening the time range or relaxing filters
4342
- For errors about invalid fields, recommend using observability_keys to see available options
44-
`,
43+
`.trim(),
4544

4645
{
4746
query: zQueryRunRequest,

0 commit comments

Comments
 (0)