Skip to main content
Glama

killswitch_check

Check whether an AI agent vendor and action scope are allowed under local and cached killswitch policy before acting. Returns allowed status, exit code, and reason without crashing.

Instructions

Evaluate whether an AI agent vendor and action scope are currently allowed under local and cached killswitch policy. Returns {allowed, exit_code, reason, ...} without crashing.

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": "killswitch_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNoOptional action scope to check (e.g. deploy, ssh, secrets, git_push, db_write). Defaults to 'any'.
targetNoOptional target label recorded in audit logs if blocked.
vendorNoOptional vendor hint (e.g. claude, codex, cursor, antigravity). Cannot override an OS-detected LLM vendor or spoof owner.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and only partially meets it. It usefully discloses that the result comes from 'local and cached' policy and that it returns '{allowed, exit_code, reason, ...} without crashing' (non-throwing behavior), but says nothing about permissions required, side effects, staleness of the cached policy, or what exit_code values mean.

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 purpose and followed by the return shape, with no wasted wording. The second sentence earns its place because no output schema exists.

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?

Without annotations or an output schema, the description does sketch the return fields ({allowed, exit_code, reason, ...}), which is the most important gap filled. However, the relationship to the four killswitch_* siblings remains undefined, leaving an agent unsure when this check is preferable to a status call.

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%, and the schema already documents all three optional parameters, including the vendor-override restriction and action examples. The description adds no parameter-level meaning beyond that, so 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?

The description names a specific verb ('Evaluate') and resource ('vendor and action scope under local and cached killswitch policy'), so an agent knows exactly what the tool answers. It does not explicitly contrast itself with killswitch_status, so the boundary against that sibling is left to inference.

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?

Usage is implied rather than stated: the tool is a preflight allow/deny query, but the description never says when to call it instead of killswitch_status or killswitch_panic. No conditions, prerequisites, or exclusions are given.

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