Skip to main content
Glama
DataPilot MCP

DataPilot MCP

Refresh schema

refresh_schema
Destructive

Re-discover a database connection's schema after tables, views, or columns change, replacing cached schema and generated tools and returning updated overview counts.

Instructions

Re-discover the schema for an open connection after tables, views or columns change. Replaces that connection's cached schema and generated tools, then returns the new overview and generated-tool counts. Use get_database_overview to read the current cache.

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": "refresh_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
aliasNoAlias from list_connections. Omit only when exactly one database is open.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • addedInput schema / properties / alias / description
      Added value: +"Alias from list_connections. Omit only when exactly one database is open."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

The annotations mark this as destructive, and the description concretely explains what is destroyed: 'Replaces that connection's cached schema and generated tools'. It also discloses what comes back (new overview and generated-tool counts), so the agent understands both side effects and response shape beyond the flags.

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?

Three sentences, front-loaded with the action and its trigger, followed by side effects and then alternative routing. Nothing is redundant and every sentence carries distinct 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?

For a single-optional-parameter mutation with annotations and an output schema, the description covers purpose, trigger, cached-state destruction, return summary, and the read-only alternative. Nothing an agent needs to invoke 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?

Schema coverage is 100% and the alias parameter already carries a clear description including the omit-when-single-database rule, so the schema does the heavy lifting. The description adds no alias-specific meaning, which is the expected baseline when coverage is complete.

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?

The description uses a specific verb and resource ('Re-discover the schema') scoped to 'an open connection', and explicitly separates itself from get_database_overview, which reads the cache rather than rebuilding it. An agent can distinguish this from siblings like describe_table or list_tables without opening any schema.

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?

The trigger condition is explicit: use it 'after tables, views or columns change', and it routes the agent to get_database_overview for the read-only case. It does not state an explicit when-not or prerequisite (e.g., connection must be live), but the context is otherwise clear.

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