Metis — End Span
end_spanClose an open span to compute its duration from start to now and return a summary line showing name, duration, and status.
Instructions
Close an open span. Computes duration from start_ms to now.
Args:
span_id: The span_id returned by start_span().
status: 'ok' | 'error'. Default: 'ok'.
error: Error message if status='error'. Optional.
Returns a summary line: '{name} — {duration_ms}ms [{status}]'
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": {
"span_id": "<span_id>"
},
"name": "end_span"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | No | ok | |
| span_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |