Skip to main content
Glama
Infinite Code Next

Infinite Code Next

by Kawai-Senpai

workspace

Opens and manages known repositories, indexing changes and returning a briefing on governing rules, rejected approaches, and unverified code so agents start investigations with verified context.

Instructions

Open, inspect, and manage repositories known to this server.

WHEN TO USE: first call of any session, and again whenever you switch repository. action='open' returns the briefing - the rules that govern this code, what has already been tried and rejected, and what is unverified. AFTER THIS: investigate() with the task and any known symbols or paths. Check index.index_state on open. A partial index can omit relevant files and symbols. Use source search for immediate answers or retry once ready.

Actions: open resolve this directory to a repository, index what changed, re-verify anchors. Call this first. status current identity, index and anchor health. list every repository known, including ones not on disk. reindex full re-index (force_full is implied). health graph health summary across all repositories. reconcile re-check which checkouts are still reachable. archive stop indexing, keep all knowledge searchable. detach stop watching, keep repository knowledge. forget_checkout this local clone is gone; repository knowledge stays. purge permanently delete stored data. Requires confirm=True.

Args: action: one of the actions above. root: repository path. Defaults to the server's working directory. force_full: re-index everything rather than only what changed. repo_id: target repository for archive/detach/purge. reason: recorded in the lifecycle log for state changes. confirm: required for purge, which is the only destructive action.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNo
actionNoopen
reasonNo
confirmNo
repo_idNo
force_fullNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and mostly succeeds: it flags purge as 'the only destructive action' requiring confirm=True, and explains what each lifecycle action preserves ('stop indexing, keep all knowledge searchable', 'keep repository knowledge', 'repository knowledge stays'). It also warns that 'a partial index can omit relevant files and symbols' and tells the agent to check index.index_state. Gaps remain around cost/blocking behavior of reindex and whether any action requires elevated permissions.

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?

Front-loaded with WHEN TO USE and AFTER THIS before the action catalog and args, which is the right order for a routing-style tool. The action list and args list are scannable and non-redundant, and no sentence is filler despite the length.

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 nine-action, six-parameter tool with zero annotations, the definition covers selection, ordering, lifecycle preservation semantics, and the destructiveness of purge. An output schema exists, so return values need not be described. Only minor omissions remain, such as the relative cost of a force_full reindex or whether 'open' blocks until indexing completes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the action parameter has no enum in the schema, so the description is doing all the work — and it does it: nine valid action values are enumerated, root's default is clarified as the server's working directory (beyond the schema's bare null), and force_full, repo_id, reason, and confirm each get a meaningful gloss. Every one of the six parameters is explained with semantics the schema alone does not convey.

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?

Opens with a specific verb set and resource ('Open, inspect, and manage repositories known to this server') and then enumerates nine distinct actions with one-line definitions, so the agent knows exactly what the tool covers. It explicitly distinguishes itself from siblings by naming investigate() as the follow-up tool, making the boundary between workspace and investigation unambiguous.

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 WHEN TO USE block is explicit: 'first call of any session, and again whenever you switch repository', plus a per-action call-order instruction ('Call this first' under open). It also states what to do afterwards ('investigate() with the task and any known symbols or paths') and gives a conditional branch for partial indexes. This is about as close to explicit when/when-not guidance as a multi-action tool can get.

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