Skip to main content
Glama

sanitize_payload

Inspect, de-obfuscate, and redact untrusted payloads to block prompt injection, DLP leaks, shell/SQLi/SSRF, and tool-poisoning risks before agent use.

Instructions

Multi-layer de-obfuscation, DLP (Luhn PAN, Mod-97 IBAN, secrets, PII), prompt-injection, shell/SQLi/SSRF, and MCP tool-poisoning inspection & redaction. Cost: $0.002 USDC via x402.

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

Input Schema

NameRequiredDescriptionDefault
modeNo
toolsNo
payloadNo
webhookUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.9/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 and does disclose two useful traits: the detection/redaction layer set and the $0.002 USDC x402 cost. However, it says nothing about side effects, whether redaction mutates the payload in place, permission or auth requirements, or what distinguishes BLOCK from REDACT from AUDIT behavior.

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 compact sentences with no filler, and the capability set leads before the cost note. It is dense with technical jargon but every clause carries information.

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 four-parameter security tool with zero annotation coverage, no output schema, and 0% parameter documentation, the description omits too much: mode semantics, return shape, and side effects are all absent. The cost disclosure is the only behavioral detail an agent gets.

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% across four parameters, so the description must compensate and it does not. The mode enum (BLOCK/REDACT/AUDIT), the tools array, the payload, and the webhookUrl are all unmentioned; 'MCP tool-poisoning' only loosely gestures at the tools argument.

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 enumerates the specific inspection layers (de-obfuscation, DLP with Luhn/Mod-97 checks, prompt-injection, shell/SQLi/SSRF, MCP tool-poisoning) and names redaction as the action, so an agent can tell this is a payload sanitizer. It never distinguishes itself from the sibling tools, and the core verb is buried in a dense noun phrase rather than stated up front.

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, when-not-to-use, or alternative guidance is given. The pricing note hints at a paid path but does not say when an agent should choose this over scan_code_sarif or verify_agent_card, leaving selection entirely to inference.

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