Skip to main content
Glama
rhamenator

runtime-guard-mcp

by rhamenator

budget_guard

Check or atomically consume token, payload, and command budgets for a session, and detect repeated actions to enforce caller-wide runtime limits.

Instructions

Check or atomically consume caller-wide token, payload, and command budgets; detects repeated session actions.

Input Schema

NameRequiredDescriptionDefault
tokensNo
consumeNo
commandsNo
session_idYes
fingerprintNo
payload_bytesNo

Output Schema

NameRequiredDescriptionDefault
ruleYes
statusYes
remainingNo
remediationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that consumption is atomic, budgets are caller-wide, and repeated session actions are detected, which is useful behavioral context. However, it omits permissions needed, failure behavior when budgets are exceeded, whether consume causes irreversible state changes, and concurrency/rate-limit characteristics.

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?

The description is a single dense sentence with no filler and places the primary actions first. Its terseness contributes to the gaps elsewhere, but as conciseness and front-loading go, it is efficient.

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 six-parameter tool with no annotations and 0% schema description coverage, the description is too thin. It leaves the check-vs-consume distinction, fingerprint role, required session_id, and failure behavior unexplained, though the output schema covers return values.

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

Parameters2/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 explain all six parameters. It loosely maps token, payload, and command budgets to tokens, payload_bytes, and commands, and hints at session actions via session_id/fingerprint, but it never explains consume, session_id requirements, fingerprint, or what each parameter accepts.

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 specific actions (check, consume) and resources (caller-wide token, payload, and command budgets) and adds a secondary behavior (detects repeated session actions). It is clear what the tool does, though it does not explicitly distinguish itself from the sibling tools.

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

Usage Guidelines2/5

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

No when-to-use guidance is provided. The description implies the tool is for budget enforcement, but it does not say when to call it, when not to call it, or what alternatives exist among the sibling tools.

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