Skip to main content
This page documents everything exposed by the Lemma MCP server at https://api.uselemma.ai/mcp. See MCP Overview for connection setup.

Tools

List Traces

list_traces — List traces for your tenant, with optional filters.
ParameterTypeRequiredDescription
project_idstringNoFilter to a specific project (UUID)
environmentstringNoFilter by service or environment name
startstringNoStart of date range (ISO 8601, e.g. 2024-01-15T00:00:00Z)
endstringNoEnd of date range (ISO 8601)
limitintegerNoMax traces to return (default 50, max 200)
error_onlybooleanNoOnly 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.
ParameterTypeRequiredDescription
trace_idstringYesUUID 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.
ParameterTypeRequiredDescription
project_idstringYesUUID of the project to search within
querystringNoText to search for in trace summaries
tool_namestringNoFilter traces that called a specific tool
modelstringNoFilter traces that used a specific model
error_onlybooleanNoOnly include traces with errors (default false)
startstringNoStart of date range (ISO 8601)
endstringNoEnd of date range (ISO 8601)
limitintegerNoMax results (default 20, max 100)

List Metrics

list_metrics — List metrics available within your tenant or a specific project.
ParameterTypeRequiredDescription
project_idstringNoFilter to a specific project (UUID)

Get Metric Details

get_metric_details — Get detailed information about a metric, including recent events and linked monitors.
ParameterTypeRequiredDescription
metric_idstringYesUUID of the metric

List Monitors

list_monitors — List monitors within your tenant or a specific project.
ParameterTypeRequiredDescription
project_idstringNoFilter to a specific project (UUID)

Get Monitor Details

get_monitor_details — Get detailed information about a monitor, including its configuration and recent evaluation history.
ParameterTypeRequiredDescription
monitor_idstringYesUUID of the monitor

Resources

Resources expose structured data that MCP clients can read by URI. The Lemma server publishes its available resources at:
GET https://api.uselemma.ai/mcp/catalog/resources
Resources are retrieved via the MCP protocol at the /mcp endpoint by URI.

Prompts

Prompts are pre-built prompt templates exposed by the Lemma server. The available prompts are listed at:
GET https://api.uselemma.ai/mcp/catalog/prompts
Prompts are retrieved via the MCP protocol at the /mcp endpoint by name.