Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TUSK_API_KEY | Yes | Your API token | |
| TUSK_DRIFT_API_URL | No | Tusk API URL (defaults to https://api.usetusk.ai) | https://api.usetusk.ai |
| TUSK_DRIFT_SERVICE_ID | No | Service ID (auto-discovered from .tusk/config.yaml if not set) |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| query_spans | Search and filter API traffic span recordings. Use this tool to:
Examples:
|
| get_schema | Get schema and structure information for span recordings on Tusk Drift. Use this tool to:
Common package names:
|
| list_distinct_values | List unique values for a field, ordered by frequency. Use this tool to:
This helps you understand what values exist before building specific queries. |
| aggregate_spans | Calculate aggregated metrics and statistics across spans. Use this tool to:
Examples:
|
| get_trace | Get all spans in a distributed trace as a hierarchical tree. Use this tool to:
First use query_spans to find spans, then use the traceId to get the full trace. |
| get_spans_by_ids | Fetch specific span recordings by their IDs. Use this tool when you have span IDs from a previous query and need the full details including payloads. This is useful for:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| services | List of available Tusk Drift services that can be queried |