Skip to main content
Glama

A2A Defense & Monetization Gateway

sanitize_delegated_task_payload

Inspección y censura determinista de secretos (OpenAI, Anthropic, AWS, GitHub, tokens Bearer, llaves RSA, URIs DB) y PII sensible antes de subcontratar tareas a subagentes externos.

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": {
      "payload_text": "<payload_text>"
    },
    "name": "sanitize_delegated_task_payload"
  }
}

Input Schema

NameRequiredDescriptionDefault
mask_charNoCarácter para ofuscación*
strict_piiNoDetectar y eliminar correos, tarjetas y números sensibles
payload_textYesTexto del prompt, código o especificación a auditar
strict_secretsNoDetectar y eliminar tokens, contraseñas y llaves de API

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.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. It discloses that detection is deterministic and lists the secret/PII classes, which is meaningful, but it does not say what happens on detection (masked vs. removed), whether the call fails or returns a cleaned payload, or that no external service is contacted. Those omissions matter for a security-critical transform.

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?

A single front-loaded sentence with no filler; the parenthetical detector list is dense but each entry adds concrete scope information. Nothing is repeated from the schema.

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?

The purpose and trigger are complete, but for a 4-parameter, no-annotation, no-output-schema tool the definition leaves the agent guessing about the return shape (sanitized text only vs. text plus a findings report) and about failure behavior. A brief clause on those would make it fully self-sufficient.

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%, so mask_char, strict_pii, strict_secrets and payload_text are already documented with defaults. The description adds no parameter-level meaning (e.g., how mask_char interacts with strict modes or that strict flags apply per category), so the baseline 3 applies.

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 verb pair (inspection and deterministic redaction) applied to a specific resource (payload secrets and PII) and enumerates the detector families covered (OpenAI, Anthropic, AWS, GitHub, Bearer, RSA, DB URIs). The scope ('before subcontracting tasks to external subagents') makes the purpose unmistakable and distinguishable from audit/scan siblings.

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

Usage Guidelines4/5

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

The description gives a clear triggering context: run it on a payload before delegating to external subagents. It stops short of naming any alternative tool or stating when-not to use it (e.g., local-only delegation, already-sanitized payloads), so the routing guidance is implicit rather than explicit.

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