Skip to main content
Glama

Merge two topics

merge_topics
DestructiveIdempotent

Moves every entry from the source topic into the target and archives the source. Both must have the same type and unit; convert first with update_topic and unitFactor if the units differ. Ask the person first.

Input Schema

NameRequiredDescriptionDefault
sourceIdYesThe topic to fold in; it is archived afterwards.
targetIdYesThe topic that keeps everything.

Output Schema

NameRequiredDescriptionDefault
topicYes
movedFromYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructive=true and idempotent=true, but the description adds what actually happens to data (all entries are moved, the source is archived rather than deleted) and the type/unit compatibility constraint. The human-confirmation requirement is behavior an agent cannot infer from the annotations.

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?

Three short sentences, front-loaded with the effect, then the precondition, then the confirmation requirement. Every sentence changes how the agent would call the tool; nothing is padding.

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?

An output schema exists, so return values need not be described. For a destructive merge, the description covers effect, precondition, alternative path, and the need for human approval — everything an agent needs to invoke it safely.

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 100%: sourceId and targetId are both documented in the schema, including the fact that sourceId gets archived. The description adds no format or identifier detail beyond that, so the schema carries the load and a baseline 3 is appropriate.

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 (merge/move) and resource (topics), and spells out the full effect: entries move to the target and the source is archived. This clearly distinguishes it from archive_topic and update_topic, which are the nearest siblings.

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?

Gives an explicit precondition (same type and unit) and routes the agent to the alternative path when it fails: convert first with update_topic and unitFactor. It also adds a confirmation requirement ('Ask the person first'), so the agent knows both when to call it and when to hold back.

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