Skip to main content
Glama

Seller Labs Amazon MCP

get_table_info

Get comprehensive information about a database table including schema, documentation, and usage examples.

This tool combines database schema (DESCRIBE) with context files documentation to give you everything needed to write queries against a table.

Returns:

  • Column names, types, and constraints

  • Business context and metric definitions from documentation

  • Common query patterns and examples

  • Tips about reserved keywords and gotchas

Use this BEFORE execute_sql when:

  • You need to understand what columns are available

  • You're unsure how to calculate a metric

  • You want to see example queries for a table

  • You need to know which columns to JOIN on

Example: "Get info about campaign_performance table" Returns schema + documentation about advertising metrics + example ACoS calculation

Common tables to explore:

  • fba_inventory: FBA stock levels and availability

  • sl_daily_sku_profit: SKU-level profitability metrics

  • campaign_performance: Advertising campaign data

  • product_ad_performance: Product-level ad metrics

  • order_items: Order line item details

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": {
      "tableName": "<tableName>"
    },
    "name": "get_table_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNameYesName of the table to get information about

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a good job: it explains that the tool merges DESCRIBE output with context-file documentation and gives a detailed 'Returns' breakdown (column types, constraints, business definitions, query patterns, reserved-keyword gotchas). It doesn't explicitly state read-only/non-mutating behavior or what happens for an unknown table name, which keeps it from 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.

Conciseness4/5

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

Well-structured and front-loaded: purpose, then Returns, then when-to-use, then a worked example. The 'Common tables to explore' list is somewhat long and partially redundant with the inline example, but each entry is a usable table name rather than filler.

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?

There is no output schema, so the description must describe the return payload, and it does so in detail. Combined with trigger conditions, a worked example, and a table catalog, an agent has everything needed to call it correctly for a one-parameter read tool.

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 coverage is 100% for the single tableName parameter, so baseline is 3. The description adds genuine value beyond the schema by listing concrete valid table names (fba_inventory, sl_daily_sku_profit, campaign_performance, etc.), which effectively serves as an example value set the schema does not provide.

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?

States a specific verb and resource ('Get comprehensive information about a database table') and enumerates exactly what the payload contains: schema, documentation, usage examples, and gotchas. An agent can distinguish this from execute_sql and from context-file tools without opening the schema.

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?

Explicitly says 'Use this BEFORE execute_sql when:' followed by four concrete trigger conditions (unknown columns, unsure metric calculation, need example queries, need JOIN keys). This is precisely the routing guidance an agent needs, and it names the sibling it precedes.

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