Skip to main content
Glama

merge_global

Merges a registered namespace into the global CLI setup, letting its commands run without the namespace prefix; use only when the user explicitly requests this change.

Instructions

Merge a registered namespace so its commands can be called without the namespace word (same as fire cli global merge); explicit paths of other commands still win. Changes the user's global setup: use only when the user asks for it, never on your own initiative.

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": {
      "namespace": "<namespace>"
    },
    "name": "merge_global"
  }
}

Input Schema

NameRequiredDescriptionDefault
namespaceYesNamespace of a registered directory (as shown by `list_global`).

Output Schema

NameRequiredDescriptionDefault
okYes
pathNoAffected directory (absolute).
errorNo
mergedNo
prunedNoDirectories `prune_global` unregistered.
removedNo
has_configNo`false` when the registered directory has no fire config files yet.
registeredNo
already_mergedNo
already_registeredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose the key traits: this mutates the user's global setup persistently and requires explicit user intent. It does not say whether the change is reversible, whether merging an already-merged namespace is a no-op or an error, or whether it affects running sessions, leaving some mutation risk under-described.

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?

Two tight sentences, front-loaded with what the tool does, followed immediately by the consent constraint and the precedence caveat. No redundant restatement of the name or of schema fields.

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 one-parameter, user-scoped mutation with an output schema and a high-coverage parameter description, the definition covers purpose, effect, and consent requirements adequately. The remaining gap is failure/idempotency behavior, which matters somewhat for a persistent global change.

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 100% and the single parameter already documents itself as a namespace shown by `list_global`. The description reinforces that 'registered namespace' refers to an already-known entry but adds no format, validation, or aliasing detail beyond the schema, so the baseline 3 applies.

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 names a specific verb (merge) and resource (a registered namespace) and states its concrete effect: commands become callable without the namespace word. It grounds the operation against a known CLI equivalent (`fire cli global merge`) and clarifies precedence (explicit paths still win), which lets an agent distinguish it from sibling operations like add_global or unmerge_global.

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 gate for use: only when the user asks for it, never on the agent's own initiative, plus a precedence caveat about explicit command paths winning. It stops short of naming a counter-tool (e.g., unmerge_global for reverting), so the agent must infer how to undo the change from sibling names alone.

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