Skip to main content
Glama

tier_sync

Incrementally refresh a repo.tier from disk, re-parse changed files, remove deleted modules, and invalidate affected cache sections; use rehash to compare content hashes.

Instructions

Incrementally refresh a repo.tier from disk: re-parse only changed or added files, remove deleted modules, and invalidate changed sections and L3 slices in the session cache. Set rehash=true to compare content hashes instead of trusting recorded mtime+size.

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": {
      "path": "<path>"
    },
    "name": "tier_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
rehashNoignore the mtime+size fast path and compare content hashes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

B3.4/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 burden. It does disclose real behavior beyond the name: it removes modules for deleted files and invalidates sections/L3 slices in the session cache. It does not cover return value, cost on large repos, permissions, or whether removed/derived state is recoverable.

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?

Two dense sentences with the core action front-loaded and the destructive-ish effects listed before the optional-parameter note. No filler, though the colon-separated clause list is slightly packed for one read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 2-parameter mutation tool with no annotations and no output schema, the description explains side effects well but leaves the return value, error behavior, and the meaning of `path` (repo root? tier file path?) to inference.

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 50%; `rehash` is already documented in the schema and the description mainly restates it while adding the useful rationale that it bypasses the mtime+size fast path. The required `path` parameter gets no clarification beyond 'from disk', so half the parameters remain underspecified.

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?

Names a specific verb+resource (incrementally refresh a repo.tier from disk) and spells out the incremental mechanics: only changed/added files re-parsed, deleted modules removed, cache slices invalidated. It is clearly distinct from a full index or ingest, though it never names a sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The word 'incrementally' plus 'from disk' implies the use case (files changed since last build), but there is no explicit when-to-use, when-not, or statement of which sibling to call instead of this one for a cold build.

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