Skip to main content
Glama

unfour.db.list_saved_sql

unfour.db.list_saved_sql
Read-onlyIdempotent

Lists saved SQL metadata for a selected workspace without executing queries or returning SQL, helping you browse available saved SQL entries.

Instructions

Lists saved SQL metadata in the selected workspace without executing or returning SQL.

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": "unfour.db.list_saved_sql"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceIdNo

Output Schema

NameRequiredDescriptionDefault
savedSqlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior. The description adds meaningful context beyond that: the tool returns metadata only, so an agent knows it will not receive SQL text or trigger execution. Return shape and pagination behavior are left unspecified.

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 front-loaded sentence with no wasted words; the scope and the no-execution constraint are stated up front. It is terse to the point that "selected" is slightly ambiguous about who selects the workspace.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. The remaining gap is the semantics of the optional workspaceId, which the description only gestures at rather than resolving.

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 0% for the single optional workspaceId parameter, so the description carries the burden. "In the selected workspace" hints at the parameter's role and a default-to-current-workspace behavior, but it does not state what happens when workspaceId is omitted or whether an invalid ID errors.

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?

States a specific verb ("Lists") and resource ("saved SQL metadata") with an explicit scope ("in the selected workspace"). The qualifier "without executing or returning SQL" implicitly distinguishes it from siblings like get_saved_sql and execute, though it never names them.

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 phrase "without executing or returning SQL" implies the intended use case: browsing saved queries rather than running or fetching them. However, there is no explicit when-to-use/when-not instruction and no named alternative (e.g., use get_saved_sql for the SQL body).

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