Skip to main content
Glama

index_folder

Idempotent

Index a project folder so list_projects lists every project inside without opening each one; set remove to stop indexing while keeping its files.

Instructions

Index a folder this person keeps projects in (a synced drive, a shared disk), so list_projects lists every project in it without opening each; remove=true stops indexing it (its files stay). Kept in the MOGA home, not in a project; indexing a folder twice changes nothing. Returns the indexed folders.

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": {
      "dir": "<dir>"
    },
    "name": "index_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirYesAbsolute path of the folder
removeNoStop indexing dir instead

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.2
    • addedInput schema / properties / dir / description
      Added value: +"Absolute path of the folder"
    • addedInput schema / properties / remove / description
      Added value: +"Stop indexing dir instead"
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Adds real context beyond the annotations: the index entry is kept in the MOGA home rather than in a project, re-indexing is a no-op, and removal stops indexing while leaving files intact (reinforcing destructiveHint=false with a concrete consequence). It returns the indexed folders, covering the missing output schema. Auth or error behavior for bad paths is not disclosed.

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 action and its payoff, and every clause (persistence location, idempotency, file retention, return value) carries information. It is one dense sentence-chain, which costs a little readability but almost no words are wasted.

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 mutating tool with annotations covering safety, the description covers purpose, effect on sibling tools, persistence location, idempotency, removal semantics, and return value. Only failure modes (invalid or inaccessible path) and permission requirements are unaddressed.

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 baseline is 3, but the description adds meaning: 'dir' is specifically a folder that contains projects, and remove=true means stop indexing while 'its files stay' — a consequence the schema's 'Stop indexing dir instead' does not convey. That is genuine semantic lift over 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?

States a specific verb+resource ('index a folder this person keeps projects in') and, crucially, the downstream effect: list_projects will then list every project in it without opening each. That distinguishes it from the read-only sibling list_projects and from folder-mutation siblings like remove_folder.

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 conditions for use (a synced drive or shared disk holding projects) and explicitly covers the inverse case via remove=true, noting its files stay. It does not spell out when NOT to index (e.g. a project already indexed, or a non-project folder), so it falls short of a full when/when-not/alternative treatment.

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

Deploy Server

Other Tools