Skip to main content
Glama

jobd_worker_delete

DestructiveIdempotent

Remove a worker from the broker registry once it is offline; deletion is rejected while the worker remains online, so stop its process or wait for heartbeat cleanup first.

Instructions

Remove a worker from the broker registry. The broker refuses (409) if the worker is still online — caller stops the worker process or waits for the heartbeat sweeper first.

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": {
      "host": "<host>"
    },
    "name": "jobd_worker_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYesWorker host identifier.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.47
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv0.5.36
  3. Removedv0.5.35
  4. First observedv0.5.5

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond that with the 409 refusal condition for online workers, but it stays silent on what happens to jobs already scheduled on or assigned to that worker, which is the main unknown for a destructive registry mutation.

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

Conciseness5/5

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

Two sentences, no filler. The action comes first and the failure precondition follows immediately, which is the right ordering for an agent that may need to act on the 409.

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

Completeness4/5

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

For a single-parameter destructive tool with annotations and no output schema, this covers the essential call contract: what is removed and the one failure mode with remediation. The remaining gap is the downstream effect on in-flight work for that worker, which an agent doing cleanup would want to know.

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?

Only one parameter (host) at 100% schema description coverage, so the schema already fully documents the input. The description adds no format, naming, or lookup detail beyond what the schema provides, so the baseline 3 applies.

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 and resource: 'Remove a worker from the broker registry.' That is unambiguous and clearly distinct from the job-oriented siblings like jobd_cancel and jobd_submit, though it never explicitly routes the agent away from any sibling, which keeps it short of a 5.

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

Usage Guidelines4/5

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

Gives a real usage constraint: the call only succeeds once the worker is offline, and the description tells the caller what to do instead (stop the process or wait for the heartbeat sweeper). It is a precondition-plus-remediation rather than a true when-to-use-vs-alternative-tool comparison, so 4 rather than 5.

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