Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai

get-spans

Retrieve specific spans from a project with filtering options like time range and pagination. Spans include details such as timing, attributes, and operation context, ideal for analyzing trace data in the Arize Phoenix platform.

Instructions

Get spans from a project with filtering criteria.

Spans represent individual operations or units of work within a trace. They contain timing information, attributes, and context about the operation being performed.

Example usage: Get recent spans from project "my-project" Get spans in a time range from project "my-project"

Expected return: Object containing spans array and optional next cursor for pagination. Example: { "spans": [ { "id": "span123", "name": "http_request", "context": { "trace_id": "trace456", "span_id": "span123" }, "start_time": "2024-01-01T12:00:00Z", "end_time": "2024-01-01T12:00:01Z", "attributes": { "http.method": "GET", "http.url": "/api/users" } } ], "nextCursor": "cursor_for_pagination" }

Input Schema

NameRequiredDescriptionDefault
cursorNo
endTimeNo
limitNo
projectNameYes
startTimeNo

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "cursor": { "type": "string" }, "endTime": { "type": "string" }, "limit": { "default": 100, "maximum": 1000, "minimum": 1, "type": "number" }, "projectName": { "type": "string" }, "startTime": { "type": "string" } }, "required": [ "projectName" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'

If you have feedback or need assistance with the MCP directory API, please join our Discord server