Skip to main content
Glama
igorolv

jdbc-mcp-server

schemaGraph

schemaGraph
Read-onlyIdempotent

Analyze database schema relationships to reveal central or isolated tables, components, and cycle hints. Optionally compute the shortest path between two tables.

Instructions

Analyze schema-wide relationship topology: graph nodes/edges, central or isolated tables, components, cycle hints and an optional shortest path. Use findJoinPaths when only paths between two known tables are needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaNo
toTableNoOptional shortest-path target.
maxDepthNoShortest-path hops (default 4).
fromTableNoOptional shortest-path start.
maxTablesNoTables to scan (default 50).
connectionYesDatabase to run against. Call listConnections for valid names; do not guess.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
edgesNoRelationship edges included in the graph response.
nodesNoTable nodes included in the schema graph response.
cyclesNoPossible relationship or lineage cycles found during traversal.
schemaNo
edgeCountYesTotal number of relationship edges in the graph response.
nodeCountYesNumber of table nodes in the schema graph.
shortestPathNo
centralTablesNoHighest-degree tables that are likely hubs in the schema.
tablesScannedYesNumber of tables inspected by the tool before caps were applied.
isolatedTablesNoTables with no visible relationships in the scanned schema graph.
declaredEdgeCountYesNumber of graph edges backed by declared foreign keys.
connectedComponentsNoConnected components discovered in the schema relationship graph.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true, and destructiveHint=false, so the read-only safety profile is fully covered. The description adds functional output details but not extra constraints or caveats such as scan limits affecting 'schema-wide' results; that context is only available in the maxTables parameter. No contradiction with 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 with no filler. The core purpose is front-loaded and the sibling routing is placed at the end. Every sentence contributes meaningful information.

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 tool with an output schema, read-only annotations, and a clear sibling alternative, this is nearly complete. Minor gaps remain: the description doesn't clarify that the shortest-path inputs likely need both fromTable and toTable, and 'schema-wide' may be misleading given maxTables defaults to 50, though the parameter schema documents that.

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 high (83%), so the schema carries most parameter meaning. The tool description adds a little by linking 'optional shortest path' to the fromTable/toTable parameters, but it does not clarify relationships between parameters (e.g., whether both from and to are needed for a path) or the meaning of the undocumented 'schema' parameter.

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 states a specific verb ('Analyze') and resource ('schema-wide relationship topology'), and enumerates concrete outputs: graph nodes/edges, central or isolated tables, components, cycle hints, and optional shortest path. It also explicitly differentiates itself from findJoinPaths, so an agent can tell them apart.

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 description gives an explicit alternative: 'Use findJoinPaths when only paths between two known tables are needed.' This clearly tells the agent when to prefer a sibling tool over schemaGraph, which is strong usage guidance.

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