create_comment
Add a markdown comment to a trace, observation, session, or prompt in Langfuse to provide context or feedback directly on the object.
Instructions
Create a comment on a trace, observation, session, or prompt.
project_id: the Langfuse project ID (different from the MCP project
argument — find it in your Langfuse dashboard URL).
object_type: 'trace' | 'observation' | 'session' | 'prompt'.
content: markdown body, up to 5000 characters.
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": {
"project_id": "<project_id>",
"object_type": "<object_type>",
"object_id": "<object_id>",
"content": "<content>"
},
"name": "create_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| project | No | ||
| object_id | Yes | ||
| project_id | Yes | ||
| object_type | Yes | ||
| author_user_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||