Skip to main content
Glama

add_global

Register a directory globally so its commands load from any working directory; use only when the user explicitly requests a global setup change.

Instructions

Register a directory globally so its commands load from anywhere (same as fire cli global add). 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": {
      "path": "<path>"
    },
    "name": "add_global"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of the directory (a leading `~` means the home directory).

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/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does well on the key risk: it states that this 'Changes the user's global setup' and imposes a consent expectation. It leaves out idempotency (what happens if the directory is already registered) and error behavior, which matter for a state-mutating call. Return values need not be described because an output schema exists.

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 sentences, both front-loaded: the action and effect first, then the usage constraint. Nothing is redundant, and the CLI equivalence is compactly expressed in parentheses.

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 mutation with no annotations but a full output schema, the description covers purpose, the global-state side effect, and the consent requirement. The remaining gap is edge-case behavior (duplicate registration, failure modes), which is modest for a tool this simple.

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?

The single `path` parameter is already fully documented in the schema, including the leading-`~` convention. The description adds no additional meaning about path validation, canonicalization, or whether relative paths are rejected, so it merely matches schema-level detail. Baseline 3 is appropriate given 100% schema description coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and effect: 'Register a directory globally so its commands load from anywhere,' which tells an agent exactly what changes and why. It also anchors to the CLI equivalent (`fire cli global add`), making the operation concrete. It does not explicitly distinguish itself from siblings like list_global or merge_global, but the verb-plus-resource phrasing makes the difference inferable.

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 when-to-use condition ('only when the user asks for it') and a when-not-to-use rule ('never on your own initiative'), which is strong guidance for a mutation of shared state. It does not name an alternative sibling for cases where the user wants a non-global registration, so the routing picture is slightly incomplete.

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