Skip to main content
Glama

Clean & Validate JSON Data for AI Workflows · One-Call Pipeline

data_clean
Read-onlyIdempotent

Clean and validate flat JSON data for an AI workflow with one paid request instead of coordinating four separate calls. ARN profiles 1-5,000 supplied JSON-object rows, removes duplicates using one to eight caller-selected primitive identity fields, infers a conservative flat-record schema, and checks required fields plus declared primitive types. It preserves first occurrences and reports exact counts and bounded validation errors. It does not repair malformed values, flatten nested data, enrich records or infer semantic correctness. This free MCP discovery call does not execute the advertised capability and does not charge; it returns the exact x402 endpoint, price and payment guide for execution.

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": {
      "rows": "<rows>",
      "identityKeys": "<identityKeys>"
    },
    "name": "data_clean"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYesBetween 1 and 5,000 flat JSON-object rows. Nested objects and arrays are rejected by conservative schema inference.
typesNoOptional primitive type required for selected fields on every cleaned row where present.
requiredNoOptional fields that must exist on every cleaned row.
identityKeysYesOne to eight primitive fields that together identify duplicate rows.

Output Schema

NameRequiredDescriptionDefault
priceYes
methodYesHTTP method for paid execution.
endpointYesCanonical absolute ARN HTTP URL to POST the same tool arguments to for paid execution.
protocolYesPayment protocol required by the HTTP execution endpoint.
instructionYesHow to execute the capability after receiving the payment requirement.
paymentGuideYesPublic setup guide with a working x402 v2 Base-mainnet client example.
paymentRequiredYesAlways true for paid ARN capabilities exposed over MCP.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations by disclosing hard limits (1-5,000 rows, 1-8 identity keys), side-effect semantics (first occurrences preserved, exact counts and bounded validation errors returned), and the critical caveat that this call does not execute the advertised work, does not charge, and only returns the x402 endpoint, price and payment guide. That last point is the kind of surprise an agent must know before calling.

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?

Front-loads the core action and the one-call value proposition, then moves to mechanics, exclusions, and finally the payment/discovery caveat. It is dense but not padded; the main cost is a long middle that restates pipeline steps the schema description also covers.

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?

For a tool that is really a metered discovery hop, the description covers everything an agent needs: scope, input limits, what is and isn't transformed, failure-reporting behavior, and that execution requires a separate paid x402 call. An output schema exists, so the absence of return-value detail is appropriate.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds conceptual meaning: identityKeys are primitive fields that jointly define duplicate identity, required/types are applied to cleaned rows, and rows must be flat objects. This connects the parameters to pipeline stages rather than merely restating the schema.

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+resource combination: clean and validate flat JSON rows in a single call, with concrete sub-operations (dedupe on identity keys, schema inference, required-field and type checks). It is clearly distinguishable from generic validators by the combined pipeline scope, but it never names a sibling tool (e.g. tabular_validate, json_schema_check, result_dedupe) to sharpen the boundary.

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?

Gives a usable selection rule -- use one paid request instead of coordinating four separate calls -- and explicitly scopes out repair, flattening, enrichment and semantic correctness, so an agent knows when this is the wrong tool. What is missing is an explicit statement of when a narrower sibling should be preferred over this bundle.

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.

Resources