Skip to main content
Glama
Kirachon

Context Engine MCP Server

by Kirachon

Symbol Definition

symbol_definition
Read-onlyIdempotent

Locate the canonical declaration of any identifier. Returns the exact file, line, and code snippet for the single definitive declaration.

Instructions

Return the single best deterministic declaration site for a known identifier.

Use this tool when you need to:

  • Jump straight to the canonical declaration of a function, class, type, interface, or constant

  • Get one definitive answer (file, line, kind, snippet) rather than a ranked list

  • Complement symbol_search (ranked) and symbol_references (non-declaration usages)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesIdentifier whose declaration site you want to locate.
bypass_cacheNoWhen true, bypass caches for this call.
exclude_pathsNoOptional workspace-relative glob filters to exclude matching paths after include filtering.
include_pathsNoOptional workspace-relative glob filters to include matching paths only.
language_hintNoOptional language hint (currently advisory; reserved for future use).
workspacePathNoOptional workspace path. Defaults to the current workspace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNo
kindNo
lineNo
foundYes
scoreNo
columnNo
symbolYes
snippetNo
diagnosticsYes
schema_versionYes
Behavior4/5

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

Annotations already provide readOnlyHint and idempotentHint. The description adds behavioral context: the tool returns a single deterministic declaration site (file, line, kind, snippet), and mentions caching via the bypass_cache parameter. This covers the main behavioral traits without contradiction.

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 concise: a single introductory sentence followed by three bullet points. It front-loads the core purpose and uses structured bullets for clarity. No extraneous information.

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?

Given an output schema exists, the description adequately covers the tool's purpose, behavior, and use cases without requiring return value details. It mentions the output components (file, line, kind, snippet) and references sibling tools, providing sufficient context for an agent.

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%, so the baseline is 3. The description does not add significant new semantics beyond the schema descriptions for individual parameters. The overall context helps understand parameter usage (e.g., path filters), but no specific parameter details are enhanced.

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 explicitly states 'Return the single best deterministic declaration site for a known identifier.' It uses a specific verb ('Return') and resource ('declaration site'), and distinguishes from siblings by contrasting with symbol_search (ranked) and symbol_references (non-declaration usages).

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?

The description lists three bullet-pointed use cases, including 'Jump straight to the canonical declaration' and 'Get one definitive answer rather than a ranked list.' It also explicitly mentions complementing sibling tools symbol_search and symbol_references, providing clear when-to-use 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/Kirachon/context-engine'

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