Get one model call
get_requestGet one call to a model by its request id (the X-Request-Id header of the answer, or the id from list_requests; a completion id chatcmpl- works too): status, outcome, took_ms, ttft_ms, steps (where the time went before the answer), tokens, tokens_per_second, finish_reason, tool_calls, cost, end_user, session and tags. A failed call has error.message, error.api_said (the API's own words for an input error) and error.next_step: do what next_step says, then retry. finish_reason "length" means the answer hit max_tokens: raise it. Not found means it is older than 30 days, from another environment, or not a request id. With include_body, also body: the prompt and answer when the environment saves them (Settings > Environments, "Save prompts and answers"), else body.saved false.
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": {
"id": "<id>"
},
"name": "get_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Request id (X-Request-Id) | |
| workspace | No | Workspace ID (optional: defaults to the authenticated workspace) | |
| environment | No | Environment name (optional: defaults to the environment this session acts in) | |
| include_body | No | Also return the saved prompt and answer, when its environment saves them |