Skip to main content
Glama
unfallenwill

SQLScope

by unfallenwill

List tables

list_tables

Discover available tables and views in a database's default schema, including column counts, to determine what to query.

Instructions

List all tables and views in the connection's default schema, with column counts. Use this first to discover what to query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connectionNoNamed connection to use. Omit when only one connection is configured (or it is named "default").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It transparently discloses the scope ('default schema'), the return content ('tables and views... with column counts'), and implies a read-only operation. It does not mention potential permission requirements or pagination, but for a listing tool this is adequate.

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 sentences with no redundancy. The action and scope are front-loaded in the first sentence, and the usage guidance is a single clear instruction in the second.

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

Completeness5/5

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

This is a low-complexity tool with one optional parameter and no output schema. The description covers what the tool lists, the scope of that listing, the result detail (column counts), and when to call it. Nothing an agent needs to invoke it correctly is missing.

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 description coverage is 100%, so the connection parameter is already fully documented in the schema. The description adds no parameter-specific meaning beyond 'use this first,' so a baseline score of 3 is appropriate.

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 states a specific verb ('List') and resource ('all tables and views in the connection's default schema') with an additional detail ('with column counts'). It clearly distinguishes itself from siblings like describe_table (which targets a single table) and query (which executes arbitrary SQL).

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 gives an explicit instruction, 'Use this first to discover what to query,' which tells the agent when this tool is appropriate. However, it does not explicitly mention when not to use it or name alternatives, so it falls short of a 5.

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