Skip to main content
Glama

Get a public table's schema

get_table_schema
Read-onlyIdempotent

Pass optional columns (up to 20 known names) for their published meanings and value encodings on a wide table. One public table's columns (name, type, and any published profile such as null counts, distinct counts or ranges), its immutable version_id, and its capabilities: whether anonymous sampling, keyed querying and Parquet download are enabled, and capabilities.search when the table has row search: spec_digest, keyword_columns and state. state is ready (search_table answers now), preparing (a package is being built, and search may still answer, so try it) or unavailable (no package and no build). spec_digest is present only when query_table's search member accepts it. No capabilities.search means no row search. A table with capabilities.search and current_parquet true can be searched with search_table, with no key. Private workspace tables are not available here: use query_run for sealed output evidence and compare it with the approved recipe document already in the conversation. If that document is unavailable, report the limitation; do not invent a schema or publish a dataset to inspect it. Example: {"table_id": "0f2f6bfa-4a63-4f75-9a0b-1a7d9c5b2e10"}. Read this before writing a query_table call: the column names it lists are the only ones the query grammar accepts.

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": {
      "table_id": "<table_id>"
    },
    "name": "get_table_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
columnsNo
table_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / columns
      Added value: +{
      +  "items": {
      +    "maxLength": 128,
      +    "minLength": 1,
      +    "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "minItems": 1,
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations cover only read-only/idempotent/non-destructive, while the description adds the real behavioral detail: private workspace tables are out of scope, version_id is immutable, capabilities.search states mean ready/preparing/unavailable with the instruction to still try preparing, and spec_digest is only present when query_table's search member accepts it. It also prohibits workarounds ('do not invent a schema or publish a dataset to inspect it'), which is exactly the kind of constraint annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single dense paragraph with deeply nested clauses (state semantics, spec_digest, parquet/search interaction), which makes it slow to scan and hard to retrieve a specific rule from. Nothing is plainly redundant, but splitting the exclusions and the search-state legend into separate sentences would preserve the content and improve front-loading.

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 two-parameter read tool with no output schema, the description fully covers the return shape (columns, version_id, capability flags, capabilities.search substructure), the scope boundary (public tables only), and the downstream dependency on query_table's grammar. An agent has everything needed to call it correctly and to interpret the response without further documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the load, and it does: 'columns' is explained as up to 20 known names that yield published meanings and value encodings on a wide table, and table_id is illustrated with a concrete UUID example. It stops short of stating what happens when a requested column name is unknown or what the default (omitted columns) response contains.

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?

The description states the resource precisely — 'One public table's columns (name, type, and any published profile...), its immutable version_id, and its capabilities' — which is unambiguous and clearly distinct from query_table and search_table. It loses the top mark because it opens with a parameter instruction ('Pass optional columns...') rather than a verb-led statement of what the tool returns, so the purpose has to be assembled from a noun list.

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?

It gives explicit when-to-use guidance ('Read this before writing a query_table call'), an explicit exclusion with a named alternative ('Private workspace tables are not available here: use query_run for sealed output evidence'), and a fallback behavior when that alternative's evidence is missing ('report the limitation; do not invent a schema'). It also tells when to escalate to search_table via capabilities.search and current_parquet.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources