Skip to main content
Glama

te_get_table_columns

Retrieves column definitions for a specific SQL table in ThinkingEngine, so you can inspect schema fields and build accurate queries.

Instructions

Get column definitions for a specific SQL table

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": {
      "projectId": "<projectId>",
      "table": "<table>"
    },
    "name": "te_get_table_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNoTE system host (e.g. ta.thinkingdata.cn). Defaults to TE_HOST env var.
tableYesTable name, e.g. v_event_1300
schemaNoSchema name, default: tata
catalogNoCatalog name, default: hivehive
projectIdYesProject ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

C2.9/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 disclosure burden, and it does very little: "Get" implies a read, but it never states read-only safety, permission/auth requirements, or failure behavior for a nonexistent table. It also does not say what a "column definition" contains (name, type, comment, nullability) or how results are shaped.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though the terseness leaves no room for any qualifying detail.

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

Completeness2/5

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

For a metadata tool with five parameters (catalog, schema, host, projectId, table) and no output schema, the description should indicate what is returned and how catalog/schema scoping affects the lookup. None of that is covered, so an agent must infer the return shape and the multi-tenant resolution rules entirely from the input schema.

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 schema already documents all five parameters including the catalog/schema defaults and host fallback. The description adds no syntax or format meaning beyond restating that a table is targeted, which is the correct baseline given full schema coverage.

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 gives a specific verb ("Get") plus resource ("column definitions") and a clear scope ("a specific SQL table"), so an agent can tell it retrieves schema metadata rather than table listings (te_list_tables) or query results (te_query_sql). It stops short of naming a sibling to differentiate itself from, keeping it at 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as te_list_tables (to discover table names) or te_query_sql (to consume the columns). The link to a table is implied by the word "table" but no workflow context is provided.

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