Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
log_span_annotations_example.py764 B
from phoenix.client import Client from phoenix.client.resources.spans import SpanAnnotationData client = Client() # Add a single span annotation annotation = client.spans.add_span_annotation( span_id="72dda197b0e1b3ef", annotation_name="sentiment", label="positive", score=0.9, ) # Log multiple annotations annotations = [ SpanAnnotationData( name="sentiment", span_id="72dda197b0e1b3ef", annotator_kind="HUMAN", result={"label": "positive", "score": 0.9}, ), SpanAnnotationData( name="sentiment", span_id="72dda197b0e1b3ef", annotator_kind="HUMAN", result={"label": "negative", "score": 0.1}, ), ] client.spans.log_span_annotations(span_annotations=annotations)

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