Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai

get-span-annotations

Retrieve span annotations, including metadata, scores, or labels, for specific span IDs. Use this tool to analyze and categorize spans in projects, with options to filter annotations and paginate results.

Instructions

Get span annotations for a list of span IDs.

Span annotations provide additional metadata, scores, or labels for spans. They can be created by humans, LLMs, or code and help in analyzing and categorizing spans.

Example usage: Get annotations for spans ["span1", "span2"] from project "my-project" Get quality score annotations for span "span1" from project "my-project"

Expected return: Object containing annotations array and optional next cursor for pagination. Example: { "annotations": [ { "id": "annotation123", "span_id": "span1", "name": "quality_score", "result": { "label": "good", "score": 0.95, "explanation": null }, "annotator_kind": "LLM", "metadata": { "model": "gpt-4" } } ], "nextCursor": "cursor_for_pagination" }

Input Schema

NameRequiredDescriptionDefault
cursorNo
excludeAnnotationNamesNo
includeAnnotationNamesNo
limitNo
projectNameYes
spanIdsYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "cursor": { "type": "string" }, "excludeAnnotationNames": { "items": { "type": "string" }, "type": "array" }, "includeAnnotationNames": { "items": { "type": "string" }, "type": "array" }, "limit": { "default": 100, "maximum": 1000, "minimum": 1, "type": "number" }, "projectName": { "type": "string" }, "spanIds": { "items": { "type": "string" }, "type": "array" } }, "required": [ "projectName", "spanIds" ], "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