martin_preflight
Validates a coding task's engine, verifier, path scope, and budget in a read-only preflight before execution to prevent unsafe or costly runs. Proceed only if allowed; otherwise fix the blocker.
Instructions
Read-only validation of the exact run contract before execution or spend. Use after planning and before martin_run to check engine, verifier, path scope, and budget. Do not use as execution or completion proof. Next: call martin_run if allowed, otherwise resolve the reported blocker.
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": {
"objective": "<objective>"
},
"name": "martin_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model override passed to the CLI. | |
| engine | No | Which agent CLI would be used. Defaults to claude. | |
| maxUsd | No | Hard budget ceiling in USD. | |
| context | No | Optional issue context carried into the run contract. | |
| maxTokens | No | Maximum total tokens across all attempts. | |
| objective | Yes | The coding task to validate. | |
| projectId | No | ||
| maxMinutes | No | Estimated wall-clock minutes allowed for the run contract. | |
| policyPack | No | ||
| deniedPaths | No | Repo-relative path globs Martin must never modify. | |
| maxCommands | No | Estimated maximum commands allowed for the run contract. | |
| workspaceId | No | ||
| allowedPaths | No | Repo-relative path globs Martin may modify. | |
| maxIterations | No | Maximum number of loop attempts. | |
| maxFilesChanged | No | Estimated maximum files changed for the run contract. | |
| verificationPlan | No | Commands that must all exit 0 for completion. | |
| workingDirectory | No | Optional repo-root override resolved under the MCP workspace root. | |
| pricePerMTokenUsd | No | Explicit conservative per-million-token pricing authority for a catalog-unknown OpenAI-compatible model. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| summary | Yes | ||
| warnings | Yes | ||
| execution | Yes | ||
| readiness | Yes | ||
| normalized | Yes | ||
| receiptScope | Yes |