Skip to main content
Glama

list_table_structure

Show columns of a PerfettoSQL table or view with name, type, nullability, and primary-key flag. Useful for debugging queries after schema errors.

Instructions

Show the columns of a table or view: name, type, nullability, primary-key flag.

Use when: writing or debugging a query — call this immediately after a no such column error to inspect the actual schema rather than guessing. Both stdlib views and base tables have fixed schemas; don't infer columns by analogy across them.

Don't use for: this is a separate MCP tool, not a SQL function — don't write SELECT * FROM list_table_structure inside execute_sql.

Parameters: table_name (string) — the exact table or view name as it appears in list_tables output. Case-sensitive; does not accept GLOB patterns or partial matches. Also accepts the alias name (v0.11.3+).

Errors when: the table doesn't exist or has no columns. Call list_tables first if uncertain about the name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
table_nameYesName of the table to describe. Also accepted as `name` for callers who model schema discovery around a generic "name" field.
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses error behavior (table doesn't exist or has no columns), case-sensitivity, and that it does not accept GLOB patterns. It does not explicitly state read-only nature, but that is implied. Overall good transparency.

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-organized with clear sections: purpose, usage guidelines, parameter details, error handling. Every sentence adds value, though slightly verbose. Front-loaded main purpose.

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?

No output schema, but description specifies returned columns (name, type, nullability, primary-key flag). Covers error conditions and prerequisites. For a simple single-parameter tool, this is complete.

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

Parameters5/5

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

Schema coverage is 100% for the single parameter. The description adds meaning: explains that it accepts alias 'name' (v0.11.3+), is case-sensitive, requires exact match, and should match list_tables output. This goes well beyond the schema description.

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 states 'Show the columns of a table or view: name, type, nullability, primary-key flag.' This is a specific verb and resource, clearly distinguishing it from sibling tools like list_tables (lists tables) and execute_sql (runs queries).

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 provides when to use ('writing or debugging a query — call this immediately after a `no such column` error') and when not to use ('don't write SELECT * FROM list_table_structure inside execute_sql'). Also advises to call list_tables first if uncertain about the table name.

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/tooluse-labs/perfetto-mcp-rs'

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