Skip to main content
Glama

kuma_safety

Guard risky work, verify edits with scoped tests, snapshot/restore checkpoints, and track tool costs at task boundaries to catch drift, loops, and regressions early.

Instructions

Safety & verification. Use at task boundaries, not on every edit.

CORE ACTIONS (use these): guard (before risky work: anti-patterns, drift, loops), verify (after edits: scoped tests + validation), checkpoint + rollback_label (the one rollback mechanism: snapshot before risky work, restore after), cost (cost-per-tool ledger).

Input Schema

NameRequiredDescriptionDefault
forceNoForce re-run even if cache is fresh or rate limited (verify)
labelNoCheckpoint label for checkpoint/rollback_label
scopeNoScope for verify (e.g. 'auth', file path)
actionYesguard=anti-patterns/drift/loops before risky work, verify=scoped tests after edits, checkpoint=labeled snapshot before risky work, rollback_label=restore a labeled snapshot, cost=cost-per-tool ledger
targetNoTarget test file or scope for verify
commandNoCustom test command to run during verify
timeoutNoCustom timeout in seconds for verify
guardGoalNoGoal for guard check
timeoutMsNoCustom timeout in milliseconds for verify (default: 60000)
guardCheckNoGuard check type
descriptionNoDescription for checkpoint

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.25

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses that guard checks anti-patterns/drift/loops, verify runs scoped tests plus validation, and checkpoint/rollback is 'the one rollback mechanism' that snapshots and restores. It stops short of stating side effects (filesystem snapshots), persistence, or permission/caching behavior — the cache/rate-limit hint only surfaces in the schema's force param.

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 purpose sentence, then a compact action list where each parenthetical earns its place by adding timing or output context. Slightly dense but no wasted sentences.

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 an 11-parameter, no-annotation, no-output-schema dispatcher, the description supplies the action routing and timing that the schema cannot. It omits any mention of what the actions return or of side effects such as snapshot creation, which leaves a small but real gap.

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%, including a per-value description on the action enum, so the structured data already documents every parameter. The description's action glosses largely restate the schema's enum description, adding little new syntax or format meaning, so baseline 3 is appropriate.

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 domain (safety & verification) and enumerates the five core actions with a one-phrase purpose each, so an agent knows exactly what this dispatcher does. It does not explicitly differentiate itself from siblings like kuma_context or kuma_memory, though the safety/verification framing implies the split.

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?

It gives an explicit when ('use at task boundaries') and an explicit when-not ('not on every edit'), plus per-action timing: guard before risky work, verify after edits, checkpoint before risky work, rollback after. This is exactly the routing guidance a multi-action tool needs.

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