martin_status
Check the current budget, cost, remaining limits, and stop pressure for a single MartinLoop run by supplying one selector: inline record, saved file, run ID, or latest.
Instructions
Read the current budget, cost, remaining limits, and stop pressure for one MartinLoop run. Provide exactly one selector: loopJson for an inline record, file for a saved record, loopId for a run-store ID, or latest for the newest run; runsDir only changes the run-store root. Use for a compact budget check. Do not use for full events or artifacts; use martin_get_run or martin_run_dossier instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "martin_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path under the Martin runs root to a loop-record.json file, a legacy .jsonl file, or a run-store directory. Mutually exclusive with loopJson, loopId, and latest. | |
| latest | No | When true, loads the most recently updated loop record. Mutually exclusive with loopJson, file, and loopId. | |
| loopId | No | Loop ID resolved as <runsDir>/<loopId>/loop-record.json. Mutually exclusive with loopJson, file, and latest. | |
| runsDir | No | Optional runs-root override resolved under the default Martin runs root. | |
| loopJson | No | JSON-serialized LoopRecord. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | Yes | ||
| budget | Yes | ||
| loopId | Yes | ||
| source | Yes | ||
| status | Yes | ||
| costUsd | Yes | ||
| attempts | Yes | ||
| pressure | Yes | ||
| avoidedUsd | Yes | ||
| inspection | Yes | ||
| shouldStop | Yes | ||
| lifecycleState | Yes | ||
| remainingTokens | No | ||
| remainingBudgetUsd | Yes | ||
| remainingIterations | Yes |