Skip to main content
Glama

List database tables

saga_list_tables
Read-onlyIdempotent

Lists SAGA database tables with optional row counts and payroll flags, and supports searching by table name to help users locate accounting data sources.

Instructions

Tables in the SAGA database (about 195), optionally with row counts. Payroll tables are flagged.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "saga_list_tables"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive behavior. The description adds useful behavioral context by noting approximate table count, optional row counts, and payroll table flagging, but it omits return format, pagination behavior for ~195 tables, and what 'flagged' means in output.

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 compact sentence that front-loads the core resource and scale, then notes optional counts and flags. No words are wasted.

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

Completeness3/5

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

For a read-only listing tool with no output schema and only optional parameters, the description covers the main purpose but leaves important gaps: search semantics, result format, and pagination for roughly 195 tables. These omissions are moderate rather than severe.

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?

Only one of three parameters has schema documentation (firm). The description partially covers with_counts by mentioning optional row counts, but it does not explain the search parameter at all, leaving a meaningful gap for filtering behavior.

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?

The description clearly states a verb and resource: listing tables in the SAGA database, including approximate scale (~195) and optional row counts. It does not distinguish this from the sibling saga_describe_table, which likely handles table detail/schema inspection.

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?

Usage is implied through the listing purpose and optional row counts, but there is no explicit guidance on when to use this versus saga_describe_table or why to enable counts. No prerequisites or exclusions are stated.

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