Skip to main content
Glama

github code

github_code
Read-only

Search code across all public GitHub repositories: find real usage examples of a function, API or config key, with file paths, links and the matching code fragments. Filter by language, repo, org or filename. Costs $0.004 USDC per call (x402).

Input Schema

NameRequiredDescriptionDefault
qYesCode to find
orgNo
repoNoowner/name
limitNo
filenameNo
languageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint, openWorldHint), and the description adds genuinely new context: the per-call price of $0.004 USDC via x402 and what a result contains (file paths, links, code fragments). This is useful non-obvious behavior, though rate limits or result caps are not mentioned.

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?

Three tight sentences: capability, use case, filters, then cost. Front-loaded and waste-free, though the cost sentence could be considered secondary detail placed correctly at the end.

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 no output schema, the description usefully explains the return shape (paths, links, code fragments), and it discloses the payment requirement. For a 6-parameter search tool with partial schema coverage, the only remaining gap is parameter formatting detail.

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

Parameters3/5

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

Schema coverage is only 33%, so the description must carry weight. It does name the filter dimensions (language, repo, org, filename), which documents three otherwise undescribed parameters, but adds no format or value guidance (e.g., whether org takes a login or full path, valid language values, limit defaults). Meets baseline compensation but not more.

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 ('Search code across all public GitHub repositories') and clarifies the intent with 'find real usage examples of a function, API or config key.' It is distinguishable from github_issues and github by resource, but it never explicitly names the closest sibling, github_search, so an agent must infer the split.

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 a concrete use case ('find real usage examples of a function, API or config key') that tells the agent when this tool is the right pick. There are no explicit exclusions or named alternatives, so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources