Skip to main content
Glama
Safe SQL MCP

Safe SQL MCP

by korolserhii

list_tables

Discover queryable tables with columns, row counts, value meanings, and business definitions before running SQL.

Instructions

Business definitions (what "revenue", "unpaid", "waiting to be shipped" mean here — always follow them) and the tables the assistant may query, with columns, row counts and what the values mean.

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": "list_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses what is returned and adds a genuine behavioral rule ("always follow them", i.e. the business definitions take precedence). It does not state that the operation is read-only or describe permissions/limits, leaving a moderate gap for an unannotated tool.

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

Conciseness4/5

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

A single sentence, front-loaded with the most consequential element (the binding business definitions) followed by the table metadata. The parenthetical is dense but earns its space; no filler wording.

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 zero-parameter discovery tool with an output schema and no annotations, this is largely complete: it explains both halves of the returned content and the precedence rule. The only omission is guidance about calling it before get_metric/run_query, which would remove the remaining inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is 4 and there is nothing for the description to disambiguate. Coverage is 100% and the input schema is empty by design.

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 names the concrete payloads the tool returns: business definitions for terms like "revenue" and "unpaid", plus the queryable tables with columns, row counts and value meanings. That is specific enough to distinguish it from get_metric and run_query (retrieval vs. discovery), though it never explicitly names the siblings.

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 guidance is implied rather than stated: the tool clearly serves as the discovery step before querying, and "always follow them" is a directive about honoring the returned definitions. There is no explicit when-to-use, when-not-to-use, or alternative routing, so an agent must infer the sequencing.

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

Deploy Server

Other Tools