Skip to main content
Glama

profile_dataset

Read-only

Profiles a tabular dataset to assess whether it can be trusted, returning ranked data-quality issues, missing-value shares, duplicates, outliers, broken dates, and schema drift before use.

Instructions

Data-quality passport of one tabular resource. Use it when the user asks whether a dataset can be trusted, or before relying on it for numbers. Returns ranked issues plus per-column share of missing values (empty cells and placeholders like 'null' or 'н/д'), exact duplicate rows, repeated identifiers, outliers in numeric columns, broken dates (impossible, not a date, mixed formats), text damage (mojibake, padded values), file encoding and schema drift against sibling CSV files of the same dataset. Downloads the file; takes seconds. Unlike query, a file over 25 MB or 500000 rows is profiled on its first rows only: check coverage.complete and say so when it is false. Heuristic: outliers and thresholds are candidates to review, see method_note. Read-only.

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": {
      "dataset_id": "<dataset_id>"
    },
    "name": "profile_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataset_idYesThe dataset_id (or name) of a search_datasets hit. URLs and file paths are rejected.
resource_idNoA queryable resource_id from get_schema. Omit it to list the dataset's resources (or to profile the only queryable one).
compare_versionsNoAlso compare the header and column types with up to 6 sibling CSV files of the dataset (reads only the first 256 KB of each). Set false to skip.

Output Schema

NameRequiredDescriptionDefault
okYes
noteNo
rowsNo
errorNo
notesNo
issuesNoRanked findings, worst first.
sourceNoProvenance; always present when a profile is returned.
columnsNo
citationNo
coverageNo
encodingNo
resourcesNo
dataset_idNo
duplicatesNo
dataset_urlNo
method_noteNo
resource_idNo
sparse_rowsNo
issue_countsNo
schema_driftNo
columns_totalNo
dataset_titleNo
resource_nameNo
malformed_rowsNoCSV lines that did not fit the table (null for non-CSV).
columns_profiledNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare read-only/open-world/non-destructive, and the description adds substantial detail beyond them: the tool downloads the file, takes seconds, caps profiling at 25 MB or 500000 rows, requires checking coverage.complete, and warns that outliers and thresholds are heuristics to review via method_note. That is exactly the operational context an agent needs.

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?

The purpose is front-loaded and nearly every sentence carries operational information. It is dense but readable, with only minor parenthetical clutter (examples like 'null'/'н/д' and 'mojibake') that could be trimmed.

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?

Given a 3-parameter tool with full schema coverage and an output schema, the description covers the remaining gaps an agent needs: the sampling limitation, the coverage.complete caveat, and the heuristic nature of results. Nothing material 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 dataset_id, resource_id, and compare_versions are already documented. The description adds no parameter-level meaning beyond noting the sibling-comparison behavior, which the schema already covers for compare_versions.

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 names a specific verb and resource ("Data-quality passport of one tabular resource") and enumerates the concrete checks returned (missing values, duplicates, outliers, broken dates, mojibake, encoding, schema drift). This clearly separates it from query, get_schema, and search_datasets.

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 states an explicit trigger: use it when the user asks whether a dataset can be trusted or before relying on it for numbers. It also contrasts behavior with query for large files. It stops short of stating the inverse routing (e.g. use query when you actually need the values), but the intended context is clear.

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