Skip to main content
Glama

Convert Fixed-Width IBGE ZIP Entry to Parquet

ibge_microdata_fixed_width_zip_to_parquet
Idempotent

Convert a fixed-width TXT entry inside an IBGE ZIP archive to a local Parquet file using an official SAS/TXT input layout, enabling efficient columnar analysis without full extraction.

Instructions

Convert one fixed-width TXT entry inside a local IBGE ZIP archive into a local Parquet file using an official SAS/TXT input layout.

This avoids extracting the full TXT first, writes a local columnar file, and is useful before running repeated DuckDB queries over selected PNAD, POF, or other IBGE variables.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zipPathYesLocal path to a ZIP archive downloaded from IBGE.
rowLimitNoOptional maximum number of non-empty rows to export, useful for smoke tests or previews.
entryNameYesExact fixed-width TXT entry name inside the ZIP archive.
layoutPathYesLocal path to an official IBGE SAS/TXT input layout file.
outputPathYesLocal destination path for the Parquet file to create.
selectedVariablesNoOptional variable names to export. If omitted, all layout variables are exported.
Behavior3/5

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

Annotations already provide readOnlyHint=false, idempotentHint=true, destructiveHint=false. The description adds that it writes a columnar file and avoids extraction, but does not disclose potential side effects like overwriting or error handling. The added value is moderate beyond the annotations.

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 sentences, no wasted words. First sentence states the core transformation; second sentence adds benefits and use case. Optimal length for the content.

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 (6 parameters, no output schema), the description covers the key points: direct conversion from zip, avoiding extraction, and suitability for DuckDB queries over IBGE surveys. It could explicitly contrast with similar sibling tools (e.g., fixed_width_file_to_parquet) to complete the decision context.

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 all parameters described. The description does not add additional meaning beyond the schema's parameter descriptions, so baseline score is appropriate.

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 the verb 'convert' and the specific resource: a fixed-width TXT entry inside a local IBGE ZIP archive to a Parquet file using an official SAS/TXT layout. This distinguishes it from siblings like ibge_microdata_fixed_width_file_to_parquet, which operates on an already extracted file.

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 explains that this tool avoids extracting the full TXT first and is useful before running repeated DuckDB queries, providing clear context. However, it does not explicitly state when not to use it or name alternative tools.

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/emmanueltsallis/ibge-microdata-mcp'

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