Skip to main content
Glama
rodrigocapiz67-tech

sunat-datos-abiertos-mcp

Previsualizar filas de un recurso de SUNAT

sunat_previsualizar_recurso

Preview the first rows of a SUNAT dataset resource (CSV or zipped CSV) by downloading only the beginning, avoiding full file download. Specify resource ID and row count.

Instructions

Descarga solo el inicio de un recurso de SUNAT (csv suelto o csv dentro de un zip) y devuelve el encabezado mas las primeras filas, sin bajar el archivo completo (algunos pesan cientos de MB). Usa el 'id' de un recurso obtenido de 'sunat_obtener_dataset'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filasNoCantidad de filas de datos a devolver (max 200)
resource_idYesId del recurso a previsualizar
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses that it only downloads the beginning, handles CSV or CSV-in-zip, and returns header plus first rows. This is transparent about read-only behavior and file handling.

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?

Two concise sentences with all essential information front-loaded. No wasted words. Every sentence adds value.

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 no output schema, description could specify output format more explicitly, but it clearly states returns header and first rows. It adequately covers the tool's behavior for a preview operation.

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% with descriptions on both parameters. The description reinforces the source of 'resource_id' but adds no new details beyond schema. Baseline 3 is appropriate since schema already documents parameters.

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 clearly states it previews rows of a SUNAT resource, downloading only the beginning. It specifies the verb 'previsualizar' and distinguishes from siblings by noting it avoids full download. This is a specific verb+resource combination.

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?

Description explicitly instructs to use the 'id' from 'sunat_obtener_dataset', providing context for when to use this tool. While it doesn't explicitly state when not to use it or name alternatives, the instruction to use a specific sibling's output is clear guidance.

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/rodrigocapiz67-tech/mcp-sunat'

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