Skip to main content
Glama
ondata

CKAN MCP Server

by ondata

Get MQA Quality Score

ckan_get_mqa_quality
Read-onlyIdempotent

Retrieve MQA quality score for a dataset on dati.gov.it, returning the 0-7.5 score, band, and failing metrics. Falls back to previous methodology for unassessed datasets.

Instructions

Get MQA (Metadata Quality Assessment) quality score for a dataset on dati.gov.it from data.europa.eu. Returns the final score on the 0-7.5 scale of MQA methodology v2 with its band (Sufficient/Good/Excellent), dataset, distribution and data service scores, and the failing metrics with the largest gain. Datasets not yet re-evaluated fall back to the previous methodology (405 scale), labelled as such. Only works with dati.gov.it server. Typical workflow: ckan_package_show (get dataset ID) → ckan_get_mqa_quality → ckan_get_mqa_quality_details (full list of failing metrics)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataset_idYesDataset ID or name
server_urlYesBase URL of dati.gov.it (e.g., https://www.dati.gov.it/opendata)
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.108

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so safety is covered. The description adds useful behavioral details: the return includes final score, band, dataset/distribution/data service scores, and failing metrics with largest gain; fallback to previous methodology (405 scale) for not-yet-re-evaluated datasets. No contradiction.

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?

Description is densely informational but every sentence serves a purpose: main function, return details, fallback, server constraint, and workflow. Information is front-loaded (purpose first) and well-ordered. No redundancy.

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?

Despite no output schema, the description fully explains return values (scores, bands, metrics) and the fallback behavior. It also clarifies what is not returned (full list) and points to the sibling for that. Complete for an agent to call correctly.

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% and all parameters (dataset_id, server_url, response_format) have schema descriptions. The description adds minimal extra meaning beyond the workflow hint for dataset_id (obtained from ckan_package_show). Baseline 3 is appropriate since schema handles the heavy lifting.

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?

Description states a specific verb ('Get') and resource ('MQA quality score for a dataset'), includes the exact scale and band types, and explicitly differentiates from the sibling tool ckan_get_mqa_quality_details by noting this returns the final score and largest-gain failing metrics, while the sibling returns the full list. No ambiguity.

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?

Provides explicit constraint ('Only works with dati.gov.it server'), a typical workflow sequence (ckan_package_show → ckan_get_mqa_quality → ckan_get_mqa_quality_details), and implies when to use the sibling for full failing metrics. Clear context for selection.

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