Skip to main content
Glama

prune_global

Unregister global directories that no longer exist to clean up stale entries in the user's global setup.

Instructions

Unregister global directories that no longer exist (same as fire cli global prune). 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": "prune_global"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

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

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It does disclose that this mutates the user's global setup and requires explicit user consent, which is valuable. It does not say whether the operation is reversible, what happens to entries that still exist, or what the response contains.

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, no filler. The purpose comes first and the consent constraint follows, so the agent sees both the action and its restriction immediately.

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 not be explained, and with no parameters the surface is small. The only meaningful gaps are reversibility and what happens to still-valid entries, which are minor for a prune operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is no parameter semantics to explain; baseline for a parameterless tool applies. The description correctly implies the tool operates on the entire global registry with no targeting arguments.

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?

States a specific verb and resource: 'Unregister global directories that no longer exist', plus a CLI equivalence to `fire cli global prune`. It is distinguishable from siblings like remove_global because it targets only stale entries, though the description never explicitly contrasts with them.

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?

Gives a clear, strict usage condition: 'use only when the user asks for it, never on your own initiative.' That is a strong when-to-use gate, but it does not name the alternative tool (e.g., remove_global) for removing a specific directory.

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