Skip to main content
Glama
MartinLoop — Stop Runaway Loops, Bad Code & Token Waste

MartinLoop — Stop Runaway Loops, Bad Code & Token Waste

martin_continue

Destructive

Releases the exact pending cooperative pause for one active run so work resumes without granting approval or widening safety policy.

Instructions

Release the exact pending cooperative pause for one active MartinLoop run. Continue is bound to that pause and does not grant approval, widen safety policy, or resume a terminal approval escalation.

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_continue"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
latestNo
loopIdNo
reasonNo
runsDirNo

Output Schema

NameRequiredDescriptionDefault
okYesWhether the control receipt was recorded.
stateYes
actionYesThe control action that was recorded.
loopIdYesMartinLoop run identifier the control was applied to.
reasonNoHuman-readable reason for the control, if provided.
summaryYesHuman-readable result of the control request.
controlIdYesUnique receipt ID for this control action.
principalYes
receiptHashYes
requestedAtYesISO 8601 timestamp when the control was recorded.
requestedActionYesThe control action that was requested.
applicationStateYesWhether the active executor has applied the control; publication alone is not application proof.
publicationStateYesWhether an authoritative cancellation signal was published or a cooperative receipt was recorded.
authorityBoundaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv0.9.0
    • removedInput schema / properties / requestedBy
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / applicationState
      Added value: +{
      +  "description": "Whether the active executor has applied the control; publication alone is not application proof.",
      +  "enum": [
      +    "pending_observation",
      +    "requested_only",
      +    "terminal_reconciled"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / authorityBoundary
      Added value: +{
      +  "const": "local_os_user"
      +}
    • addedOutput schema / properties / principal
      Added value: +{
      +  "const": "local_mcp_client"
      +}
    • addedOutput schema / properties / publicationState
      Added value: +{
      +  "description": "Whether an authoritative cancellation signal was published or a cooperative receipt was recorded.",
      +  "enum": [
      +    "published",
      +    "already_requested",
      +    "receipt_recorded",
      +    "published_audit_pending"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / receiptHash
      Added value: +{
      +  "pattern": "^[a-f0-9]{64}$",
      +  "type": "string"
      +}
    • removedOutput schema / properties / requestedBy
      Removed value: -{
      -  "description": "Identity that requested the control, if provided.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / state / additionalProperties
      Previous value: -trueNew value: +false
    • removedOutput schema / properties / state / description
      Removed value: -"Run control state after this request, including all recorded receipts."
    • addedOutput schema / properties / state / properties
      Added value: +{
      +  "applicationPath": {
      +    "type": "string"
      +  },
      +  "applications": {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "action": {
      +          "enum": [
      +            "pause_applied",
      +            "continue_applied"
      +          ],
      +          "type": "string"
      +        },
      +        "applicationHash": {
      +          "pattern": "^[a-f0-9]{64}$",
      +          "type": "string"
      +        },
      +        "appliedAt": {
      +          "type": "string"
      +        },
      +        "controlId": {
      +          "type": "string"
      +        },
      +        "loopId": {
      +          "type": "string"
      +        },
      +        "previousApplicationHash": {
      +          "pattern": "^[a-f0-9]{64}$",
      +          "type": "string"
      +        },
      +        "receiptHash": {
      +          "pattern": "^[a-f0-9]{64}$",
      +          "type": "string"
      +        },
      +        "relatedControlId": {
      +          "type": "string"
      +        },
      +        "schemaVersion": {
      +          "const": "martin.run-control-application.v2"
      +        }
      +      },
      +      "required": [
      +        "schemaVersion",
      +        "loopId",
      +        "controlId",
      +        "action",
      +        "appliedAt",
      +        "receiptHash",
      +        "applicationHash"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "appliedState": {
      +    "enum": [
      +      "active",
      +      "paused",
      +      "cancellation_pending",
      +      "terminal"
      +    ],
      +    "type": "string"
      +  },
      +  "approvalState": {
      +    "enum": [
      +      "not_required",
      +      "resume_requested"
      +    ],
      +    "type": "string"
      +  },
      +  "latestReceipt": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "enum": [
      +          "pause",
      +          "cancel",
      +          "continue"
      +        ],
      +        "type": "string"
      +      },
      +      "authorityBoundary": {
      +        "const": "local_os_user"
      +      },
      +      "controlId": {
      +        "type": "string"
      +      },
      +      "executorLeaseToken": {
      +        "type": "string"
      +      },
      +      "expectedPreviousControlId": {
      +        "type": "string"
      +      },
      +      "loopId": {
      +        "type": "string"
      +      },
      +      "previousReceiptHash": {
      +        "pattern": "^[a-f0-9]{64}$",
      +        "type": "string"
      +      },
      +      "principal": {
      +        "const": "local_mcp_client"
      +      },
      +      "projectId": {
      +        "type": "string"
      +      },
      +      "reason": {
      +        "type": "string"
      +      },
      +      "receiptHash": {
      +        "pattern": "^[a-f0-9]{64}$",
      +        "type": "string"
      +      },
      +      "requestedAt": {
      +        "type": "string"
      +      },
      +      "schemaVersion": {
      +        "const": "martin.run-control.v2"
      +      },
      +      "workspaceId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "schemaVersion",
      +      "controlId",
      +      "loopId",
      +      "action",
      +      "requestedAt",
      +      "authorityBoundary",
      +      "principal",
      +      "executorLeaseToken",
      +      "receiptHash"
      +    ],
      +    "type": "object"
      +  },
      +  "publications": {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "controlId": {
      +          "type": "string"
      +        },
      +        "loopId": {
      +          "type": "string"
      +        },
      +        "previousPublicationHash": {
      +          "pattern": "^[a-f0-9]{64}$",
      +          "type": "string"
      +        },
      +        "publicationHash": {
      +          "pattern": "^[a-f0-9]{64}$",
      +          "type": "string"
      +        },
      +        "receiptHash": {
      +          "pattern": "^[a-f0-9]{64}$",
      +          "type": "string"
      +        },
      +        "recordedAt": {
      +          "type": "string"
      +        },
      +        "schemaVersion": {
      +          "const": "martin.run-control-publication.v1"
      +        },
      +        "signalState": {
      +          "enum": [
      +            "created",
      +            "already_exists"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "schemaVersion",
      +        "loopId",
      +        "controlId",
      +        "receiptHash",
      +        "signalState",
      +        "recordedAt",
      +        "publicationHash"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "receiptPath": {
      +    "type": "string"
      +  },
      +  "receipts": {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "action": {
      +          "enum": [
      +            "pause",
      +            "cancel",
      +            "continue"
      +          ],
      +          "type": "string"
      +        },
      +        "authorityBoundary": {
      +          "const": "local_os_user"
      +        },
      +        "controlId": {
      +          "type": "string"
      +        },
      +        "executorLeaseToken": {
      +          "type": "string"
      +        },
      +        "expectedPreviousControlId": {
      +          "type": "string"
      +        },
      +        "loopId": {
      +          "type": "string"
      +        },
      +        "previousReceiptHash": {
      +          "pattern": "^[a-f0-9]{64}$",
      +          "type": "string"
      +        },
      +        "principal": {
      +          "const": "local_mcp_client"
      +        },
      +        "projectId": {
      +          "type": "string"
      +        },
      +        "reason": {
      +          "type": "string"
      +        },
      +        "receiptHash": {
      +          "pattern": "^[a-f0-9]{64}$",
      +          "type": "string"
      +        },
      +        "requestedAt": {
      +          "type": "string"
      +        },
      +        "schemaVersion": {
      +          "const": "martin.run-control.v2"
      +        },
      +        "workspaceId": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "schemaVersion",
      +        "controlId",
      +        "loopId",
      +        "action",
      +        "requestedAt",
      +        "authorityBoundary",
      +        "principal",
      +        "executorLeaseToken",
      +        "receiptHash"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "requestedState": {
      +    "enum": [
      +      "active",
      +      "paused",
      +      "cancellation_requested",
      +      "terminal"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / state / required
      Added value: +[
      +  "requestedState",
      +  "approvalState",
      +  "appliedState",
      +  "receipts",
      +  "applications",
      +  "publications"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "loopId",
      -  "action",
      -  "controlId",
      -  "requestedAt",
      -  "ok",
      -  "summary",
      -  "requestedAction",
      -  "state"
      -]New value: +[
      +  "loopId",
      +  "action",
      +  "controlId",
      +  "requestedAt",
      +  "ok",
      +  "summary",
      +  "requestedAction",
      +  "publicationState",
      +  "applicationState",
      +  "authorityBoundary",
      +  "principal",
      +  "receiptHash",
      +  "state"
      +]
  2. Changed5 schema fields changedv0.8.6
    • addedOutput schema / properties / ok
      Added value: +{
      +  "description": "Whether the control receipt was recorded.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / requestedAction
      Added value: +{
      +  "description": "The control action that was requested.",
      +  "enum": [
      +    "pause",
      +    "cancel",
      +    "continue"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / state
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Run control state after this request, including all recorded receipts.",
      +  "type": "object"
      +}
    • addedOutput schema / properties / summary
      Added value: +{
      +  "description": "Human-readable result of the control request.",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "loopId",
      -  "action",
      -  "controlId",
      -  "requestedAt"
      -]New value: +[
      +  "loopId",
      +  "action",
      +  "controlId",
      +  "requestedAt",
      +  "ok",
      +  "summary",
      +  "requestedAction",
      +  "state"
      +]
  3. Changed1 schema field changedv0.6.6
    • removedInput schema / oneOf
      Removed value: -[
      -  {
      -    "required": [
      -      "file"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "loopId"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "latest"
      -    ]
      -  }
      -]
  4. Changed3 schema fields changedv0.5.6
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +false
    • addedOutput schema / properties
      Added value: +{
      +  "action": {
      +    "description": "The control action that was recorded.",
      +    "enum": [
      +      "pause",
      +      "cancel",
      +      "continue"
      +    ],
      +    "type": "string"
      +  },
      +  "controlId": {
      +    "description": "Unique receipt ID for this control action.",
      +    "type": "string"
      +  },
      +  "loopId": {
      +    "description": "MartinLoop run identifier the control was applied to.",
      +    "type": "string"
      +  },
      +  "reason": {
      +    "description": "Human-readable reason for the control, if provided.",
      +    "type": "string"
      +  },
      +  "requestedAt": {
      +    "description": "ISO 8601 timestamp when the control was recorded.",
      +    "type": "string"
      +  },
      +  "requestedBy": {
      +    "description": "Identity that requested the control, if provided.",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "loopId",
      +  "action",
      +  "controlId",
      +  "requestedAt"
      +]
  5. First observedv0.3.9

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered; the description adds genuinely new context by bounding the effect to releasing a pause rather than granting approval or loosening policy. It does not explain why the call is destructive or non-idempotent (what state changes, what happens if the pause is already gone or the run is terminal), which leaves the annotation pair unexplained.

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?

Two sentences, front-loaded with the action and then the guardrails, with no filler. Slightly dense but every clause carries meaning; only the undefined internal terms cost it a point.

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

Completeness2/5

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

An output schema exists so return values need not be described, but for a destructive, non-idempotent, five-parameter mutation the definition is thin: no run identification guidance, no explanation of reason or latest, and no statement of failure behavior when no pending pause matches. An agent could not confidently construct a correct call from this description alone.

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% across five parameters, so the description carries the full burden and largely fails: only 'one active MartinLoop run' hints at loopId. The roles of file, latest, reason, and runsDir are never addressed, nor is the fact that zero parameters are required, which is surprising for a tool that acts on 'exact' state.

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 ('Release') and a specific resource ('the exact pending cooperative pause for one active MartinLoop run'), which is enough to distinguish it from the inverse sibling martin_pause and from martin_cancel/martin_run. It stops short of a 5 because 'cooperative pause' and 'MartinLoop run' are internal jargon the agent must already know.

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 second sentence provides negative scope – it does not grant approval, widen safety policy, or resume a terminal approval escalation – which implicitly tells the agent when this tool is the wrong choice. However, it never names what to use instead for approval escalation, and it gives no precondition stating that a pending pause must actually exist for the given run.

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