Skip to main content
Glama

update_source_index

Idempotent

Re-check every file in a source and re-index changed content, recrawling webdoc sources, to refresh search after big merges, edits while offline, or drift warnings.

Instructions

Re-check every file of a source and re-index what changed (a webdoc source is crawled again). Blocking; the watcher keeps codebase sources current, so use it after a big merge, edits made while Lynx was not running, or a drift warning.

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": {
      "source": "<source>"
    },
    "name": "update_source_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoRebuild even without new git commits.
sourceYesSource to rebuild.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.9.0
    • changedInput schema / properties / force / description
      Previous value: -"If true, rebuild even when no new git commits are detected."New value: +"Rebuild even without new git commits."
    • removedInput schema / properties / force / title
      Removed value: -"Force"
    • changedInput schema / properties / source / description
      Previous value: -"Name of the source to rebuild (see `list_sources`)."New value: +"Source to rebuild."
    • removedInput schema / properties / source / title
      Removed value: -"Source"
    • removedInput schema / title
      Removed value: -"update_source_indexArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "update_source_indexOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv1.5.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations cover the safety profile (non-readOnly, idempotent, non-destructive, open-world), and the description adds the genuinely important fact that the call is blocking and that webdoc sources trigger a re-crawl. It stops short of any indication of duration, cost, or what the blocking call returns.

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 sentences, no filler: purpose and scope first, then blocking behavior, then the usage triggers. Every clause carries information the agent needs.

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?

For a two-parameter source-maintenance tool with full schema coverage and annotations, the description covers purpose, blocking behavior, and when to invoke it. The one gap is that there is no output schema and the description says nothing about what a blocking re-index returns or reports, which an agent planning a long call would want.

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%, so both parameters are already documented, and the description's 're-index what changed' usefully frames the default incremental behavior that the 'force' flag overrides. It does not directly reference the force parameter, but it supplies the contrast needed to interpret it.

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?

States a concrete verb and resource ('re-check every file of a source and re-index what changed') plus a scope qualifier for webdoc sources being re-crawled. An agent can immediately tell this is a full-source re-index, not a per-file or search operation like the sibling tools.

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?

Explicitly says the watcher normally keeps codebase sources current, which is an implicit when-not, and then gives three concrete triggers: after a big merge, edits made while Lynx was not running, or a drift warning. The alternative mechanism is named so the agent knows when this tool is redundant.

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