Skip to main content
Glama

prune_tools

Score and rank tools by relevance to a task intent, then prune low-scoring ones to save context tokens.

Instructions

Score and rank MCP tools by relevance to a task intent. Optionally prune low-relevance tools to save context tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
intentYesThe task description or user intent to score tools against
toolsYesArray of tool definitions to score
modeNorank: score and sort all tools. prune: also mark bottom-M tools for removalrank
prune_countNoNumber of lowest-scoring tools to prune (only in prune mode, default 5)
Behavior3/5

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

No annotations are provided, so the description carries full burden. It mentions the optional pruning behavior, which is good, but does not disclose whether pruning is destructive or modifies the input array, nor does it explain how scoring works or potential side effects.

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 wasted words. The first sentence states the core action, and the second adds the optional pruning feature. Information is front-loaded and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is adequate for the input parameters but does not explain what the tool returns (e.g., ranked list with scores). Without an output schema, the description could have provided that context. It covers the basic function but lacks completeness for the agent to fully understand the outcome.

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%, so the input schema already documents all parameters clearly. The tool description adds no additional detail beyond what the schema provides, resulting in a baseline score of 3.

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 uses specific verbs 'score and rank' and 'prune', clearly identifies the resource as 'MCP tools', and distinguishes this tool from sibling tools like classify_task or compress_context by focusing on relevance scoring and optional pruning.

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?

The description implies use for filtering tools by intent, but does not explicitly state when to use versus alternatives (e.g., classify_task) or when not to use. No exclusions or context cues provided.

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/rishi-banerjee1/prompt-control-plane'

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