Skip to main content
Glama

discover_tools

Finds and enables relevant expert tools by purpose, returns their schemas, and can run supported read or index calls when a client cannot refresh its catalog.

Instructions

Discover or enable experts and return their schemas. If the client cannot refresh its catalog, call runs a supported read/index tool; never source edits.

Input Schema

NameRequiredDescriptionDefault
callNoIf the client cannot refresh tools, execute a supported read/index tool using its discovered schema. Pass root outside call; source edits are excluded.
rootNoAbsolute project root. Required with linked worktrees; subagents must pass their own worktree root on every call.
limitNoMaximum discovery matches; default 5.
queryNoPurpose, e.g. rename, tests, or memory.
enableNoExact tool names to add to this session's catalog.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already indicate the tool is not read-only and not destructive. The description adds useful context by clarifying that enabling affects the session catalog and that the fallback `call` path runs only supported read/index tools, never source edits.

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?

The description is short and front-loads the main capability. The second sentence is dense but still earns its place by covering the fallback behavior and edit exclusion.

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 five-parameter discovery tool with a nested object and no output schema, the description covers the core behavior, fallback execution, and edit exclusion. It could be more explicit about return shape, but the schema carries most parameter detail.

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 schema already explains each parameter thoroughly. The description reinforces the `call` and `enable` semantics but does not add substantial meaning beyond the schema.

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 names specific actions (discover, enable, return schemas) and the resource (experts/tools), making the tool's role understandable. It does not explicitly distinguish itself from siblings like search or grep, 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?

It provides a conditional for the nested `call` parameter and a clear exclusion ('never source edits'), but gives no explicit guidance on when to use `discover_tools` versus alternatives such as `search`, `grep`, or `status`. Usage is implied rather than fully stated.

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