Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Recover Execution State

recover_execution_state
Read-onlyIdempotent

Restore a modeling job’s execution state and intermediate checkpoints after an unexpected disconnect or restart by providing its job ID or key.

Instructions

Recover execution state and intermediate checkpoints after an unexpected disconnect or restart.

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": {
      "job_id_or_key": "<job_id_or_key>"
    },
    "name": "recover_execution_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_id_or_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and a closed-world scope, so safety and repeatability are covered. The description adds only the failure scenario, and leaves genuinely useful context unstated: what exactly is returned (checkpoint list vs. full state), whether calling it merely reports state or actually rehydrates/restarts work, and whether it can be repeated after a partial recovery.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, front-loaded with the action and immediately followed by the resource and the trigger condition; no filler. It is appropriately terse for a one-parameter tool, though the terseness is part of why parameter and return details are missing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, non-destructive operation with no output schema, the description covers what and when but not the outcome — an agent cannot tell whether a call resumes execution (potentially costly) or only inspects recoverable state. It is the minimum viable definition rather than a complete one.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the single parameter name 'job_id_or_key' is ambiguous between two identifier forms, yet the description says nothing about which form is accepted, how to obtain it, or what happens if an ID from an unrelated tool is passed. With the schema doing none of the work here, the description should compensate and does not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Recover') and resource ('execution state and intermediate checkpoints') plus the triggering condition ('after an unexpected disconnect or restart'), which is far more informative than the title alone. It does not, however, distinguish itself from nearby state-reading siblings such as read_viz_state or get_job_status, so the agent must guess whether this is the recovery-specific variant or a general state read.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description supplies a clear triggering context (post-disconnect or restart), which is genuine when-to-use guidance. It offers no counter-guidance: it never says to use get_job_status for normal (non-crashed) polling, nor what to do if recovery is not possible, leaving the boundary implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.