Skip to main content
Glama
alexrobl
by alexrobl

scan_field_stats

Calculate field-level statistics in spatial data: numeric fields get min, max, mean, std, nulls; text fields get unique count, sample values, nulls.

Instructions

Calcula estadísticas descriptivas por campo en una capa espacial.

Campos numéricos → min, max, media, desviación estándar, nulos. Campos de texto/categoría → conteo de únicos, muestra de valores, nulos.

Args: path: Ruta al archivo o directorio espacial. layer: Nombre de la capa (None = primera capa). fields: Lista de campos a analizar. None = todos los campos no-geometría. max_features: Límite de features a leer para calcular estadísticas (default 50000).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
layerNo
fieldsNo
max_featuresNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description provides basic behavioral information (numeric vs text stats, max_features limit) but lacks disclosure of side effects, performance, or error conditions; since no annotations exist, more transparency would be beneficial.

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 well-structured with a clear summary, followed by detailed stats and parameter documentation, all in a concise format.

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?

The description covers the purpose, parameters, and basic behavior; with an output schema available, it provides sufficient contextual completeness, though minor aspects like error handling are missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description provides parameter explanations (path, layer, fields, max_features) that add meaning beyond the raw schema, though concise.

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 computes descriptive statistics per field in a spatial layer, distinguishing between numeric and text fields, and is distinct from sibling tools like get_layer_schema or read_features.

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 implies usage for analyzing field statistics but lacks explicit guidance on when to use this vs. other tools or any prerequisites or exclusions.

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/alexrobl/geoanalisis-mcp'

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