Skip to main content
Glama
Kirachon

Context Engine MCP Server

by Kirachon

index_workspace

Scans source files to build a semantic index for fast, meaning-based code search within the workspace.

Instructions

Index the current workspace for semantic search.

This tool scans all source files in the workspace and builds a semantic index that enables fast, meaning-based code search.

When to use this tool:

  • First time using the context engine with a new project

  • After making significant changes to the codebase

  • When semantic_search or enhance_prompt returns no results

What gets indexed (50+ file types):

  • TypeScript/JavaScript (.ts, .tsx, .js, .jsx, .mjs, .cjs)

  • Python (.py, .pyi)

  • Flutter/Dart (.dart, .arb)

  • Go (.go)

  • Rust (.rs)

  • Java/Kotlin/Scala (.java, .kt, .kts, .scala)

  • C/C++ (.c, .cpp, .h, .hpp)

  • .NET (.cs, .fs)

  • Swift/Objective-C (.swift, .m)

  • Web (.vue, .svelte, .astro, .html, .css, .scss)

  • Config (.json, .yaml, .yml, .toml, .xml, .plist, .gradle)

  • API schemas (.graphql, .proto)

  • Shell scripts (.sh, .bash, .ps1)

  • DevOps (Dockerfile, .tf, Makefile, Jenkinsfile)

  • Documentation (.md, .txt)

What is excluded (optimized for AI context):

  • Generated code (*.g.dart, *.freezed.dart, .pb.)

  • Dependencies (node_modules, vendor, Pods, .pub-cache)

  • Build outputs (dist, build, .dart_tool, .next)

  • Lock files (package-lock.json, pubspec.lock, yarn.lock)

  • Binary files (images, fonts, media, archives)

  • Files over 1MB (typically generated or data files)

  • Secrets (.env, *.key, *.pem)

The index is saved to .augment-context-state.json in the workspace root and will be automatically restored on future server starts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoForce re-indexing even if an index already exists (default: false)
backgroundNoRun indexing in a background worker thread (non-blocking)
Behavior5/5

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

With no annotations provided, the description carries full burden and delivers comprehensive behavioral disclosure. It details what gets indexed (50+ file types with examples), what's excluded (generated code, dependencies, etc.), where the index is saved (.augment-context-state.json), persistence behavior (automatically restored), and operational characteristics (background option, force re-indexing).

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?

The description is well-structured with clear sections (purpose, usage guidelines, inclusions, exclusions, storage details) and uses bullet points effectively. While comprehensive, some sentences in the exclusion list could be more concise, but overall it's appropriately sized and front-loaded with essential 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?

For a tool with 2 parameters, 100% schema coverage, and no output schema, the description provides complete context. It covers purpose, usage scenarios, behavioral details (indexing scope, exclusions, storage, persistence), and parameter implications, leaving no significant gaps for agent understanding.

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 description coverage is 100%, so the baseline is 3. The description adds value by implicitly explaining the 'force' parameter context (re-indexing when index exists) and explicitly mentioning the 'background' option's effect ('non-blocking'), though it doesn't provide additional syntax or format details 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?

The description clearly states the tool's purpose with specific verbs ('scans all source files', 'builds a semantic index') and resource ('workspace'), distinguishing it from siblings like 'semantic_search' (which uses the index) and 'clear_index' (which removes it). It explicitly defines what indexing means in this context.

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 includes an explicit 'When to use this tool' section with three specific scenarios (first-time use, after significant changes, when search returns no results), providing clear guidance on when to invoke it versus relying on existing index or other tools like 'semantic_search'.

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