Skip to main content
Glama

Describe Database Table

unfour.db.describe_table
Read-onlyIdempotent

Describe a table's structure—columns, types, nullability, primary keys—for a saved connection. Get schema details without reading table data.

Instructions

Describes a table's structure (columns, types, nullability, primary keys) for a saved database connection through the Unfour command bus. Does not read table data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaNoOptional schema name filter (e.g. 'public').
tableNameYesRequired table name to describe.
workspaceIdNoOptional workspace ID. Uses the active workspace if omitted.
connectionIdYesRequired saved database connection ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYes
sourceYes
connectionIdYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv0.6.0
    • addedOutput schema / properties / table / properties / catalog
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds the nuance that it 'Does not read table data', which is useful clarification beyond the annotations. However, it provides no additional behavioral details beyond that, so the added value is modest.

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, front-loaded sentence that clearly states the primary action and a crucial negative constraint. It contains no redundancy and is efficient in conveying the tool's scope.

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?

The tool has an output schema indicating it returns table structure, so the description need not explain return values. The description covers the purpose, the constraint, and the prerequisite of a saved connection. It is complete for an agent to call the tool correctly, though it lacks explicit error-handling context, which is not essential here.

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?

The schema description coverage is 100%, so all four parameters are already documented in the schema. The description does not add any parameter-specific meaning or alternatives, meeting the baseline for high coverage.

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 explicitly states the tool 'Describes a table's structure (columns, types, nullability, primary keys)' for a saved database connection, and clarifies it 'Does not read table data'. This is a specific verb-resource pair that clearly distinguishes it from data-querying siblings like unfour.db.query_readonly and unfour.db.list_tables.

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 usage for schema inspection and explicitly states it does not read table data, which hints at when not to use it. However, it does not name specific alternative tools or provide explicit when-to-use guidance, so it falls short of full explicitness.

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

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/zyqzyq/Unfour'

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