Skip to main content
Glama
MCP Database Server

MCP Database Server

by RifkyR3

db_sync_databases

Sync DB lists from one or all main connection hosts into connections.json by discovering databases and updating sub-connections, optionally removing missing entries or including system databases.

Instructions

Crawl database list from one or all main connection hosts and automatically update sub-connections in connections.json

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

Input Schema

NameRequiredDescriptionDefault
mainIdNoSpecific main connection ID to crawl (e.g. "postgres" or "mysql56"). If omitted or "all", crawls all main connections
persistToFileNoWhether to save updated sub-connections directly into connections.json. Default true
removeMissingNoWhether to remove sub-connections that no longer exist on the server. Default false
includeSystemDatabasesNoWhether to include system databases (template0, information_schema, etc.). Default false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.4/5.0
Behavior3/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 it does disclose the key side effect: writing updated sub-connections into connections.json. It does not say what happens when persistToFile is false (dry-run or in-memory only), whether removal via removeMissing is irreversible, what occurs if a host is unreachable, or what the response contains. These are meaningful gaps for a tool that mutates a persistent config file.

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?

A single sentence with zero filler, front-loading the action and its outcome. It is efficient, though the phrasing "crawl database list" is slightly jargon-heavy compared with the plainer "discover" used by siblings.

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 4-parameter, no-annotation, no-output-schema config-mutating tool, the description should say more about the file-write semantics, especially the interaction of persistToFile=false with removeMissing. What is present is accurate and sufficient to attempt a call, but not to predict its full effect on the config file.

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 description coverage is 100%, so all four parameters are already documented, including defaults and the "all" sentinel for mainId. The description adds only the framing of crawling "one or all main connection hosts" and the connections.json target, which is baseline-level value when the schema already does the work.

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?

States a specific verb and resource: "Crawl database list from one or all main connection hosts and automatically update sub-connections in connections.json." The scope (one host vs. all) and the effect (rewriting sub-connections in a config file) are clear, but it does not distinguish itself from siblings such as db_discover_databases or db_list_connections, which an agent could plausibly confuse it with.

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?

Usage is only implied: refresh sub-connections after server-side database changes. There is no explicit when-to-use, no when-not-to-use, and no pointer to the alternative tools (db_discover_databases for read-only discovery, db_register_sub_connection for manual adds).

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