Skip to main content
Glama

Data Quality Gate - deterministic post-scrape cleaner + verdict

check_dataset_quality

Call this before using any dataset. Returns a deterministic quality verdict (RELIABLE / USABLE_WITH_CLEANING / UNRELIABLE) with exact facts: completeness, nulls, type consistency, impossible values, duplicates, outliers, and (on financial/trading data) cross-source price divergence. 100% deterministic, no LLM. Free -- this MCP endpoint runs the engine directly; POST /api (plain REST, same engine) is x402-gated at $0.01/call instead. Input: rawJson (a JSON array of row objects, or a single object); datasetId is accepted but not resolvable on this deployment -- pass rawJson instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawJsonNoThe dataset: a JSON array of row objects, or a single object.
datasetIdNoAn Apify dataset id. Not resolvable on this deployment; pass rawJson instead.

TDQS

A4.5/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden. It discloses important behavioral traits: 100% determinism, no LLM, freeness of this endpoint, and the limitation that datasetId is not resolvable. It also lists the exact output facts and conditional cross-source price divergence, providing a detailed behavioral model.

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 description is front-loaded with a clear call-to-action and efficiently lists output facts. The cost comparison with the POST /api endpoint adds useful context but also extra length. Overall, it is well-organized but could be slightly tightened without losing essential information.

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?

The description covers the tool's purpose, input format, output details, determinism, and the datasetId limitation. However, it does not explicitly state whether rawJson is required (the schema lists 0 required parameters), nor does it describe error behavior or what happens when both parameters are absent. Given no output schema, these are minor gaps in an otherwise complete description.

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 the baseline is 3. The tool description largely repeats the schema's parameter details (rawJson as JSON array or object; datasetId not resolvable) without adding new syntax, validation, or usage nuances. The only addition is a slight emphasis on rawJson, but it does not go beyond what the schema already states.

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 clearly states the tool checks dataset quality and returns a deterministic verdict (RELIABLE / USABLE_WITH_CLEANING / UNRELIABLE) with specific quality facts. It distinguishes itself from the alternative paid POST /api endpoint, making the purpose and scope unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly instructs to call before using any dataset, and provides clear alternatives: the paid POST /api endpoint and the recommendation to pass rawJson instead of datasetId. This gives strong contextual guidance for when and how to use the tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.2/5.0
Disambiguation2/5

check_dataset_quality is clearly distinct, but clean_scraped_data and clean_scraped_data_audited are nearly identical in behavior, differing only in the paid endpoint and audit trail. An agent would be uncertain which to call, making the boundaries between the two cleaning tools unclear.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern in snake_case (check_dataset_quality, clean_scraped_data, clean_scraped_data_audited), with the last adding an '-audited' modifier. There is no mixing of conventions or irregular naming.

Tool Count4/5

Three tools is a reasonable number for a focused quality-gate server, placing it within the typical 3-15 range. However, two of the three are near-duplicates, reducing effective diversity, so it is slightly padded rather than perfectly scoped.

Completeness2/5

The server allows quality checking and defect inventory, but the actual cleaning is delegated to external paid endpoints, so an agent cannot complete a cleanup task within the MCP framework. Missing a tool to actually retrieve or apply cleaned data creates a significant gap.

Resources