Skip to main content
Glama

Spendplane — AI Privacy, Redaction & Cost Routing

Simulate Reversible Agent Tool-Loop Privacy

simulate_reversible_agent_redaction
Read-onlyIdempotent

Demonstrate Spendplane's opt-in Reversible Agent Privacy Add-On: masks entities into run-scoped placeholders ([EMAIL_01], [CUSTOMER_ID_02]), checks per-tool/field allowlists, and verifies cross-run token blocking.

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": {
      "prompt": "<prompt>"
    },
    "name": "simulate_reversible_agent_redaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesInitial user prompt containing sensitive entities (emails, keys, custom IDs like cust_8492_live).
tool_argsNoTool arguments generated by the LLM (can contain placeholder tokens like '[CUSTOMER_ID_01]').
tool_nameNoTarget internal tool name to test restoration against (default: 'get_invoice_status').
allowed_fieldsNoFields on tool_name permitted to resolve protected placeholders (default: ['customer_id']).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds real substance beyond that: the placeholder format, run-scoped masking, allowlist enforcement, and cross-run token blocking. However, it never says what the simulation returns or how failures are surfaced, and with no output schema that gap is on the description to fill.

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?

A single sentence, front-loaded with the action and product, with every clause adding a distinct mechanism (masking, allowlists, cross-run blocking). It is dense but not padded; a light structural break into purpose versus mechanism would aid scanning but is not required.

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?

With four parameters, one nested object (tool_args), and no output schema, an agent needs to know what the simulation produces to interpret a call. The description explains the process but not the result shape or what a blocked versus resolved placeholder looks like in the response. Adequate for invocation, incomplete for interpretation.

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 100%, so all four parameters carry descriptions including defaults for tool_name and allowed_fields. The description's placeholder examples ([EMAIL_01], [CUSTOMER_ID_02]) loosely align with the prompt and tool_args semantics but add no meaning beyond what the schema states. Baseline 3 applies where the schema does the heavy lifting.

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 a specific demonstrative action (masking entities into run-scoped placeholders, checking allowlists, verifying cross-run blocking) tied to a named product feature. An agent can tell it is a privacy-simulation tool rather than a cost or architecture tool. It stops short of explicitly distinguishing itself from the sibling scan_text_for_ai_leaks, which arguably overlaps in the leaking-detection space.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named. The closest sibling, scan_text_for_ai_leaks, is never referenced, so the agent must infer from names alone which privacy tool to pick. The 'opt-in Add-On' phrasing implies a demo/test context but is not framed as a usage rule.

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