Skip to main content
Glama

Rebuild the tool search index

discover_refresh_index
Read-onlyIdempotent

Rebuilds the in-memory tool search index to include tools mounted or changed at runtime. Use when new tools are added after initial startup.

Instructions

Force-rebuild the in-memory tool search index.

Drops the cached index and rebuilds it from _ROOT.list_tools(). Only nexus's own in-process cache is affected — nothing in HA changes.

Use when: tools were mounted or changed at runtime after the index was first built (normally only relevant during development, since server.py mounts every namespace once at startup). Not for: routine searches — discover_tool_search/ discover_list_namespaces/discover_get_tool_doc already rebuild the index lazily on first use. Returns: {"status": "rebuilt", "tools": <count>}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.1

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description nonetheless adds valuable scope context: it drops the in-memory cache, rebuilds from _ROOT.list_tools(), and affects only nexus's in-process cache with no HA change.

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 core action, then labeled 'Use when', 'Not for', and 'Returns' blocks. Every sentence earns its place and the most important constraint (dev-only, no HA impact) is prominent.

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

Completeness5/5

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

Given zero params and the presence of an output schema, the description need not explain return values, yet it still does so harmlessly. Safety, scope, trigger conditions, and alternatives are all covered; nothing an agent needs is missing.

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?

The tool takes zero parameters, so parameter semantics carry no burden; baseline for 0 params is 4. Nothing in the description needs to compensate for schema gaps.

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?

Specific verb (force-rebuild) plus specific resource (in-memory tool search index), and it explicitly distinguishes itself from the discover_* siblings that rebuild lazily. An agent can tell exactly what this does and how it differs from the search 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?

Explicit 'Use when' (tools mounted/changed at runtime after index was built, normally dev-only) and 'Not for' clause that names the three alternative tools and explains they already rebuild lazily. Both the trigger and the anti-trigger are stated.

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