langfuse_trace
Log an LLM interaction to Langfuse with input, output, model, and metadata for observability and audit trails.
Instructions
Create a Langfuse trace to log an LLM interaction (input, output, model, metadata).
Requires scope: integrations:observe:write. Every call governed by Arbiter constitutional policy and sealed with a ProofLink cryptographic receipt.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "langfuse_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Trace name / operation label | |
| tags | No | Trace tags | |
| input | No | Input payload (any JSON value) | |
| model | No | Model ID used (e.g. claude-sonnet-4-6) | |
| output | No | Output payload (any JSON value) | |
| userId | No | End-user identifier | |
| metadata | No | Arbitrary metadata object |