Skip to main content
Glama

search_graph

Search code symbol graphs using BM25 or hybrid BM25+vector search to locate functions, classes, methods, and other symbols by project and query.

Instructions

Search over the symbol graph. BM25 by default; pass semantic:true for hybrid BM25+vector search (requires embeddings to be generated during index_repository).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindsNoFilter by symbol kinds: function, class, method, interface, variable, type, enum
limitNoMaximum results (default 20)
queryYesSearch query. Use semicolons for multi-query: "auth; JWT; token"
semanticNoUse hybrid BM25+vector search with RRF fusion. Only effective if embeddings were generated.
project_idYesProject ID
Behavior3/5

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

With no annotations, the description carries full behavioral burden. It reveals default mode and hybrid option conditions, but lacks details on return format, pagination, auth needs, or potential destructive impacts.

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 efficient sentences, front-loaded with the core action and purpose. Every word adds 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?

Given no output schema and five parameters, the description covers primary behavior and key parameter nuances. Missing return value details, but overall sufficient for agent usage.

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

Parameters4/5

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

Schema coverage is 100% across all parameters. The description adds valuable context beyond schema, such as multi-query hint with semicolons and the embedding requirement for semantic search, enhancing the agent's understanding.

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 tool searches over the symbol graph, specifying BM25 by default and an optional hybrid mode. This distinctly differentiates it from sibling tools like search_code and query_graph, which target different scopes.

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 explains when to use semantic search (hybrid BM25+vector) and the prerequisite for embeddings. However, it does not explicitly contrast with siblings like search_code or query_graph, leaving the agent to infer the appropriate context.

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/wladimania93/wlady-code-mcp'

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