Skip to main content
Glama
DeepakJangra239

Knowledge Graph MCP Server

search_code

Search your indexed codebase for code snippets using semantic queries. Filter by file extension and adjust result count for precise retrieval.

Instructions

Performs a semantic search for code snippets relevant to the query. Note: Requires a project to be indexed first with reindex_codebase.

Parameters:

  • query: Search query

  • limit: Maximum results (default 5)

  • file_type: Optional file extension filter (e.g., "py", "java", "ts")

  • verbose: If True, include technical details like vectors and distances (default False)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYes
verboseNo
file_typeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so description carries full burden. It describes the search as 'semantic' and parameter effects (verbose includes technical details), but does not disclose potential side effects, read-only nature, or output structure. Adequate but not comprehensive.

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 short paragraphs: first states purpose, second lists parameters with brief explanations. No unnecessary words, well-structured and front-loaded.

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 complexity and presence of output schema, description covers prerequisites, parameters thoroughly. Lacks details about return format but output schema addresses that. Slightly incomplete in describing search algorithm, but sufficient for selection and invocation.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates by explaining each parameter's purpose and behavior (e.g., 'verbose: If True, include technical details like vectors and distances'). This adds significant value beyond the schema.

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?

Description states it performs a semantic search for code snippets, with clear verb and resource. It distinguishes from siblings by noting a prerequisite (reindex_codebase) and contrasting with other code analysis tools in the sibling list.

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?

Explicitly states prerequisite of reindex_codebase, giving clear context for when to use. Does not explicitly mention when not to use or alternatives, but the sibling list provides implicit differentiation.

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/DeepakJangra239/kgraph'

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