Skip to main content
Glama

Merge duplicate objects

merge_objects
Destructive

Fold a DUPLICATE object into the object it duplicates, then delete it.

Extraction coins near-duplicates (`turkey` beside `country_tur`) because the
known-objects hint it sees is capped at the newest rows. Use this when two
objects of the SAME class denote one real thing: `winner_id` is the one to
keep, and the loser's properties, edges, mentions and ownership move onto it
before it goes. Edges the move turns into self-loops or exact duplicates are
dropped. Identify the loser by `loser_id` or by `loser_name` (its canonical
snake_case name, resolved within the winner's class).

Irreversible, and the loser id stops resolving afterwards — confirm the two
really are one thing (get_object on both) before calling. Refuses a
cross-class pair and graph plumbing (relationship/action occurrences,
vocabulary templates, the `_system.*` namespace). Requires write access
to the graph. Both objects must be ones you can read: one hidden from
you, still waiting for review, or rejected answers as not found. Not
found doesn't mean it is gone: one you just recorded may be waiting, and
a person decides it in Review. Tell the user so; don't try other ids or
names.

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": {
      "memory": "<memory>",
      "winner_id": "<winner_id>"
    },
    "name": "merge_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoryYes
loser_idNo
winner_idYes
loser_nameNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructive=true and non-idempotent, but the description goes far beyond them: it enumerates exactly what migrates (properties, edges, mentions, ownership), notes that resulting self-loops and exact duplicate edges are dropped, states irreversibility and that the loser id stops resolving, and discloses the write-access requirement and visibility rules (hidden, awaiting review, rejected all report as not found). This is a model disclosure for a destructive mutation.

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 core action and the loser/winner distinction are front-loaded, and the dense paragraphs are organized by concern (what it does, when to use it, what it refuses, visibility caveats). It runs long and could tighten the closing not-found paragraph, but nearly every sentence carries non-obvious operational information.

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?

For a destructive, non-idempotent merge with an output schema (so return shape need not be described), the definition covers semantics, preconditions, refusals, and permission/visibility behavior thoroughly. The only real hole is the unexplained required `memory` parameter, which an agent must still guess.

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 0%, and the description compensates for three of four parameters: `winner_id` (the one to keep), `loser_id`, and `loser_name` with its format (canonical snake_case, resolved within the winner's class) and the either/or relationship between the two loser identifiers. However, the required `memory` parameter is never mentioned, leaving an agent to infer its meaning and acceptable values entirely from a bare schema title.

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?

Opens with a specific verb+resource pair: 'Fold a DUPLICATE object into the object it duplicates, then delete it.' It also explains the causal origin of duplicates (capped known-objects hint at extraction) and names the class constraint, so an agent can distinguish this from get_object, forget, or list_objects without inspecting schemas.

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

Usage Guidelines5/5

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

States the triggering condition explicitly: 'Use this when two objects of the SAME class denote one real thing.' It adds a pre-call prerequisite (confirm via get_object on both), lists refusal conditions (cross-class pairs, graph plumbing, `_system.*`), and tells the agent not to retry other ids when something returns not found.

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