Skip to main content
Glama

remove_global

Unregister a registered global directory by namespace or absolute path without deleting its files. Use only when explicitly asked to change the user's global setup.

Instructions

Unregister a global directory by namespace or absolute path (same as fire cli global remove); its files are never touched. Changes the user's global setup: use only when the user asks for it, never on your own initiative.

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": "remove_global"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoAbsolute path of the registered directory to remove. Pass exactly one of `namespace`/`path`.
namespaceNoNamespace of the registered directory to remove (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/5.0
Behavior4/5

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

With no annotations at all, the description still discloses the key behavioral traits: this is a persistent change to the user's global setup, it requires explicit user intent, and it only unregisters the entry without touching files on disk. It omits whether the operation is idempotent or what happens if the path/namespace is not currently registered.

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, no filler: the operation and its aliasing come first, then the safety constraint and the user-intent gate. Every clause contributes information an agent would otherwise have to guess.

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?

An output schema exists, so return values need no explanation, and the schema covers the parameter exclusivity rule. What remains is minor: idempotency and the behavior when the target is not registered. For a two-parameter mutation with zero annotations, the description supplies the essential safety and scope context.

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% and the schema already states "Pass exactly one of `namespace`/`path`" plus that `path` is absolute. The description restates the same two addressing options without adding format details, so the structured schema is doing the heavy lifting and the baseline 3 applies.

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 uses a specific verb and resource ("Unregister a global directory") and names both addressing modes, `namespace` and absolute `path`, tying the operation to the known CLI command `fire cli global remove`. The clause "its files are never touched" implicitly separates it from destructive siblings such as `prune_global`, but no sibling is named outright.

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 a strong, explicit gating rule: "use only when the user asks for it, never on your own initiative", which is exactly the kind of when-not guidance an agent needs for a setup mutation. It stops short of naming alternatives (for example, which sibling to call if the files should also be deleted or the registration merely merged), so it lacks full routing between tools.

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