Skip to main content
Glama
weijie-tan3

Trino MCP Server

by weijie-tan3

get_table_stats

Retrieve statistics for a specified table in a Trino cluster, using optional catalog and schema parameters to locate the table.

Instructions

Get statistics for a table.

Args: table: The table name (e.g. 'my_table'). Preferably just the table name; catalog and schema should be passed as separate parameters. Fully qualified names like 'catalog.schema.table' are also accepted. catalog: The catalog name (optional if default is configured) schema: The schema name (optional if default is configured)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYesThe table name (e.g. 'my_table'). Preferably just the table name; catalog and schema should be passed as separate parameters. Fully qualified names like 'catalog.schema.table' are also accepted for convenience.
schemaNoThe schema name (e.g. 'my_schema')
catalogNoThe catalog name (e.g. 'my_catalog')

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It only restates parameter usage and does not disclose what statistics are returned, potential performance costs, permission requirements, or any other behavioral traits. The description adds no transparency beyond the schema.

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?

The description is short and front-loaded with the main purpose, followed by a structured parameter list. However, the parameter descriptions largely duplicate the schema, so some content is redundant and not earning its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple stats retrieval tool with an output schema, the description is minimally adequate. It covers the required parameters and basic usage, but lacks guidance on when to use this tool vs alternatives and any transparency about behavior. Given the tool's simplicity, this is a moderate but acceptable level of completeness.

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 the baseline is 3. The description essentially repeats the schema descriptions without adding new meaning. It includes some guidance about fully qualified names and separate catalog/schema, but this is already present in the schema parameter description.

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 clearly states the tool retrieves statistics for a table, naming the specific verb and resource. However, it does not explicitly differentiate itself from sibling tools like describe_table or show_create_table, though 'statistics' implies a distinct purpose.

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 description provides guidance on how to pass parameters (prefer separate catalog/schema, fully qualified names accepted), which is a form of usage context. However, it does not explicitly state when to use this tool over alternatives like describe_table or when not to use it.

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/weijie-tan3/trino-mcp'

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