Skip to main content
Glama

Contar cantidad total exacta de filas en un dataset

indec_count_rows
Read-only

Counts the exact number of rows in an INDEC dataset, including filtered results, without downloading the full dataset.

Instructions

Obtiene el total exacto de filas disponibles en un dataset del INDEC (o de aquellas que cumplan los filtros indicados), utilizando el encabezado 'Prefer: count=exact' sin transferir el conjunto de datos completo. Requiere INDEC_API_TOKEN.

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": {
      "dataset": "<dataset>"
    },
    "name": "indec_count_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
datasetYesIdentificador del dataset cuyo total de filas se desea contar.
filtersNoFiltros opcionales para contar filas que cumplan condiciones específicas.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Beyond readOnlyHint=true, the description discloses the underlying mechanism ("encabezado 'Prefer: count=exact'") and the key operational benefit that the full dataset is not transferred, which tells the agent this is a cheap operation. It also surfaces the INDEC_API_TOKEN authentication requirement, a detail absent from the annotations and schema. Pagination, rate limits, and error behavior are not covered.

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?

A single sentence that front-loads the core action and the exact count guarantee, then adds only two genuinely useful clauses (filters, no full transfer). Every clause earns its place with no repetition of the title.

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?

For a two-parameter, read-only counting tool with no output schema, the description states the return value (an exact row total), the filter behavior, and the auth requirement, which is enough to call it correctly. Only failure modes and behavior for a nonexistent dataset are left unstated, a minor gap.

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%, including per-field documentation of dataset, columna, operador and valor, so the schema already carries the parameter semantics. The description only restates that filters may be supplied; it adds no syntax or constraint detail beyond what the schema provides. Baseline 3 applies.

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?

"Obtiene el total exacto de filas disponibles en un dataset del INDEC" names a specific verb (count) and resource (rows of a dataset), and the parenthetical clarifies that filters narrow the count. It implicitly contrasts with retrieving the data ("sin transferir el conjunto de datos completo") but never names indec_query_dataset or indec_describe_dataset as the alternative, so sibling differentiation is inferred rather than stated.

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?

The phrase "sin transferir el conjunto de datos completo" gives a concrete condition for choosing this tool: when only a row count is needed rather than the records themselves. It also makes clear that filters are optional and additive. There is no explicit exclusion or named alternative for cases where the agent actually needs the data, which keeps it below a 5.

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