> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zylon.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Herramienta de análisis tabular

> Analiza artefactos tabulares durante un mensaje.

Usa Tabular Analysis para cálculos sobre datos tabulares (CSV/TSV o tablas extraídas).

## Requisitos previos

* Un token de API. Ver [Backoffice Developer Console](/es/developer-manual/get-started/developer-console).
* Artefactos tabulares ingeridos.

## Requisitos

* Especificación de la herramienta: `{ "name": "tabular_analysis", "type": "tabular_analysis_v1" }`
* `tool_context`: al menos un `ingested_artifact` con `context_filter`.

## Solicitud y respuesta básicas

```bash theme={null}
curl -X POST "https://{BASE_URL}/api/gpt/v1/messages/validate" \
  -H "Authorization: Bearer {API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "default",
    "max_tokens": 128,
    "messages": [
      { "role": "user", "content": "What is the average of the Q1 revenue column?" }
    ],
    "tools": [
      { "name": "tabular_analysis", "type": "tabular_analysis_v1" }
    ],
    "tool_choice": { "type": "auto" },
    "tool_context": [
      {
        "type": "ingested_artifact",
        "context_filter": {
          "collection": "{collectionID}"
        }
      }
    ]
  }'
```

Ejemplo de respuesta:

```json theme={null}
{ "valid": true, "errors": null }
```

Para ejecutar, envía el mismo cuerpo a `POST /messages`.

## Consejos

* Asegura que el contenido sea una tabla limpia.
* Mantén tablas pequeñas para análisis rápido.

## Próximos pasos

* Ingesta de artefactos: [Artefactos](/es/developer-manual/build-with-zylon/working-with-artifacts)
* Formato de mensajes: [Mensajes](/es/developer-manual/build-with-zylon/working-with-messages)
