Skip to main content
Glama

search_code

Read-onlyIdempotent

Hybrid semantic + keyword search over the connected repository's actual indexed content. Use this for open-ended questions ("where is rate limiting implemented?", "how are uploads validated?") where you don't already know an exact symbol or file name -- for those, use get_symbol_definition or get_dependencies instead, they're more precise.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesNatural-language or keyword description of what you're looking for.
top_kNoMax number of results to return (default 8, max 20).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the description only needs to add context beyond those. The description adds the 'hybrid semantic + keyword' nature and 'actual indexed content' scope, which is useful behavioral context. It doesn't contradict annotations, but doesn't mention pagination or result limits beyond the top_k schema.

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?

Two sentences, zero waste. The first sentence states the core function and scope; the second gives usage examples and explicit alternatives. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return values need no explanation. The description covers the tool's purpose, when to use it, distinguishes from siblings, and the annotations cover safety. For a 2-parameter tool with full schema coverage, the description is complete and provides all necessary context for selection and invocation.

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 100% for both parameters (query and top_k), so the schema already documents their semantics. The description reinforces the query parameter with 'open-ended questions' but adds no additional meaning for top_k beyond the default and max. Baseline 3 is appropriate when the schema carries the parameter documentation.

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 a specific verb (search) and resource (the connected repository's actual indexed content). It explicitly distinguishes from siblings by noting that get_symbol_definition and get_dependencies are more precise for exact symbol/file names, preventing misuse.

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?

It gives explicit when-to-use guidance: open-ended questions where you don't know the exact symbol or file name. It also names alternatives (get_symbol_definition or get_dependencies) for exact lookups, which is exactly the kind of exclusions/alternatives that deserve full credit.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool targets a distinct aspect of code understanding: callees (outgoing calls), callers (incoming calls), dependencies (imports), symbol definitions (location/signature), and open-ended search. There is no overlap between them; search_code is explicitly positioned as the fallback for when exact symbols aren't known.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern: get_callees, get_callers, get_dependencies, get_symbol_definition, search_code. 'search_code' uses 'search' as the verb, matching the same structure. No camelCase or mixed conventions.

Tool Count5/5

Five tools is a well-scoped set for a code-intelligence server. Each tool covers a necessary query type without redundancy, and the count avoids the confusion of a large surface while being substantial enough to handle common codebase exploration tasks.

Completeness4/5

The set covers the main code navigation needs: caller/callee graphs, file dependencies, symbol definitions, and free-text search. Minor gaps exist, such as lacking direct file-content retrieval or type hierarchy queries, but these are often handled by search_code or are out of scope for a 'brain' server focused on relationships and definitions.