Skip to main content
Glama

Consolidate duplicate project items

consolidate_duplicates
Destructive

Merges project items that reference the same media file and interpretation into one, then re-points timeline clips to the surviving item. Run find_duplicate_items first to preview the merge.

Instructions

Merge project items that point at the same media file with the same interpretation into one item (Edit > Consolidate Duplicates). Timeline clips are re-pointed at the surviving item. Run find_duplicate_items first to see what would merge. Returns the number of project items before and after and how many were removed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "consolidate_duplicates"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false and idempotentHint=false, but the description adds real behavioral detail beyond them: timeline clips are re-pointed at the surviving item, and the result reports item counts before and after plus how many were removed. What is missing is any note on reversibility/undo or what happens to item-level metadata on the merged-away items, which for a destructive merge would be valuable.

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?

Four short sentences, front-loaded with the merge rule, then side effects, then the precondition, then the return values. Every sentence carries distinct information and nothing is repeated from the title or annotations.

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

Completeness5/5

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

For a zero-parameter, destructive operation with no output schema, the description covers the essential unknowns: what qualifies as a duplicate, the collateral effect on timeline clips, a safe pre-check step, and the shape of the return value. An agent has everything needed to decide whether and how to invoke it.

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 tool takes no parameters and the schema is an empty object, so there is nothing for the description to disambiguate. The definition is consistent with that — it describes behavior and return values rather than inventing parameter guidance.

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 states a specific verb and resource ('Merge project items') and narrows the scope precisely to items pointing at the same media file with the same interpretation. It also anchors the operation to a known UI path (Edit > Consolidate Duplicates), so an agent can distinguish it from siblings like find_duplicate_items or duplicate_clip without opening a 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?

It gives an explicit prerequisite-and-routing rule: run find_duplicate_items first to preview what would merge. That is clear when-to-use guidance tied to a named sibling. It does not state when consolidation should be avoided (e.g., intentional duplicate-looking items) or what to do if the preview is empty, so it stops short of full when/when-not coverage.

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