Skip to main content
Glama

cross_repo_search

When a symbol or concept is not found locally, search sibling repositories in the same project or organization to retrieve relevant code and architecture context.

Instructions

Search knowledge from sibling repositories.

scope="project" — only repos in same project (recommended, high relevance). scope="org" — all repos in organization (broader, use sparingly).

Requires repos linked via cognirepo init (written to org graph). Returns empty results if no sibling repos are registered.

Claude: call this when:

  • lookup_symbol returned empty and the symbol may live in a sibling repo

  • The architecture question spans multiple services in the same project

  • User asks "how does X work across the system" or "what does repo Y do"

  • Importing from a sibling repo and need context on its internals

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
scopeNoproject
top_kNo
Behavior4/5

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

Given no annotations, the description discloses important behavioral traits: it requires preregistered repos and returns empty results if none are found. It does not cover output format or performance, but for a search tool these are secondary; the stated edge case (empty results) is valuable.

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 concise and well-structured: a one-line purpose, a two-line parameter explanation, a precondition statement, and a bullet list of invocation scenarios. Every sentence adds unique value without redundancy.

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 three parameters and no output schema, the description covers the main purpose, parameter scope, prerequisites, and common use cases. It could be enhanced by specifying what constitutes 'knowledge' (e.g., code, documentation) and the result format, but current information is sufficient for most agent decisions.

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 description coverage is 0%, so the description must compensate. Only the 'scope' parameter receives meaningful explanation (with examples of 'project' and 'org'). The 'query' and 'top_k' parameters are entirely undocumented in text, leaving the agent without guidance on their semantics beyond type/name.

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 action ('Search knowledge') and the resource ('sibling repositories'). It further disambiguates from sibling tools like 'lookup_symbol' by referencing its role in the workflow and explicitly describing scope options that differentiate it from org-wide searches.

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 conditions for when to invoke the tool (e.g., after 'lookup_symbol returned empty', for cross-service architecture questions) and when to use sparingly (broader scope). It also mentions the prerequisite ('repos linked via cognirepo init'), offering clear decision support for the agent.

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/ashlesh-t/cognirepo'

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