Update debug skills for the remote Logfire MCP tool names
This commit is contained in:
parent
5dd310a9b7
commit
5d5eee54bf
2 changed files with 23 additions and 15 deletions
|
|
@ -11,13 +11,16 @@ single case. Read-only.
|
||||||
|
|
||||||
## How to query
|
## How to query
|
||||||
|
|
||||||
1. Confirm the current schema with `mcp__logfire__schema_reference` (spans and
|
1. Confirm the current schema with `mcp__logfire__query_schema_reference` (spans
|
||||||
logs share the `records` table).
|
and logs share the `records` table).
|
||||||
2. Run SQL with `mcp__logfire__arbitrary_query` (`query` + `age` in minutes, max
|
2. Run SQL with `mcp__logfire__query_run` (`query` + `project: "haiku"` +
|
||||||
30 days). The same SQL works pasted into Logfire's Explore UI.
|
`start_timestamp`/`end_timestamp`, max 14 days). The remote MCP is
|
||||||
|
org-scoped, so `project` is required; eval runs land in project `haiku`.
|
||||||
|
The same SQL works pasted into Logfire's Explore UI.
|
||||||
3. Read span attributes as JSON: `attributes->>'key'`, nested as
|
3. Read span attributes as JSON: `attributes->>'key'`, nested as
|
||||||
`attributes->'a'->'b'->>'c'`. Cast when needed: `(...)::float`, `(...)::int`.
|
`attributes->'a'->'b'->>'c'`. Cast when needed: `(...)::float`, `(...)::int`.
|
||||||
4. Hand back a clickable trace with `mcp__logfire__logfire_link(trace_id)`.
|
4. Hand back a clickable trace with
|
||||||
|
`mcp__logfire__project_logfire_link(trace_id, project="haiku")`.
|
||||||
|
|
||||||
## Vocabulary
|
## Vocabulary
|
||||||
|
|
||||||
|
|
@ -137,8 +140,8 @@ ORDER BY start_timestamp;
|
||||||
mean_task_seconds — always report task time).
|
mean_task_seconds — always report task time).
|
||||||
3. Pull failing and low-citation cases, read the judge `reason`.
|
3. Pull failing and low-citation cases, read the judge `reason`.
|
||||||
4. To understand one case, take its start/end from the case query and run the
|
4. To understand one case, take its start/end from the case query and run the
|
||||||
agent-activity query, then `logfire_link(trace_id)` so the user can expand
|
agent-activity query, then `project_logfire_link(trace_id)` so the user can
|
||||||
that case in the UI.
|
expand that case in the UI.
|
||||||
|
|
||||||
## When a query returns nothing
|
## When a query returns nothing
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,15 +12,19 @@ that served a request. Read-only.
|
||||||
|
|
||||||
## How to query
|
## How to query
|
||||||
|
|
||||||
1. Confirm the current schema with `mcp__logfire__schema_reference` (spans and
|
1. Confirm the current schema with `mcp__logfire__query_schema_reference` (spans
|
||||||
logs share the `records` table).
|
and logs share the `records` table).
|
||||||
2. Run SQL with `mcp__logfire__arbitrary_query` (`query` + `age` in minutes, max
|
2. Run SQL with `mcp__logfire__query_run` (`query` + `project: "haiku"` +
|
||||||
30 days). The same SQL works pasted into Logfire's Explore UI.
|
`start_timestamp`/`end_timestamp`, max 14 days). The remote MCP is
|
||||||
|
org-scoped, so `project` is required; the ingester ships to project `haiku`.
|
||||||
|
The same SQL works pasted into Logfire's Explore UI.
|
||||||
3. Read span attributes as JSON: `attributes->>'key'`, cast when needed
|
3. Read span attributes as JSON: `attributes->>'key'`, cast when needed
|
||||||
(`(attributes->>'attempt')::int`).
|
(`(attributes->>'attempt')::int`).
|
||||||
4. Hand back a clickable trace with `mcp__logfire__logfire_link(trace_id)`.
|
4. Hand back a clickable trace with
|
||||||
5. For recent exceptions tied to a file, `mcp__logfire__find_exceptions_in_file`
|
`mcp__logfire__project_logfire_link(trace_id, project="haiku")`.
|
||||||
accepts `client/documents.py`, `ingester/workers/pool.py`, or
|
5. For recent exceptions tied to a file,
|
||||||
|
`mcp__logfire__query_find_exceptions_in_file` accepts
|
||||||
|
`client/documents.py`, `ingester/workers/pool.py`, or
|
||||||
`ingester/pollers/base.py`.
|
`ingester/pollers/base.py`.
|
||||||
|
|
||||||
Adjust `service_name` if the operator set `OTEL_SERVICE_NAME` (e.g. per tenant).
|
Adjust `service_name` if the operator set `OTEL_SERVICE_NAME` (e.g. per tenant).
|
||||||
|
|
@ -185,7 +189,8 @@ ORDER BY n DESC;
|
||||||
`ingester.worker breaker opened` event flags a source the pool paused. The
|
`ingester.worker breaker opened` event flags a source the pool paused. The
|
||||||
per-job dead/reschedule narration stays in the ingester console and the queue
|
per-job dead/reschedule narration stays in the ingester console and the queue
|
||||||
API, not Logfire.
|
API, not Logfire.
|
||||||
5. `logfire_link(trace_id)` for a document lets the user expand the full tree.
|
5. `project_logfire_link(trace_id)` for a document lets the user expand the
|
||||||
|
full tree.
|
||||||
|
|
||||||
## When a query returns nothing
|
## When a query returns nothing
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue