Skip to main content
Glama

deduplicate_data

Remove duplicate entries from a JSON array, using either direct value comparison or a specified key for object deduplication.

Instructions

Remove duplicate entries from an array.

Parameters:
    data — JSON array to deduplicate.
    key — Deduplication key for objects. Empty for value comparisons.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
keyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description must cover behavioral traits. It mentions the basic behavior of removing duplicates and the role of the key, but omits details such as whether the operation is destructive, handling of non-array inputs, or the deduplication algorithm. This is minimally informative.

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 concise, using two sentences and a parameter list. The parameter explanations are integrated rather than a separate section, which is efficient. However, the phrasing 'Parameters: data — ...' is slightly informal and could be more structured.

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 lack of annotations, the description provides the core functionality but is incomplete. It does not address error handling, performance, or edge cases like non-object elements when a key is provided. The existence of an output schema compensates partially, but the description alone is minimally sufficient for a simple deduplication tool.

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?

The description adds meaning beyond the schema by explaining that 'data' is a JSON array and 'key' is used for object deduplication, with an empty key defaulting to value comparisons. While helpful, it could clarify data format expectations (e.g., JSON string vs array) and key behavior for edge cases.

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?

The description explicitly states 'Remove duplicate entries from an array', using a clear verb+resource structure. Among many sibling tools like 'sort_data' or 'filter_data', it is distinctly about deduplication, making its purpose unambiguous.

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

Usage Guidelines3/5

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

The description implies usage scenarios by distinguishing between value deduplication (no key) and object deduplication (with key). However, it does not explicitly state when to use this tool over alternatives or mention when not to use it, leaving the guidance somewhat implied.

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/scotia1973-bot/api-hub'

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