Skip to main content
Glama
alcastaro

datosgobdo-mcp

by alcastaro

summarize_resource

Read-only

Profile a data file to compute per-column statistics: count, types, nulls, distinct, min/max/mean, and top values. Allows AI to decide filters and aggregations without raw rows.

Instructions

Auto-generated profile: row count, types, nulls, distinct, min/max/mean, top values.

Downloads file (up to 100 MB), runs DuckDB COUNT/DISTINCT/AGG queries per column. Returns one compact dict per column with stats. The model uses this to decide which filters and aggregations to apply next, without any raw rows in its context. For columns with many distinct values (e.g. names), 'top_values' is omitted; only counts are returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesDirect URL to the file (CKAN resource 'url' field).
formatYesFormat declared in CKAN. Accepts: csv, tsv, xlsx, json.
max_categorical_top_nNoTop-N most-frequent values per categorical column (1-50).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
hintNo
source_urlNo
formatNo
cacheNo
row_countNo
column_countNo
columnsNo
Behavior4/5

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

Beyond the annotations (readOnlyHint, openWorldHint), the description adds specific behavioral traits: downloads file up to 100 MB, runs DuckDB COUNT/DISTINCT/AGG queries per column, returns one compact dict per column, and omits top_values for columns with many distinct values. This transparency helps the agent understand constraints and output characteristics.

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?

The description is concise with four sentences. The first sentence front-loads the core purpose. Each subsequent sentence adds necessary detail (process, return format, usage context, omission behavior) without redundancy. No wasted words.

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?

Given the tool's complexity (3 parameters, output schema present), the description adequately covers the primary behavior, constraints (file size limit, omission policy), and context (use for decision-making). It does not detail the output schema (unnecessary since it exists separately) or mention format-specific handling, but overall it provides sufficient completeness for an AI agent.

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?

The input schema already provides descriptions for all three parameters (100% coverage). The description adds some context about the behavior of max_categorical_top_n (implicitly via top_values omission) but does not significantly enhance understanding of url or format beyond the schema. Per calibration, baseline 3 is appropriate when schema coverage is high.

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's purpose: 'Auto-generated profile: row count, types, nulls, distinct, min/max/mean, top values.' It also explains the process (downloads file, runs DuckDB queries) and the output format (compact dict per column). This distinguishes it from sibling tools like aggregate_resource or filter_resource, which perform different operations.

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

Usage Guidelines3/5

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

The description mentions that 'The model uses this to decide which filters and aggregations to apply next,' implying it's a preliminary analysis step. However, it does not explicitly state when to use this tool versus alternatives like aggregate_resource or query_resource, nor does it provide when-not-to-use guidance. The context is helpful but lacks explicit directives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alcastaro/datos.gob.do-MCP-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server