Skip to main content
Glama
Kole MCP Server

Kole MCP Server

Official
by SyneHQ

get_table_schema

Retrieve detailed schema information for a specific table, including column names, data types, constraints, and indexes, to understand its structure before querying or analyzing data.

Instructions

Get detailed schema information for a specific table, including column names, data types, constraints, and indexes. Essential for understanding table structure.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "database": "<database>",
      "schema": "<schema>",
      "table": "<table>"
    },
    "name": "get_table_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesTable name
schemaYesSchema name
databaseYesDatabase name
connectionIdNoConnection ID. If not provided, uses SYNEHQ_CONNECTION_ID environment variable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.10

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it discloses almost nothing behavioral: no mention that it reads against a live connection, no failure modes for a missing table/schema/database, no permission requirements, and no indication of cost or latency. The only behavioral hint is the connectionId fallback, which lives in the schema rather than the description.

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?

Two sentences, front-loaded with what the tool returns and followed by a short relevance cue. The second sentence is somewhat filler-like but small enough not to be wasteful.

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 simple read tool with no output schema, enumerating the returned fields (names, types, constraints, indexes) is exactly what the agent needs to decide it is the right call. The remaining gap is behavioral context on failures and live-connection semantics rather than scope.

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 including the connectionId environment-variable fallback are already documented in structured data. The description adds no parameter-level meaning beyond what the schema provides, which is the baseline-3 case.

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?

Uses a specific verb ('Get') plus a clearly scoped resource ('schema information for a specific table') and enumerates the returned contents: column names, data types, constraints, indexes. This implicitly separates it from the sibling get_tables (which lists tables) and execute_query, though it never names an alternative explicitly.

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?

The clause 'Essential for understanding table structure' hints at when to reach for this tool, but there is no explicit when-to-use versus when-not guidance and no routing to siblings such as get_tables or execute_query. Usage must be inferred from the tool's purpose.

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