https://api.uselemma.ai/mcp. See MCP Overview for connection setup.
Tools
List Traces
list_traces — List traces for your tenant, with optional filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | No | Filter to a specific project (UUID) |
environment | string | No | Filter by service or environment name |
start | string | No | Start of date range (ISO 8601, e.g. 2024-01-15T00:00:00Z) |
end | string | No | End of date range (ISO 8601) |
limit | integer | No | Max traces to return (default 50, max 200) |
error_only | boolean | No | Only include traces with errors (default false) |
Get Trace Details
get_trace_details — Get full details for a specific trace, including spans, tool calls, errors, and stats.
| Parameter | Type | Required | Description |
|---|---|---|---|
trace_id | string | Yes | UUID of the trace to retrieve |
Search Traces
search_traces — Search traces using a text query combined with structural filters like tool name, model, and error state.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | UUID of the project to search within |
query | string | No | Text to search for in trace summaries |
tool_name | string | No | Filter traces that called a specific tool |
model | string | No | Filter traces that used a specific model |
error_only | boolean | No | Only include traces with errors (default false) |
start | string | No | Start of date range (ISO 8601) |
end | string | No | End of date range (ISO 8601) |
limit | integer | No | Max results (default 20, max 100) |
List Metrics
list_metrics — List metrics available within your tenant or a specific project.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | No | Filter to a specific project (UUID) |
Get Metric Details
get_metric_details — Get detailed information about a metric, including recent events and linked monitors.
| Parameter | Type | Required | Description |
|---|---|---|---|
metric_id | string | Yes | UUID of the metric |
List Monitors
list_monitors — List monitors within your tenant or a specific project.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | No | Filter to a specific project (UUID) |
Get Monitor Details
get_monitor_details — Get detailed information about a monitor, including its configuration and recent evaluation history.
| Parameter | Type | Required | Description |
|---|---|---|---|
monitor_id | string | Yes | UUID of the monitor |
Resources
Resources expose structured data that MCP clients can read by URI. The Lemma server publishes its available resources at:/mcp endpoint by URI.
Prompts
Prompts are pre-built prompt templates exposed by the Lemma server. The available prompts are listed at:/mcp endpoint by name.
