Skip to main content
Glama

Dead man's switch

deadman
Destructive

Dead-man switch for a person or a long job: unless someone checks in every interval_seconds (60+, default one day) plus grace, on_miss runs once (same shapes as heartbeat). create returns write_token, checkin_token and checkin_url, a page where a person checks in with a button; give them that link. Pass write_token as token (checkin_token works for checkin and read). read(status, wait_seconds) waits for a change. After a miss only rearm restarts it.

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": {
      "action": "<action>"
    },
    "name": "deadman"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
tokenNo
actionYes
statusNo
messageNo
on_missNo
ttl_secondsNo
wait_secondsNo
grace_secondsNo
interval_secondsNo

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 destructiveHint=true and readOnlyHint=false, and the description adds genuine behavioral context: create returns write_token/checkin_token/checkin_url, read waits for a change via wait_seconds, on_miss fires exactly once, and a missed switch cannot be resumed without rearm. It never explains the destructive surface the annotations flag (delete, disarm, touch are unmentioned), nor what on_miss actually does beyond pointing at heartbeat's shapes.

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

Conciseness3/5

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

Compact and front-loaded on the mechanism, but it reads as a dense run-on with an awkward mid-sentence line break and mixes mechanism, token plumbing, and recovery rules without paragraphing or a clear action list. Little text is pure waste, but the structure makes it slower to parse than its length warrants.

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?

For a ten-parameter, seven-action, destructive tool with no output schema and 0% schema documentation, the description should cover all actions and the parameters it omits. Three actions (disarm, touch, delete) and three parameters (id, message, ttl_seconds) are absent, and the return values beyond the create tokens are never sketched.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must carry all ten parameters, and it explains only part: interval_seconds (60+, one-day default), grace_seconds, wait_seconds, status, token, and on_miss. It leaves id, message, and ttl_seconds entirely unaddressed, and on_miss is deferred to another tool's shape rather than described, so the compensation is partial.

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 resource and mechanism: "Dead-man switch for a person or a long job" with the lapse condition (interval_seconds plus grace) and the consequence (on_miss runs once). The scope is clear, but the differentiation from siblings is only implicit via "same shapes as heartbeat" and the description never enumerates the seven supported actions as a set.

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?

Gives concrete operational guidance for tokens ("Pass write_token as `token` (checkin_token works for checkin and read)"), advises handing the checkin_url link to a person, and states that "After a miss only rearm restarts it" — a real recovery rule. However, there is no explicit statement of when to choose this over heartbeat, lease, schedule, or presence, so the agent must infer the selection rule from the shared-shape remark.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources