/mirra:observabilityfrom mirra
Queries audit events and traces for Mirra observability, covering adapter operations and LLM tool calls via REST API.
Ships in mirra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Query audit events and traces for the current user or group. Provides full observability into adapter operations and LLM tool calls.
You need the user's API key. Ask for these if not provided:
API_KEY: Mirra API key (generated in Mirra app > Settings > API Keys)API_URL: Defaults to https://api.fxn.world (only ask if they mention a custom server)All operations use a single POST endpoint with the resource ID and method in the body:
curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
-H "Content-Type: application/json" \
-H "x-api-key: ${API_KEY}" \
-d '{
"resourceId": "observability",
"method": "{operation}",
"params": { ...args }
}' | jq .
Replace {operation} with the operation name from the table below.
Legacy alternative:
POST ${API_URL}/api/sdk/v1/observability/{operation}with args as the request body also works but is not recommended for new integrations.
| Operation | Description |
|---|---|
queryEvents | Query audit events with flexible filters. Returns structured audit events for adapter operations ... |
getTrace | Reconstruct the full operation chain for a given trace ID. Returns all events in chronological or... |
queryEventsQuery audit events with flexible filters. Returns structured audit events for adapter operations and LLM tool calls. Use this to investigate errors, see what happened recently, or trace a specific operation chain.
Arguments:
timeRange (object, optional): Time range filter with start/end ISO 8601 strings. Defaults to last 24 hours.adapter (string, optional): Filter by adapter service ID (e.g. "data", "flows", "pages")operation (string, optional): Filter by exact operation name (e.g. "insertRecord", "executeFlow")outcome (string, optional): Filter by outcome: "success", "failure", or "pending"severity (string, optional): Filter by severity: "debug", "info", "warn", or "error"actorType (string, optional): Filter by actor type: "user", "llm", "flow", "agent", or "system"traceId (string, optional): Filter to a single trace IDsearch (string, optional): Text search across action, error.message, and target.name fieldslimit (number, optional): Max results to return (default 50, max 200)offset (number, optional): Pagination offset (default 0)Returns:
object: Object with events array and pagination metadata (totalCount, limit, offset, hasMore)
Example:
curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
-H "Content-Type: application/json" \
-H "x-api-key: ${API_KEY}" \
-d '{"resourceId":"observability","method":"queryEvents","params":{"adapter":"data","outcome":"failure","limit":10}}' | jq .
Example response:
{
"events": [
{
"adapter": "data",
"operation": "insertRecord",
"outcome": "failure",
"error": {
"message": "Collection not found"
}
}
],
"pagination": {
"totalCount": 1,
"limit": 10,
"offset": 0,
"hasMore": false
}
}
getTraceReconstruct the full operation chain for a given trace ID. Returns all events in chronological order with a summary of the trace outcome.
Arguments:
traceId (string, required): The trace ID to look upReturns:
object: Object with events array (chronological) and summary (totalDuration, adaptersCalled, outcome, errorCount)
Example:
curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
-H "Content-Type: application/json" \
-H "x-api-key: ${API_KEY}" \
-d '{"resourceId":"observability","method":"getTrace","params":{"traceId":"trace-abc-1234"}}' | jq .
Example response:
{
"events": [
{
"adapter": "data",
"operation": "queryRecords",
"outcome": "success",
"duration": 42
},
{
"adapter": "pages",
"operation": "createPage",
"outcome": "failure",
"duration": 12
}
],
"summary": {
"totalDuration": 54,
"adaptersCalled": [
"data",
"pages"
],
"outcome": "mixed",
"errorCount": 1
}
}
All SDK responses return the operation payload wrapped in a standard envelope:
{
"success": true,
"data": { ... }
}
The data field contains the operation result. Error responses include:
{
"success": false,
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message"
}
}
jq . to pretty-print responses, jq .data to extract just the payloaddata.results or directly in data (check examples)--fail-with-body to curl to see error details on HTTP failuresexport API_KEY="your-key"What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub oz-networks/mirra-sdk --plugin mirra39 skills in this plugin
/aiUse Mirra to access ai services for chat, decisions, and streaming with multi-provider support. Covers all AI Services SDK operations via REST API./channelsUse Mirra to the places a space publishes to — its corporate x, blog, newsletter — and the drafted copy waiting to go out to them. use listchannels to see what this space.... Covers all Space Channels SDK operations via REST API./contactsUse Mirra to manage user contacts - list, add, remove, search, block, and unblock contacts. Covers all Contacts SDK operations via REST API.Other plugins' skills for the same job