Available Tools¶
Shepherd MCP provides a comprehensive set of tools for querying and analyzing AI agent sessions. Tools are organized by provider.
AIOBS (Shepherd) Tools¶
These tools interact with the Shepherd/AIOBS observability backend.
aiobs_list_sessions¶
List all AI agent sessions from Shepherd. Returns session metadata, labels, and event counts.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
integer |
Maximum number of sessions to return (optional) |
Example prompt:
“List my recent AI agent sessions from AIOBS”
aiobs_get_session¶
Get detailed information about a specific AI agent session including the full trace tree, LLM calls, function events, and evaluations.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
The UUID of the session to retrieve (required) |
Example prompt:
“Get AIOBS session details for abc123-def456”
aiobs_search_sessions¶
Search and filter sessions with multiple criteria including text search, labels, provider, model, function name, date range, errors, and failed evaluations.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
Text search query (matches session name, ID, labels, metadata) |
|
object |
Filter by labels as key-value pairs |
|
string |
Filter by LLM provider (e.g., ‘openai’, ‘anthropic’) |
|
string |
Filter by model name (e.g., ‘gpt-4o-mini’, ‘claude-3’) |
|
string |
Filter by function name |
|
string |
Sessions started after this date (YYYY-MM-DD or ISO format) |
|
string |
Sessions started before this date (YYYY-MM-DD or ISO format) |
|
boolean |
Only return sessions that have errors |
|
boolean |
Only return sessions with failed evaluations |
|
integer |
Maximum number of sessions to return |
Example prompts:
“Find all AIOBS sessions that used OpenAI with errors”
“Search for sessions from yesterday that failed evaluations”
aiobs_diff_sessions¶
Compare two sessions and show their differences including:
Metadata: Duration, labels, timestamps
LLM calls: Count, tokens (input/output/total), average latency, errors
Provider/Model distribution: Which providers and models were used
Function events: Total calls, unique functions, function-specific counts
Trace structure: Trace depth, root nodes
Evaluations: Pass/fail counts and rates
System prompts: Compare system prompts across sessions
Request parameters: Temperature, max_tokens, tools used
Response content: Content length, tool calls, stop reasons
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
First session UUID to compare (required) |
|
string |
Second session UUID to compare (required) |
Example prompt:
“Compare AIOBS sessions abc123 and def456”
Langfuse Tools¶
These tools interact with the Langfuse observability platform.
langfuse_list_traces¶
List traces with pagination and filters. Traces represent complete workflows or conversations.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
integer |
Maximum results per page (default: 50) |
|
integer |
Page number (1-indexed) |
|
string |
Filter by user ID |
|
string |
Filter by trace name |
|
string |
Filter by session ID |
|
array |
Filter by tags |
|
string |
Filter after timestamp (ISO format or YYYY-MM-DD) |
|
string |
Filter before timestamp (ISO format or YYYY-MM-DD) |
Example prompt:
“List the last 20 Langfuse traces”
langfuse_get_trace¶
Get a specific trace with its observations (generations, spans, events).
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
The trace ID to fetch (required) |
Example prompt:
“Get Langfuse trace details for trace-id-123”
langfuse_list_sessions¶
List sessions with pagination. Sessions group related traces together.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
integer |
Maximum results per page |
|
integer |
Page number |
|
string |
Filter after timestamp |
|
string |
Filter before timestamp |
Example prompt:
“Show me Langfuse sessions from the last week”
langfuse_get_session¶
Get a specific session with its metrics and traces.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
The session ID to fetch (required) |
Example prompt:
“Get Langfuse session details for session-123”
langfuse_list_observations¶
List observations (generations, spans, events) with filters.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
integer |
Maximum results per page |
|
integer |
Page number |
|
string |
Filter by observation name |
|
string |
Filter by user ID |
|
string |
Filter by trace ID |
|
string |
Filter by type (GENERATION, SPAN, EVENT) |
|
string |
Filter after timestamp |
|
string |
Filter before timestamp |
Example prompt:
“List all GENERATION type observations from Langfuse”
langfuse_get_observation¶
Get a specific observation with full details including input, output, usage, and costs.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
The observation ID to fetch (required) |
Example prompt:
“Get details for Langfuse observation obs-123”
langfuse_list_scores¶
List scores/evaluations with filters.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
integer |
Maximum results per page |
|
integer |
Page number |
|
string |
Filter by score name |
|
string |
Filter by user ID |
|
string |
Filter by trace ID |
|
string |
Filter after timestamp |
|
string |
Filter before timestamp |
Example prompt:
“Show me Langfuse scores for trace trace-123”
langfuse_get_score¶
Get a specific score/evaluation with full details.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
The score ID to fetch (required) |
Example prompt:
“Get Langfuse score details for score-123”
langfuse_search_traces¶
Search and filter traces with extended criteria including text search, release, cost range, and latency range.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
Text search (matches trace name, ID, user ID, session ID, tags) |
|
string |
Filter by trace name |
|
string |
Filter by user ID |
|
string |
Filter by session ID |
|
array |
Filter by tags |
|
string |
Filter by release |
|
number |
Minimum total cost |
|
number |
Maximum total cost |
|
number |
Minimum latency in seconds |
|
number |
Maximum latency in seconds |
|
string |
Filter after timestamp |
|
string |
Filter before timestamp |
|
integer |
Maximum results |
|
integer |
Page number |
langfuse_search_sessions¶
Search and filter sessions with extended criteria including text search, user ID, trace count range, and cost range.
Parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
Text search (matches session ID or user IDs) |
|
string |
Filter by user ID |
|
integer |
Minimum number of traces |
|
integer |
Maximum number of traces |
|
number |
Minimum total cost |
|
number |
Maximum total cost |
|
string |
Filter after timestamp |
|
string |
Filter before timestamp |
|
integer |
Maximum results |
|
integer |
Page number |
Legacy Tools (Deprecated)¶
For backwards compatibility, the following tools are still available but will be removed in a future version:
Legacy Tool |
Replacement |
|---|---|
|
|
|
|
|
|
|
|