coaiapy-mcp
v0.4.3MCP (Model Context Protocol) wrapper for coaiapy observability toolkit
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
coaia_tash
Stash key-value pair to Redis
| Parameter | Type | Description |
|---|---|---|
key * | string | Redis key |
value * | string | Value to store |
coaia_fetch
Fetch value from Redis
| Parameter | Type | Description |
|---|---|---|
key * | string | Redis key to fetch |
coaia_fuse_trace_create
Create Langfuse trace for observability. IMPORTANT: Use 'input_data' for context/inputs and 'output_data' for results/outputs. Use 'metadata' only for additional tags/labels.
| Parameter | Type | Description |
|---|---|---|
trace_id * | string | Unique trace identifier |
input_data | PREFERRED: The input/context data for this trace (e.g., user query, request parameters). Use this instead of metadata for actual data. | |
metadata | object | Additional metadata for tags/labels only (e.g., environment, version). Prefer using input_data and output_data for actual content. |
name | string | Trace name |
output_data | PREFERRED: The output/result data for this trace (e.g., response, generated content). Use this instead of metadata for actual data. | |
session_id | string | Session identifier |
user_id | string | User identifier |
coaia_fuse_add_observation
Add observation to Langfuse trace. IMPORTANT: Use 'input_data' for inputs/context and 'output_data' for results. Use 'metadata' only for tags/labels.
| Parameter | Type | Description |
|---|---|---|
name * | string | Observation name |
observation_id * | string | Unique observation identifier |
trace_id * | string | Parent trace identifier |
end_time | string | Optional end timestamp (ISO 8601) |
input_data | PREFERRED: The input/context for this observation (e.g., function parameters, prompt). Use this instead of metadata for actual data. | |
metadata | object | Additional metadata for tags/labels only (e.g., model name, temperature). Prefer using input_data and output_data for actual content. |
observation_type | string | Type: SPAN, EVENT, or GENERATION |
output_data | PREFERRED: The output/result of this observation (e.g., function return, LLM response). Use this instead of metadata for actual data. | |
parent_id | string | Parent observation ID for nesting |
start_time | string | Optional start timestamp (ISO 8601) |
coaia_fuse_trace_patch_output
Update the output field of an existing trace. Use this to patch/modify trace results after creation.
| Parameter | Type | Description |
|---|---|---|
output_data * | New output data (string, object, or array - any JSON-serializable data) | |
trace_id * | string | Trace identifier to update |
coaia_fuse_trace_get
Get a specific trace by ID from Langfuse with all its observations. Returns trace data with optional formatted tree view.
| Parameter | Type | Description |
|---|---|---|
trace_id * | string | Trace identifier to retrieve |
json_output | boolean | Return raw JSON data instead of formatted tree |
coaia_fuse_trace_view
View Langfuse trace details with observations (alias for coaia_fuse_trace_get). Returns trace data with optional formatted tree view.
| Parameter | Type | Description |
|---|---|---|
trace_id * | string | Trace identifier to view |
json_output | boolean | Return raw JSON data instead of formatted tree |
coaia_fuse_observation_get
Get a specific observation by ID from Langfuse. Returns observation data with optional formatted display.
| Parameter | Type | Description |
|---|---|---|
observation_id * | string | Observation identifier to retrieve |
json_output | boolean | Return raw JSON data instead of formatted display |
coaia_fuse_traces_list
List Langfuse traces with comprehensive filtering options. Supports filtering by session, user, name, tags, timestamps, and more.
| Parameter | Type | Description |
|---|---|---|
environment | array | Filter by environment values |
from_timestamp | string | Include traces from this timestamp (ISO 8601 format, e.g., '2024-12-31T00:00:00Z') |
json_output | boolean | Return raw JSON data instead of formatted table |
limit | integer | Items per page (default 50) |
name | string | Filter by trace name (exact match) |
order_by | string | Sort order, format: field.direction (e.g., 'timestamp.asc', 'timestamp.desc'). Fields: id, timestamp, name, userId, release, version, sessionId |
page | integer | Page number (starts at 1) |
release | string | Filter by release |
session_id | string | Filter by session ID |
tags | array | Filter by tags - only traces with ALL tags will be returned |
to_timestamp | string | Include traces before this timestamp (ISO 8601 format) |
user_id | string | Filter by user ID |
version | string | Filter by version |
coaia_fuse_traces_session_view
View all traces for a specific Langfuse session. Returns formatted table by default or raw JSON if json_output=true
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session identifier to filter traces |
json_output | boolean | Return raw JSON data instead of formatted table |
coaia_fuse_prompts_list
List all Langfuse prompts
coaia_fuse_prompts_get
Get specific Langfuse prompt by name. Supports retrieving a specific version number or label. If neither version nor label is provided, defaults to the 'production' label.
| Parameter | Type | Description |
|---|---|---|
name * | string | Prompt name |
label | string | Prompt label (e.g. 'production', 'staging', 'latest') |
version | integer | Specific version number to retrieve (takes precedence over label) |
coaia_fuse_prompts_create
Create a new prompt version in Langfuse. Creates a new version each time for the same name.
| Parameter | Type | Description |
|---|---|---|
content * | string | Prompt content (text string or JSON for chat prompts) |
name * | string | Prompt name |
commit_message | string | Version commit message for tracking |
labels | array | Deployment labels (e.g. ['production', 'staging']) |
prompt_type | string | Prompt type (default: text) |
tags | array | Tags for categorization |
coaia_fuse_prompt_version_labels_update
Update labels for a specific prompt version. Labels are unique across versions. The 'latest' label is reserved by Langfuse.
| Parameter | Type | Description |
|---|---|---|
labels * | array | New labels to assign to this version |
name * | string | Prompt name |
version * | integer | Version number to update |
coaia_fuse_prompts_delete
Delete a prompt from Langfuse. Can delete all versions or a specific version/label.
| Parameter | Type | Description |
|---|---|---|
name * | string | Prompt name to delete |
label | string | Specific label to delete |
version | integer | Specific version to delete |
coaia_fuse_datasets_list
List all Langfuse datasets
coaia_fuse_datasets_get
Get specific Langfuse dataset
| Parameter | Type | Description |
|---|---|---|
name * | string | Dataset name |
coaia_fuse_score_configs_list
List all Langfuse score configurations
coaia_fuse_score_configs_get
Get specific Langfuse score configuration
| Parameter | Type | Description |
|---|---|---|
name_or_id * | string | Score config name or ID |
coaia_fuse_score_apply
Apply a score configuration to a trace or observation with validation
| Parameter | Type | Description |
|---|---|---|
config_name_or_id * | string | Name or ID of the score configuration |
target_id * | string | ID of the trace or session |
target_type * | string | Type of target (trace or session) |
value * | Score value (validated against config: number for NUMERIC, string/number for CATEGORICAL, boolean for BOOLEAN) | |
comment | string | Optional comment to attach to the score |
observation_id | string | Optional observation ID (only for trace targets) |
coaia_fuse_score_get
Get a specific score by ID from Langfuse.
| Parameter | Type | Description |
|---|---|---|
score_id * | string | Score ID to retrieve |
coaia_fuse_score_config_update
Update a score config (description, archive status) in Langfuse.
| Parameter | Type | Description |
|---|---|---|
config_id * | string | Score config ID |
description | string | New description |
is_archived | boolean | Set archive status |
coaia_fuse_comments_list
List comments with optional filtering by object type/ID or author
| Parameter | Type | Description |
|---|---|---|
author_user_id | string | Filter by author user ID |
limit | integer | Items per page |
object_id | string | Filter by specific object ID (requires object_type) |
object_type | string | Filter by object type (trace, observation, session, prompt) |
page | integer | Page number (starts at 1) |
coaia_fuse_comments_get
Get a specific comment by ID
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique Langfuse identifier of a comment |
coaia_fuse_comments_create
Create a comment attached to an object (trace, observation, session, or prompt)
| Parameter | Type | Description |
|---|---|---|
object_id * | string | ID of the object to attach comment to - REQUIRED |
object_type * | string | Type of object to attach comment to (trace, observation, session, prompt) - REQUIRED |
text * | string | The comment text/content |
author_user_id | string | Optional user ID of the comment author |
coaia_fuse_trace_delete
Delete a single trace from Langfuse.
| Parameter | Type | Description |
|---|---|---|
trace_id * | string | Trace ID to delete |
coaia_fuse_sessions_list
List sessions from Langfuse with optional filtering.
| Parameter | Type | Description |
|---|---|---|
environment | string | Filter by environment |
limit | integer | Items per page |
page | integer | Page number (starts at 1) |
coaia_fuse_session_get
Get a specific session by ID from Langfuse.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session ID to retrieve |
coaia_fuse_observations_list
List observations using v2 API with cursor-based pagination and filters (trace, name, type, environment).
| Parameter | Type | Description |
|---|---|---|
cursor | string | Pagination cursor from previous response |
environment | string | Filter by environment |
from_start_time | string | ISO 8601 start time filter |
limit | integer | Max items (default 50) |
name | string | Filter by observation name |
observation_type | string | Filter by type |
parent_observation_id | string | Filter by parent observation |
to_start_time | string | ISO 8601 end time filter |
trace_id | string | Filter by trace ID |
user_id | string | Filter by user ID |
version | string | Filter by version |