Skip to main content
Glama

search_code

Search GitHub code with an authenticated token. Read-only access, limited by GitHub's code-search constraints.

Instructions

Search code visible to the authenticated GitHub token. Read-only; subject to GitHub code-search limits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
repoNo
ownerNo
queryYes
languageNo
extensionNo
max_resultsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden and discloses two key behavioral traits: read-only operation and subjection to GitHub code-search limits. This adds value beyond the schema, though it omits details like rate-limit specifics or result shape.

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 two short sentences, front-loaded with the core purpose and followed by a key constraint. Every word earns its place with no 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?

Given the tool's complexity (7 parameters) and lack of annotations, the description is too sparse to be complete. It does not cover query syntax, filter combinations, expected result behavior, or error scenarios. Although an output schema exists, the description alone leaves critical gaps for effective agent use.

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% and the description provides no parameter-level semantics. Parameter names are self-explanatory, but the description does not explain how query, repo, owner, path, language, extension, or max_results interact, leaving significant ambiguity for a 7-parameter tool.

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 uses a specific verb ('Search') and resource ('code') and adds scope ('visible to the authenticated GitHub token'). This clearly distinguishes it from sibling tools like search_issues and list_repositories.

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 description implies usage context (searching code) but does not explicitly state when to use this tool versus alternatives or provide exclusions. The token-visibility scope offers some situational context, but no direct guidance.

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/Vatsal212005/ContextBridge'

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