Skip to main content
Glama

Find repositories

discover
Read-onlyIdempotent

Lists repositories under configured roots and finds deeply nested repos so you can see which are missing from the fleet. Read-only; helps explain why a repo is not showing up.

Instructions

Which repositories cohors finds, and where, without reading them: every repo under the configured roots, each nested repo marked with the repo around it (nested_in). With deep: true it also searches inside every repo at any depth, marks the repos only that deep search reaches (deep_only), and says which of those the fleet does not show yet (in_fleet: false). The same rows cohors discover --json prints. Read-only: it never changes the config or what cohors remembers. When deep-only repos are missing from the fleet, add is the command for the USER to run (cohors discover --deep, which remembers them); after it every tool shows them, no restart needed. Use for "why isn't repo X showing up?" or "am I missing any repos?".

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "discover"
  }
}

Input Schema

NameRequiredDescriptionDefault
deepNoAlso search inside every repo, at any depth (default false). Slower on a big tree.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.21

TDQS

A4.2/5.0
Behavior5/5

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

Goes well past the annotations: it discloses that nothing is mutated ('never changes the config or what cohors remembers'), that deep search is slower, what markers appear on returned rows (`nested_in`, `deep_only`, `in_fleet: false`), and that newly added repos appear without a restart. That is meaningful behavioral context beyond readOnlyHint/idempotentHint.

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?

Front-loaded with the core answer and organized as base behavior, then deep behavior, then safety, then follow-up action. It is dense and leans on product jargon ('fleet', 'cohors'), but nearly every sentence carries distinct information.

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?

With one optional param, no output schema and full annotation coverage, the description supplies the row semantics and mutation guarantees an agent needs. The one soft spot is the reference to 'the same rows `cohors discover --json` prints', which only helps an agent that knows that CLI output.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds output-side meaning for `deep` — it produces `deep_only` markings and `in_fleet: false` flags — which the schema's one-line description does not convey.

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 resource and scope: 'which repositories cohors finds, and where, without reading them', plus the deep-mode variant. It never names a sibling (e.g. list_repos) as the alternative, so differentiation comes from phrasing ('without reading them') rather than an explicit contrast.

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

Usage Guidelines4/5

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

Gives concrete triggering questions ('why isn't repo X showing up?', 'am I missing any repos?') and explains the deep-mode escalation condition plus the follow-up command the user should run. It stops short of explicit when-not-to-use or naming a sibling tool for the normal listing case.

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