Skip to main content
Glama

Dataset quality report module with pytest tests

submit_dataset_quality_report
Idempotent

Produce a standard-library Python module that computes a quality report for an array of records, plus pytest tests. Choose this when you need a computed quality summary of a record array: counts, presence, nulls, completeness ratio, exact duplicates. Do not choose this for statistical or semantic quality (outliers, drift, schema conformance beyond the fixed checks). Example requests: Write a Python module that reports record count, per-field presence and duplicate count for a dataset, with tests. | I need a data-quality summary: null counts, completeness ratio, exact duplicates. | Generate a dataset-quality report module and test it.

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": {
      "inputs": "<inputs>",
      "authorized_by": "<authorized_by>"
    },
    "name": "submit_dataset_quality_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYes
quote_idNoThe quote_id from POST /v1/jobs; required when priced.
buyer_tokenNoThe buyer_token returned with your first purchase. It opens the purchase history for that buyer, including earlier deliverables.
authorized_byYesIdentifier of the human or agent authorizing this job.
accepted_priceNoThe quoted amount, echoed exactly; checked against the quote.
idempotency_keyNoRetry key; the same key returns the same job.
payment_signatureNox402 payment payload; required for a priced capability (see submit_job).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / buyer_token
      Added value: +{
      +  "description": "The buyer_token returned with your first purchase. It opens the purchase history for that buyer, including earlier deliverables.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • changedInput schema / properties / accepted_price / description
      Previous value: -"The amount accepted, exactly as quoted (for example \"5.00\" or 5). Checked against the stored quote, so a price that moved between quote and authorize is refused rather than silently absorbed. Optional, but sent to make the acceptance explicit."New value: +"The quoted amount, echoed exactly; checked against the quote."
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry key. Re-sending the same key returns the same job instead of running it twice."New value: +"Retry key; the same key returns the same job."
    • changedInput schema / properties / payment_signature / description
      Previous value: -"Base64-encoded x402 payment payload (the value the HTTP interface puts in the PAYMENT-SIGNATURE header), signed for the amount in the payment requirement the first call returned. Required for a priced capability; nothing is charged until the work completes."New value: +"x402 payment payload; required for a priced capability (see submit_job)."
    • changedInput schema / properties / quote_id / description
      Previous value: -"The quote_id returned by POST /v1/jobs. Required to authorize a priced capability; the service rejects a priced job that does not name the quote it issued."New value: +"The quote_id from POST /v1/jobs; required when priced."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "access_token": {
      -      "description": "Per-job credential. Present it as the X-Job-Token header to read the job or list it. Keep it; it is the only credential for this job.",
      -      "type": "string"
      -    },
      -    "artifacts": {
      -      "type": "array"
      -    },
      -    "capability_id": {
      -      "type": "string"
      -    },
      -    "job_id": {
      -      "type": "string"
      -    },
      -    "quote": {
      -      "type": "object"
      -    },
      -    "state": {
      -      "enum": [
      -        "received",
      -        "rejected",
      -        "quoted",
      -        "authorized",
      -        "executing",
      -        "deferred",
      -        "queued",
      -        "verifying",
      -        "completed",
      -        "failed",
      -        "timed_out",
      -        "cancelled"
      -      ]
      -    },
      -    "verification": {
      -      "description": "Independent verification. verification.ok = false means the job failed, not a partial success.",
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "job_id",
      -    "state"
      -  ],
      -  "type": "object"
      -}New value: +null
  3. Changed2 schema fields changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Retry key. Re-sending the same key returns the same job instead of running it twice.",
      +  "type": "string"
      +}
    • addedInput schema / properties / payment_signature
      Added value: +{
      +  "description": "Base64-encoded x402 payment payload (the value the HTTP interface puts in the PAYMENT-SIGNATURE header), signed for the amount in the payment requirement the first call returned. Required for a priced capability; nothing is charged until the work completes.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedOutput schema / properties / state / enum
      Previous value: -[
      -  "received",
      -  "rejected",
      -  "quoted",
      -  "authorized",
      -  "executing",
      -  "deferred",
      -  "verifying",
      -  "completed",
      -  "failed",
      -  "timed_out",
      -  "cancelled"
      -]New value: +[
      +  "received",
      +  "rejected",
      +  "quoted",
      +  "authorized",
      +  "executing",
      +  "deferred",
      +  "queued",
      +  "verifying",
      +  "completed",
      +  "failed",
      +  "timed_out",
      +  "cancelled"
      +]
  5. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare the mutation/idempotency profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), and the description is consistent with that by framing the tool as producing a deliverable. However, it says nothing about the paid-job lifecycle that the schema implies (quote_id, payment_signature, buyer_token) or that the result is a submitted job rather than an immediately returned module. For a non-read-only tool with an authorization/payment surface, that is a real gap beyond what annotations cover.

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 structure is well front-loaded: capability statement, when-to-use, when-not, then illustrative requests. The three example requests are somewhat redundant with each other and with the opening sentence, adding bulk without new information, but the whole is short and easy to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For the core deliverable spec this is adequate, and no output schema exists so return-value detail is not required. But this is a 7-parameter, nested-object, non-read-only job submission with payment and idempotency parameters, and the description never addresses what happens on submission, pricing, or retry semantics. That leaves an operationally significant hole for a tool of this complexity.

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 86%, so the parameters are already well documented (module_name, function_name, template, plus quote/payment fields). The description adds no parameter-level meaning — its examples restate the output shape rather than explain module_name/function_name conventions or the fixed 'quality-report' template value. Baseline 3 applies when the schema carries the load.

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 states a specific verb and deliverable: 'Produce a standard-library Python module that computes a quality report for an array of records, plus pytest tests.' It also scopes what is included (counts, presence, nulls, completeness ratio, exact duplicates), which separates it from statistical/semantic reporting siblings. It does not name the closest siblings (e.g., submit_csv_quality_report, submit_duplicate_group_report), so the record-array vs file-input boundary is only inferable.

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 both a positive trigger ('Choose this when you need a computed quality summary of a record array') and a negative one ('Do not choose this for statistical or semantic quality (outliers, drift, schema conformance...)'), which is strong. What's missing is naming an alternative sibling to route to when the exclusion applies, leaving the agent to guess which of the many submit_* tools covers outliers or drift.

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