Skip to main content
Glama
igorolv

jdbc-mcp-server

invalidateUsageCatalogCache

invalidateUsageCatalogCache
Read-onlyIdempotent

Force rebuild of the server-local usage index after its sources change. Clears only the runtime index; the next lookup refreshes it synchronously without modifying database data.

Instructions

Force the server-local usage index to be rebuilt after its configured sources change. Invalidates only the runtime/local index; the next usage lookup rebuilds it synchronously and no inspected database data is modified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connectionYesDatabase to run against. Call listConnections for valid names; do not guess.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateNoCurrent usage-catalog index state, such as not_started, indexing, ready, or failed.
sourcesNoConfigured usage-catalog source paths and database-native sources considered for indexing.
indexingYesTrue while the usage catalog index is being built.
connectionNoName of the connection this catalog belongs to.
catalogEnabledYesFalse when the usage catalog is disabled; true when indexing and lookups are allowed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false; the description reinforces this with 'no inspected database data is modified' and adds specifics about synchronous rebuild on next lookup, which is beyond the annotations.

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, front-loaded with purpose, no fluff. Every sentence contributes essential information.

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?

With one parameter, an output schema present, and annotations covering safety, the description fully covers purpose, trigger, scope, and behavior. Nothing an agent needs to call it correctly is missing.

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?

The schema description already fully documents the single parameter at 100% coverage ('Call listConnections for valid names; do not guess'). The tool description adds no additional parameter context, so baseline 3 applies.

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 ('Force the server-local usage index to be rebuilt') and distinguishes the scope ('runtime/local index' only). Clearly differentiates from a full rebuild by noting it invalidates and rebuilds on next lookup.

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?

Provides a clear trigger ('after its configured sources change') and clarifies that it only affects the runtime/local index, implying when to use it over a full rebuild. However, it does not explicitly name alternative tools like rebuildCatalog.

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