Skip to main content
Glama

anonymize_structured_data

Remove personally identifiable information from JSON or dictionary data to protect privacy. This tool detects and anonymizes PII using configurable entities and thresholds.

Instructions

Anonymize PII in structured data (JSON/dict).

Args:
    data: JSON string representing structured data
    language: Language code (default: "en")
    operator: Anonymization operator (default: "replace")
    entities: List of entity types to anonymize (default: all)
    score_threshold: Minimum confidence score (default: 0.0)

Returns:
    JSON string with anonymized structured data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
languageNoen
operatorNoreplace
entitiesNo
score_thresholdNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions that the tool anonymizes PII, but doesn't explain what happens during anonymization (e.g., whether data is modified in-place, if original data is preserved, error handling, or performance considerations). For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

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?

The description is appropriately sized and well-structured: it starts with a clear purpose statement, followed by an 'Args' section listing parameters with defaults, and ends with a 'Returns' section. Each sentence earns its place, but it could be more front-loaded by emphasizing the tool's role relative to siblings upfront.

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?

Given the tool's complexity (5 parameters, mutation operation, no annotations) and the presence of an output schema (which covers return values), the description is moderately complete. It explains parameters and returns, but lacks behavioral context (e.g., how anonymization works) and usage guidelines, making it adequate but with clear gaps for effective agent use.

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 0%, so the description must compensate. It lists all 5 parameters with brief explanations (e.g., 'JSON string representing structured data' for 'data'), which adds meaning beyond the bare schema. However, it doesn't provide details on allowed values (e.g., valid 'language' codes, 'operator' options, or 'entities' types), leaving gaps in parameter understanding.

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 clearly states the tool's purpose: 'Anonymize PII in structured data (JSON/dict).' It specifies the verb ('anonymize'), resource ('structured data'), and format ('JSON/dict'), which is specific and actionable. However, it doesn't explicitly differentiate from sibling tools like 'anonymize_text' or 'batch_anonymize', which handle similar anonymization tasks but for different data types or in batch mode.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'anonymize_text' (for text data) or 'batch_anonymize' (for batch processing), nor does it specify prerequisites, exclusions, or typical use cases. This leaves the agent without context for tool selection among similar anonymization options.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cmalpass/mcp-presidio'

If you have feedback or need assistance with the MCP directory API, please join our Discord server