Skip to main content
Glama

Describe a table

saga_describe_table
Read-onlyIdempotent

Returns a table's column names, types, defaults, and primary key so you can inspect its structure without retrieving row data.

Instructions

Columns (name, type, default) and primary key of one table. Shows structure only, no data.

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

Input Schema

NameRequiredDescriptionDefault
firmNoFirm code (folder name such as "0001"). Optional when only one firm is configured.
tableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description only needs to add behavior. 'Shows structure only, no data' usefully scopes the output, but it says nothing about what happens when the table or firm does not exist, or whether the result is empty or an error.

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?

Two short sentences, front-loaded with the returned fields and closed by the scope limit. No filler, no repetition of the title.

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?

For a simple two-parameter read tool with a full annotation set and no output schema, the description adequately states the return contents and the structure-only boundary. The remaining gap is the undocumented 'table' identifier format.

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 coverage is 50%: the 'firm' parameter is documented in the schema itself. The description adds only that 'one table' is described at a time, and does not say what identifier format the 'table' parameter expects (exact name, case sensitivity, where to obtain valid values). Baseline 3 fits given the schema already documents the optional parameter.

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?

Specific verb-and-resource combination ('Columns... and primary key of one table') that states exactly what is returned, and the clause 'Shows structure only, no data' separates it from data-returning siblings like saga_query. It stops short of naming any sibling explicitly, so differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

The 'no data, structure only' boundary implies when to pick this over a query tool, but there is no explicit when-to-use or when-not-to-use guidance. Nothing tells the agent to get table names from saga_list_tables first, which is the natural prerequisite for the required 'table' parameter.

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