Skip to main content
Glama

revoke_fsm_hook

DestructiveIdempotent

Revoke an FSM hook to stop it firing on thread state transitions; the hook is disabled, marked revoked, and its signing secret dropped. This is final—register a new hook to restore the behavior.

Instructions

Revoke an FSM hook so it stops firing on thread state transitions. The hook is disabled and stamped with revoked_at rather than deleted, it no longer appears in list_fsm_hooks, and its in-memory signing secret is dropped. Revoking is final: a hook that is unknown, in another workspace or already revoked returns not found, so register a new one with register_fsm_hook to restore the behavior. Returns the revoked hook (id, label, from_state, to_state, handler_kind, handler_target, enabled, created_at, revoked_at). Requires workspace:write.

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": {
      "workspace_id": "<workspace_id>",
      "hook_id": "<hook_id>"
    },
    "name": "revoke_fsm_hook"
  }
}

Input Schema

NameRequiredDescriptionDefault
hook_idYesUUID of the FSM hook to revoke, from register_fsm_hook or list_fsm_hooks.
workspace_idYesUUID of the workspace that owns the hook. It must be the caller's own workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv479.0.2
    • addedInput schema / properties / hook_id / description
      Added value: +"UUID of the FSM hook to revoke, from register_fsm_hook or list_fsm_hooks."
    • addedInput schema / properties / workspace_id / description
      Added value: +"UUID of the workspace that owns the hook. It must be the caller's own workspace."
  2. First observedv479.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/idempotentHint annotations: it discloses the soft-delete model (disabled plus revoked_at, not deleted), the side effect of the in-memory signing secret being dropped, the visibility change in list_fsm_hooks, and that revocation is final with a not-found response. This is exactly the context an agent needs before committing an irreversible mutation.

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?

Front-loaded with the action and effect, then consequences and safety notes in a logical order with no filler. The enumerated return-field list is long but justified because no output schema exists.

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

Completeness5/5

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

With no output schema, the description compensates by listing the returned fields, and for an irreversible mutation with annotations only marking it destructive, it supplies the missing consequences, error behavior, and restore path. Nothing essential for a correct call is absent.

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 100%, so both UUIDs are already documented. The description adds only marginal meaning beyond the schema, chiefly that the workspace must be the caller's own and that mismatched/revoked hooks return not found; it adds no format or provenance detail the schema lacks.

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

Purpose5/5

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

States a specific verb+resource ('Revoke an FSM hook') and immediately gives the effect ('stops firing on thread state transitions'). It is clearly distinguishable from register_fsm_hook and list_fsm_hooks, which it names explicitly.

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

Usage Guidelines5/5

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

Names the restore path ('register a new one with register_fsm_hook') and the failure conditions (unknown, other workspace, already revoked) that make revoking unrecoverable. It also states the precondition that the workspace must be the caller's own, so the agent knows when this call will be rejected.

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

Deploy Server

Other Tools