Skip to main content
Glama

sync_index

Re-index only files changed since the last sync with git awareness, falling back to a full index when needed.

Instructions

Smart sync: only re-index files that changed since last sync (git-aware).
Falls back to full index if git is not available or no previous sync.
Uses per-codebase index at directory/.gogo/index.db.

Respects .gogoignore file if present, plus built-in defaults.

Args:
    directory: Path to directory to sync (index stored at directory/.gogo/index.db)
    extensions: Comma-separated file extensions to index (default: auto-detect all supported)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "directory": "<directory>"
    },
    "name": "sync_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryYes
extensionsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does a fair job: it discloses the incremental mechanism, the fallback path, the on-disk index location (directory/.gogo/index.db), and .gogoignore plus built-in defaults. It does not say whether the existing index is replaced or merged, nor anything about permissions, locked index files, or failure modes for a write-heavy operation.

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?

Front-loaded with the key differentiator (smart/incremental sync) followed by fallback, storage, and ignore behavior, then an Args block. The sentence fragments are efficient; a minor amount of restatement of the index path appears in both the body and the Args section.

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?

An output schema exists, so return values need not be described, and the description covers the non-obvious behavior an agent needs (incremental vs. full, ignore rules, index location). It leaves gaps only around mutation semantics of an existing index and error conditions, which are secondary for a sync call.

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 description coverage is 0%, so the description must compensate, and it does partially: it explains directory semantics (index stored under it) and that extensions is a comma-separated list with auto-detect default. It omits format examples for extensions and how auto-detection decides supported types, and the stated default ('auto-detect') differs in form from the schema default of empty string.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: re-index only files that changed, git-aware, with a named fallback to full index. An agent can distinguish it from index_directory because the incremental vs. full distinction is explicit, though the sibling is not named outright.

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?

Gives clear context: use for incremental sync since last run, and explains the internal fallback when git is unavailable or no prior sync exists. It does not explicitly tell the agent when to prefer index_directory or clear_index instead, so the routing is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.