Skip to main content
Glama

Edge AI Guardrail

guardrail_sanitize_text

Runs the Edge Security Sanitizer on arbitrary text to redact API keys, AWS credentials, PEM private keys, Luhn credit cards, and optional general PII.

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>"
    },
    "name": "guardrail_sanitize_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to scan and redact.
redactPiiNoAlso redact emails, phone numbers, and US SSNs as [REDACTED_PII].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the exact detector set and that PII redaction is optional, which is real behavioral value. However, it never states what the tool returns (redacted text versus a findings report), input size limits, or whether the operation is purely read-only/non-mutating.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense, front-loaded sentence with zero filler; the action leads and the redaction categories follow. Nothing needs trimming or reordering.

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 no output schema and no annotations, the description covers input semantics well. The notable gap is the return shape — an agent cannot tell from the definition whether it gets scrubbed text or a detection summary — which matters for a security utility.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a 3 is the baseline. The description earns above that by specifying the default detector set that applies when redactPii is false, which the schema does not say, and by framing PII as an optional extension layer.

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 action (runs the Edge Security Sanitizer) on a specific input (arbitrary text) with an explicit outcome (redacts API keys, AWS credentials, PEM private keys, Luhn credit cards, and optional general PII). The enumerated redaction categories make it unambiguously distinct from siblings like guardrail_safe_completion or guardrail_check_budget.

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 by the phrase 'arbitrary text' — an agent can infer this is a pre-flight scrub step — but the description never says when to prefer this tool over guardrail_safe_completion, nor does it state any prerequisite or exclusion. No alternatives are named.

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.

Resources