Skip to main content
Glama

dq_add_source

Read-onlyIdempotent

Registers files, globs, directories, or DuckDB databases as read-only sources for data quality investigation, including data outside auto-discovered folders.

Instructions

Register more data for investigation. Files become views; DuckDB databases are attached READ_ONLY.

Use for data outside the auto-discovered folders, or to read many partition files as one table via a glob.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "dq_add_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional table/alias name. Defaults to the file stem.
pathYesFile, glob (e.g. 'data/orders_*.parquet'), directory, or .duckdb database. Relative to the project root.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed world), and the description adds real behavioral context: the source is materialized as a view, and .duckdb attachments are READ_ONLY. It does not say what happens on a name collision or whether a previously registered source can be replaced, which is the remaining gap.

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 short blocks: the core effect first, then the usage condition. Every sentence carries information an agent needs, with no restatement of the name or title.

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?

With only two parameters, full schema coverage, and an output schema, the description is nearly complete for this complexity. The one omission is the behavior on duplicate/conflicting names, which matters for a registration tool.

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 100%, including a glob example and the default-name behavior, so the schema already carries the parameter meaning. The description reinforces the glob-as-single-table pattern but adds no syntax or format detail beyond what is documented.

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 uses a specific verb and resource ('Register more data for investigation') and immediately states the resulting effect: files become views, DuckDB databases are attached READ_ONLY. That distinguishes it from read-only siblings like dq_list_sources, though it does not name a sibling explicitly.

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?

It gives concrete when-to-use conditions: data outside the auto-discovered folders, or many partition files read as one table via a glob. There is no explicit when-not or named alternative, so it stops short of the top band.

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