Skip to main content
Glama

mechacut

check_redlines

The negative-constraint gate: forbidden words, regexes, PII shapes (email/card/iban/phone/ssn), byte budget -> clean, or the FIRST violation with rule and offset. Instructions like 'never include identifiers' degrade as context grows; this scan does not. Free.

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": {
      "text": "<text>",
      "rules": "<rules>"
    },
    "name": "check_redlines"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
rulesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose useful behavior: fail-fast semantics (the FIRST violation, not all), that violations return rule and offset, deterministic results, and that the call is free. It omits whether the tool is read-only, what the 'clean' result looks like, and how malformed regexes or an invalid rules object are handled.

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 core purpose and kept to a single dense sentence plus two short fragments; the arrow notation communicates input-to-output flow efficiently. The closing 'Free.' and the context-degradation remark are borderline extras, though both carry decision-relevant information.

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?

For a two-parameter tool with a nested, fully undocumented rules object and no output schema, the definition explains the checks and half of the return contract but leaves the most error-prone part, how to build the rules object, unaddressed. An agent could decide correctly whether to call it, but not reliably how.

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 coverage is 0% and 'rules' is an untyped nested object, so the schema gives the agent nothing. The description compensates by naming the rule categories (words, regexes, PII shapes, byte budget), but it never reveals the key structure of the rules object, so constructing a valid call still requires guesswork.

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?

Names a concrete operation (a scan/gate) and enumerates exactly what it checks: forbidden words, regexes, PII shapes (email/card/iban/phone/ssn) and a byte budget. The framing as the 'negative-constraint gate' implicitly separates it from positive-list siblings like check_allowlist or check_constraints, but no sibling is named explicitly.

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 context is only implied: the negative-constraint framing plus the rationale about model instructions degrading over long context tells the agent why to call this at runtime. There is no explicit 'use this instead of X when Y' or stated precondition, so the agent must infer the selection rule from the label.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.