Skip to main content
Glama

manage_orphans

Identify and remove orphaned packages on Arch Linux to free up disk space. List dependencies no longer required or preview and delete them with exclusion options.

Instructions

[MAINTENANCE] Unified tool for managing orphaned packages (dependencies no longer required). Supports two actions: 'list' (show orphaned packages) and 'remove' (remove orphaned packages). Only works on Arch Linux. Requires sudo access for removal. Examples: action='list' → shows all orphaned packages with disk usage; action='remove', dry_run=true → preview what would be removed; action='remove', dry_run=false, exclude=['pkg1'] → remove all orphans except 'pkg1'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform: 'list' (list orphaned packages) or 'remove' (remove orphaned packages)
dry_runNoPreview what would be removed without actually removing (only for remove action). Default: true
excludeNoList of package names to exclude from removal (only for remove action)
Behavior4/5

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

The description adds valuable behavioral context beyond annotations: it specifies platform restriction (Arch Linux), sudo requirement for removal, and provides concrete examples of different usage patterns. While annotations indicate it's not read-only and not destructive, the description clarifies that removal requires sudo and shows how dry_run works, adding meaningful operational context.

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?

The description is efficiently structured with a clear purpose statement, action explanation, constraints, and concrete examples in just four sentences. Every sentence adds value, and the information is front-loaded with the most important details first.

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 tool with no output schema and moderate complexity (3 parameters, two distinct actions), the description provides comprehensive context including platform restrictions, permission requirements, and usage examples. The main gap is lack of information about return values/output format, but otherwise it's quite complete given the annotations and schema coverage.

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?

With 100% schema description coverage, the input schema already fully documents all parameters. The description provides examples showing parameter usage patterns (like exclude parameter with remove action), but doesn't add significant semantic meaning beyond what's in the schema. Baseline 3 is appropriate given complete schema coverage.

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 clearly states the tool's purpose as a unified tool for managing orphaned packages with two specific actions (list and remove). It distinguishes itself from siblings like 'remove_packages' by focusing specifically on orphaned dependencies no longer required, providing clear differentiation.

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

Usage Guidelines5/5

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

The description provides explicit usage guidance including when to use each action, prerequisites (Arch Linux, sudo access for removal), and examples showing different scenarios. It clearly distinguishes between list and remove actions and specifies platform constraints.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nihalxkumar/arch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server