Skip to main content
Glama

search_in_repo

Search code inside a specified GitHub repository via GitHub code search to find matching files or snippets for a query.

Instructions

Search code inside one repository via GitHub code search.

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": {
      "full_name": "<full_name>",
      "query": "<query>"
    },
    "name": "search_in_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
task_idNo
full_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and it discloses almost nothing beyond the one-line purpose. It says nothing about required authentication, rate or quota limits typical of code search, whether only default-branch or indexed content is searched, result caps, or pagination.

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?

It is a single front-loaded sentence with no filler, and the scoping constraint appears immediately. The terseness is efficient, though it comes at the cost of the missing detail noted elsewhere rather than being a structural flaw.

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 a three-parameter tool with zero schema documentation, no annotations, and no output schema, the description leaves the essential contract undefined. An agent cannot determine argument formats or result behavior from the definition alone, so it is under-specified relative to its complexity.

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

Parameters1/5

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

Schema description coverage is 0% for all three parameters and the description adds no meaning for any of them. It never explains that full_name is the repository identifier, what query syntax or qualifiers are accepted, or what task_id is used for — an agent must guess all three.

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 a specific verb and resource ('Search code') and bounds the scope to 'one repository', which separates it from a repo-level search. It does not name the sibling it differs from, but the code-inside-a-repo framing is specific enough for an agent to identify the operation.

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 phrase 'inside one repository' implies the tool requires a single-repo scope, giving implicit guidance that it is not a global or multi-repo search. There is no explicit when-to-use versus get_file or search_repos, no prerequisites, and no statement about when this tool should be avoided.

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