Post an annotation
post_annotationRecord something that explains the data on the timeline: a change you made (a config edit, a flag flip), a deploy, or a comment. It is a record and runs nothing. Put what it concerns in attributes with OpenTelemetry names, such as service.name. A deploy needs vcs.ref.head.revision or service.name. Posting the same key again with the same fields is a safe retry.
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": {
"type": "<type>",
"message": "<message>"
},
"name": "post_annotation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Your own id for it, unique in the organization. | |
| type | Yes | ||
| dataset | No | The dataset it concerns. Default: the whole organization. | |
| message | Yes | What happened. | |
| ended_at | No | RFC 3339 with a zone, for a window such as a load test. | |
| attributes | No | ||
| started_at | No | RFC 3339 with a zone. Default: now. |