Skip to main content
Glama
opami-protect-mcp

opami-protect-mcp

Official
by opamiai

protect_text

Replaces sensitive data like names, emails, and phone numbers with placeholders and returns a map_id for later restoration, keeping real values out of the result.

Instructions

Hides private and sensitive data (names, emails, phone numbers and similar) in a text by replacing them with placeholders such as [PERSON_1]. The text is sent to the Opami Protect API, which keeps nothing. This is pseudonymisation, and it can be reversed: the server keeps the placeholder map in its own memory for this session and returns a short map_id, and restore_text with that map_id puts the real values back. The real values stay in the server and out of the result unless return_map is true. output: "replace" swaps in fake data instead; it works in 7 languages, costs twice as much and cannot be restored.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe text to protect. Must not be empty.
outputNo"placeholders" (default) or "replace" (fake data in 7 languages, costs 2x, cannot be restored).
excludeNoCategories, sub-categories or types to leave as they are (for example "contact.email"). At most 50.
return_mapNoAlso return the placeholder map with the real values. Default false.

Output Schema

NameRequiredDescriptionDefault
usageYes
map_idNo
outputYes
request_idYes
placeholdersNo
replaced_textNo
placeholder_textNo
placeholder_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/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 so well: it discloses the third-party Opami Protect API call, that the API keeps nothing, that the placeholder map lives in server memory for the session only, that a map_id is returned, and that real values stay out of the result unless return_map is true. It also flags the cost and irreversibility of the "replace" mode. Minor gap: no guidance on failure modes or what happens if the session expires.

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?

Dense but front-loaded: the core action, the privacy posture, the reversibility mechanism, and the risky alternative mode all appear in a tight paragraph with no filler. Slight overlap with the output enum description is negligible.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers what an agent needs to invoke this correctly: privacy implications, session lifetime of the map, the restore path, and the cost/irreversibility trade-off of the alternate mode. Since an output schema exists, return-value structure need not be explained; only edge cases like session expiry are unaddressed.

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 the baseline is 3; the description adds meaning beyond the schema by explaining that return_map controls whether real values leave the server and that the default is pseudonymisation with a session-scoped map. The exclude parameter is left to the schema, which is acceptable given full coverage.

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 and resource (hides private data in text by replacing with placeholders like [PERSON_1]) and explicitly frames the operation as reversible pseudonymisation, naming restore_text as the inverse. An agent can distinguish this from restore_text and from a pure detection tool without opening the schema.

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?

Gives clear context for the two modes: default placeholders are reversible via restore_text with the returned map_id, while output "replace" is for fake data and cannot be restored. It does not spell out an explicit 'when not to use this tool' rule, but the mode-selection guidance is concrete and actionable.

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

Deploy Server

Other Tools