Skip to main content
Glama
igorolv

jdbc-mcp-server

tableContext

tableContext
Read-onlyIdempotent

Explore the relationship neighborhood of a known table: retrieve nearby table metadata with declared foreign keys and observed join edges, helping identify relevant joins.

Instructions

Explore the relationship neighborhood of one known table: compact root/nearby table metadata plus declared FK and optional observed join edges. Use when nearby joins are needed; for only the table's own fields or structure, use describeTable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthNoFK depth (default 1).
tableYes
schemaNo
connectionYesDatabase to run against. Call listConnections for valid names; do not guess.
includeStatsNoInclude row/size/activity stats (default false).
includeIncomingNoInclude child references (default true).
includeObservedNoInclude declared/observed/semantic usage evidence (default: catalog enabled).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthYesRelationship expansion depth from the root object.
tablesNoTables included in this context, graph, query inspection, or usage record.
rootTableNoRoot table requested for table context.
rootSchemaNoSchema of the root table requested for table context.
includeStatsYesTrue when live table statistics were requested for context tables.
relationshipsNoRelationship edges relevant to the context, graph, or observed-relationships result.
includeIncomingYesTrue when tables that reference the root table were included.
includeObservedYesTrue when usage-catalog observed joins were included as relationship evidence.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, idempotent, and non-destructive behavior, so the description does not need to repeat that. It adds context beyond annotations by specifying that output is 'compact root/nearby table metadata' with 'declared FK and optional observed join edges,' which conveys scope and non-exhaustiveness.

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 behavior is front-loaded before the usage guidance. Every clause earns its place by conveying scope, output content, and when to prefer a sibling tool.

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?

Given the read-only annotations, the output schema, and schema-covered parameters, the description provides enough to invoke the tool correctly. It could be slightly more complete by noting default depth or the connection requirement, but those are already covered in the input schema.

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 71%, and most parameters (depth, connection, includeStats, includeIncoming, includeObserved) already have descriptions in the schema. The description adds high-level context like 'declared FK and optional observed join edges' that maps to includeObserved, but it does not explain individual parameters, so it mostly relies on the schema.

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 opens with a specific verb and resource: 'Explore the relationship neighborhood of one known table' and names the concrete outputs ('declared FK and optional observed join edges'). It explicitly distinguishes itself from describeTable ('for only the table's own fields or structure'), so an agent can tell siblings apart without inspecting schemas.

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 a clear selection rule: 'Use when nearby joins are needed' and states the alternative for a different need ('for only the table's own fields or structure, use describeTable'). This tells the agent both when to invoke this tool and when not to, with a named fallback.

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