Skip to main content
Glama

Reduce project

reduce_project
Destructive

Keep only specified compositions and their dependencies, then delete all unused project items and return the number removed.

Instructions

File > Dependencies > Reduce Project: keep only the given compositions and everything they use; delete all other items. Returns the count removed.

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": {
      "keep": "<keep>"
    },
    "name": "reduce_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
keepYesComposition(s) to keep (name/path/id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, but the description adds real substance beyond them: the exact deletion rule (items not used by the kept compositions are removed), the preservation guarantee (dependencies of kept comps survive), and the return value (count removed). It omits reversibility/undo behavior, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact clauses front-load the operation and its deletion semantics, with the return value last. The menu-path prefix is mild overhead but aids identification, so nothing meaningfully wastes space.

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 destructive tool with no output schema, the description covers the action, the deletion scope, the preservation rule, and the return value. Missing only operational details such as undo/reversibility and whether it applies to the currently open project.

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 already documents the single 'keep' parameter as name, 'Folder/Name' path, or item id, including arrays. The description's phrase 'the given compositions' merely restates the parameter's role without adding format or edge-case meaning.

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 gives a specific verb and resource — keep only the given compositions and everything they depend on, delete all other items — which is far more precise than the title alone. It does not distinguish itself from nearby project-management siblings such as organize_project, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the explicit 'File > Dependencies > Reduce Project' menu path situates it as a project-cleanup operation. There is no statement of when to prefer this over organize_project or when to avoid running it, and no prerequisite or confirmation guidance.

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

Deploy Server

Other Tools