Skip to main content
Glama

dq_list_sources

Read-onlyIdempotent

Lists all readable data tables with their origins and whether dbt artifacts were found. Call first to discover CSV, Parquet, NDJSON, DuckDB, and Postgres sources before analysis.

Instructions

List every table dqsleuth can read, where each came from, and whether dbt artifacts were found.

Call this first. Tables come from CSV/Parquet/NDJSON files and DuckDB databases discovered under the project root, sources added with dq_add_source, and an optional read-only Postgres attachment.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real value beyond that by explaining where the listed sources come from (CSV/Parquet/NDJSON files, DuckDB databases under the project root, dq_add_source entries, an optional read-only Postgres attachment) and why those origins matter. The 'optional' Postgres attachment hints at environment-dependent results, which is useful for an idempotent-but-config-sensitive listing.

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?

Short, front-loaded, and action-first ('Call this first' in the opening lines so it is not buried). The provenance sentence is dense but every clause maps to a real source type rather than restating the tool name.

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?

An output schema exists, so the definition does not need to explain return values, and it doesn't. For a no-parameter discovery tool this is complete: it covers what is listed, where it comes from, and when to call it.

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?

Zero parameters, so the baseline is 4. There is nothing for the schema to document and nothing the description needs to compensate for beyond the source-origin context it already supplies.

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?

States a specific verb and resource ('List every table dqsleuth can read') and adds the two extra facets returned: provenance and whether dbt artifacts were found. That distinguishes it cleanly from dq_add_source, which only registers a new source rather than enumerating existing ones.

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?

'Call this first' gives explicit ordering guidance and establishes the tool as the discovery entry point. It stops short of naming when not to use it or pointing at sibling checks (dq_profile_table, dq_check_nulls) as the natural next step, but the sequencing advice is unambiguous.

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