Skip to main content
Glama

db_table_schema

db_table_schema
Read-onlyIdempotent

Inspect the complete schema of a database table, including columns, indexes, constraints, foreign keys, row-level security, and triggers.

Instructions

Read-only database tool for full table shape: inspect columns, indexes, constraints, foreign keys, RLS, and triggers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdNo
projectRefNo
tableYes
schemaNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolNameYes
tableYes
schemaYes
columnsYes
indexesYes
constraintsYes
foreignKeysYes
rlsYes
triggersYes
_hintsYes
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint. The description adds scope (full table shape) but no additional behavioral traits beyond what annotations provide, so it meets the baseline.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

The description is a single sentence that front-loads the key concept ('Read-only database tool') and lists details efficiently without extraneous wording.

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?

Despite an output schema existing, the description lacks parameter guidance and usage context for a tool with four parameters (one required) and no parameter descriptions. It is incomplete relative to the tool's complexity.

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% and the description does not explain any parameter meanings. Parameter names (projectId, projectRef) are not self-explanatory, and the description fails to compensate for the lack of schema descriptions.

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 clearly states 'Read-only database tool for full table shape' and lists specific aspects (columns, indexes, constraints, foreign keys, RLS, triggers), which distinguishes it from more focused sibling tools like db_columns or db_rls.

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

Usage Guidelines4/5

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

The description implies a comprehensive schema inspection tool, but does not explicitly state when to use versus alternatives like db_columns or db_rls. Context from sibling names provides some guidance, but no explicit when-not-to-use statements.

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