Skip to main content
Glama

capability_search

Find local skills, plugins, projects, scripts, and CLI agents for a task. Returns ranked candidates with confidence scores and an abstain decision when no capability fits.

Instructions

Find local capabilities (skills, plugins, projects, scripts, CLI agents) for a task. Returns top candidates, confidence, and an abstain decision when nothing fits.

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": {
      "task": "<task>"
    },
    "name": "capability_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
taskYesThe subtask or need, in natural language.
typesNoFilter by capability type.
domainsNoFilter by domain, e.g. research or office.
min_marginNoOverride the top-1/top-2 margin threshold.
record_gapNo
prefer_hostNoRank candidates loadable by the current host first and switch the selection when the top match belongs to another host.
capabilitiesNoRequired capability tags, e.g. retrieve or verify.
min_coverageNoMinimum query-token coverage for the top candidate.
min_confidenceNoOverride the abstain threshold.
include_unavailableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it usefully discloses that the tool abstains when nothing fits and returns confidence scores, which is real behavioral context. However, it omits that some parameters cause side effects (record_gap defaults to false but records a gap), how the host-aware ranking works, or that the operation is read-only in the normal case.

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, purpose front-loaded, return behavior second; no filler or redundancy.

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

Completeness2/5

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

For an 11-parameter search tool with no annotations and no output schema, the description is thin: it does not explain the abstain/threshold mechanics, the mutual interaction of prefer_host with candidate selection, or the write side effect of record_gap. An agent could call it, but not reliably with the optional parameters.

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

Parameters2/5

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

Schema coverage is 73% across 11 parameters, leaving record_gap and include_unavailable undocumented in the schema, and the description says nothing about any parameter other than the notion of a task. It adds no meaning about thresholds (min_confidence, min_margin, min_coverage), type/domain filters, or the prefer_host switching behavior.

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 ('Find local capabilities') and enumerates the capability kinds covered (skills, plugins, projects, scripts, CLI agents). It also previews the return shape (top candidates, confidence, abstain decision). It does not name a sibling to distinguish itself from, notably capability_discover or capability_get.

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 implied by 'for a task' and 'local', suggesting a task-to-capability matching scenario, but there is no explicit when-to-use versus capability_discover/capability_get, and no statement of when not to use it. The agent must infer the boundary from sibling names alone.

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