X_MCP_JOB_TOOL_INVALID
Means
jobTool() was declared with something it cannot run
Typical cause
the job is not job()'s handle, the jobs driver has no introspect, or inlineMs is outside 0..25000
Fix
jobTool({ job: myJob, policy, result, inlineMs: 5_000 }) — on the postgres or memory jobs driver