Skip to main content
Glama

preflight_table

preflight_table
Read-onlyIdempotent

Retrieve the complete preflight surface for a database table: columns, indexes, foreign keys, RLS policies, triggers, related routes, and zod schemas. Provides a snapshot-strict reference for understanding table structure and dependencies.

Instructions

Return the full preflight surface for a table: columns, primary key, indexes, foreign keys, RLS state + policies, triggers, related routes, and zod schemas whose surrounding file references the table. Snapshot-strict.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdNo
projectRefNo
tableYes
schemaNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYes
resultYes
toolNameYes
_hintsYes
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, covering safety. The description adds 'Snapshot-strict', indicating a point-in-time snapshot, but does not disclose further behavioral traits like response size or error conditions. With annotations present, the description adds some value but remains limited.

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 a single, dense sentence that conveys a lot of information without verbosity. However, it lacks front-loading of key purpose (e.g., 'Returns preflight data') and could be restructured for faster scanning.

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

Completeness4/5

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

Given the presence of an output schema (not shown), the description successfully lists the major components returned. It does not mention error handling or optional items, but for a snapshot tool, the completeness is adequate.

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

Parameters2/5

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

Schema description coverage is 0%, meaning no parameters are described in the description. The schema itself has 4 parameters with basic constraints (minLength), but the description adds no meaning beyond what the schema provides. For a tool with multiple parameters, this is insufficient compensation.

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 uses specific verbs ('Return') and identifies a clear resource ('full preflight surface for a table') with a detailed list of components (columns, primary key, indexes, etc.), distinguishing it from sibling tools like 'db_table_schema' or 'table_neighborhood'.

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?

The description provides no guidance on when to use this tool versus alternatives, nor does it mention exclusions or prerequisites. It only describes what the tool returns without context for selection.

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/drhalto/agentmako'

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