Skip to main content
Glama

get_table_schema

Retrieve full column-level schema for named tables or collections—types, nullability, keys, indexes, and billing mode—to write precise queries.

Instructions

Returns the full schema for specific tables or collections by name: columns with data types and nullability, primary keys, foreign keys (join paths), indexes, DynamoDB partition/sort keys and billing mode, and MongoDB estimated document counts. Accepts short names ("orders" matches "public.orders") and is case-insensitive. Call this after get_infra_overview when you need column-level detail to write a SQL query, DynamoDB expression, or MongoDB filter for specific tables — instead of pulling every schema with get_graph_summary. Do NOT call for a table inventory; use get_infra_overview for that. Row data is never included. DynamoDB matches include a costSignal note for provisioned-capacity tables.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tablesYesTable or collection names to fetch schemas for
maxAgeSecondsNoFreshness tolerance in seconds. Advisory: the answer is returned either way, with dataHealth.withinRequestedAge reporting whether it met the tolerance. Nothing re-reads AWS on a tool call — run `infrawise analyze` to refresh. Pass a small value for point-in-time questions ("does this queue have a DLQ right now"); omit it for architecture questions where a day-old snapshot is fine.
Behavior4/5

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

With no annotations, the description carries the transparency burden. It discloses important behavioral traits: short-name matching and case-insensitivity, 'Row data is never included,' and the DynamoDB costSignal note. The word 'Returns' plus the explicit exclusion of row data strongly implies a read-only operation. However, it does not explicitly state the snapshot/staleness behavior (which appears only in the schema's maxAgeSeconds description) or what happens when a table is not found. These minor omissions prevent a 5.

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?

The description is concisely written and front-loaded: the first sentence states the core purpose and contents, followed by naming behavior, usage guidance, exclusions, and a final note. Four sentences cover everything without redundancy or filler. Each sentence earns its place.

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 tool with no output schema and moderate complexity, the description is remarkably complete. It covers what the return value includes (columns, keys, indexes, DynamoDB billing mode, estimated counts), the naming behavior, usage context, exclusions (no row data), and a system-specific detail (costSignal). The parameter schemas supply the remaining operational details, leaving no significant gaps for an agent to make a correct selection or invocation.

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?

The schema already describes both parameters (100% coverage), so the baseline is 3. The description adds meaning beyond the schema for `tables` by specifying 'Accepts short names ("orders" matches "public.orders") and is case-insensitive.' This is extra semantic value. It does not describe `maxAgeSeconds` in the main description, but the schema does, and the description's added naming behavior justifies a 4 rather than a 3.

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 clearly states the tool's function: 'Returns the full schema for specific tables or collections by name' and enumerates the included elements (columns, data types, nullability, primary keys, foreign keys, indexes, DynamoDB keys/billing mode, MongoDB counts). It also distinguishes from siblings via explicit comparisons: 'instead of pulling every schema with get_graph_summary' and 'Do NOT call for a table inventory; use get_infra_overview for that.'

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 explicit when-to-use guidance: 'Call this after get_infra_overview when you need column-level detail to write a SQL query, DynamoDB expression, or MongoDB filter for specific tables.' It also clearly states when not to use it and the alternative: 'Do NOT call for a table inventory; use get_infra_overview for that.' It even points to an alternative for broader schemas: 'instead of pulling every schema with get_graph_summary.'

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sidd27/infrawise'

If you have feedback or need assistance with the MCP directory API, please join our Discord server