Claix
v1.14.1Security layer for AI agents: Retrieve for controlled SQL reads, Guard for allow/deny writes.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
claix.schemas.list List Claix schemas
List the Claix schemas available for the authenticated account. Returns id, name, type, schema_definition, is_agent_mode, and agent_definition. Call this first whenever you need a schema_id before claix.extract.* or claix.agent.* tools.
| Parameter | Type | Description |
|---|---|---|
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
claix.schemas.get Get Claix schema
Get one Claix schema by schema_id (GET /api/get-schema/{schema_id}). Returns the full schema object (definition, Agent mode, Guardar Datos / window_context, source verification). Free call. 404 if missing or not owned by the API key.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
claix.schemas.create Create Claix schema
Create a Claix schema (POST /api/create-schema). Requires name, type (excel-json, json-excel, pdf-json, doc-json, img-json, txt-json, audio-json) and schema_definition. Optional: is_agent_mode, agent_definition, resumen_agent, window_context (Guardar Datos: when true, JSON extractions insert a mapped row into the connected DB; needs connection + mapping rules; default false), source verification (default false).
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable schema name. Example: Facturas HTML. |
schema_definition * | object | Output fields. Each key is a JSON property; each value is { type: "string"|"integer"|"number"|"boolean", description: "..." }. |
type * | string | Schema type matching an extraction endpoint. Example: txt-json, pdf-json. |
agent_definition | object | Required if is_agent_mode is true. Types: boolean, string, closed, integer. closed requires options[]. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
cita_por_campo | boolean | Enables source verification: each extracted field (and agent_data) is returned as {value, source} instead of a bare value. Defaults to false. |
is_agent_mode | boolean | Set true to enable Agent mode. json-excel cannot use Agent mode. |
resumen_agent | string | Optional Agent-mode instruction, max 500 characters. |
window_context | boolean | Guardar Datos / Save Data. When true, JSON extractions insert a mapped row into the connected DB (needs connection + mapping rules). Default false. |
claix.schemas.update Update Claix schema
Update a Claix schema (PUT /api/update-schema/{schema_id}). Same body as create: name, type, schema_definition; optional Agent mode, window_context (Guardar Datos), source verification. Replaces the full configuration. Free call.
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable schema name. Example: Facturas HTML. |
schema_definition * | object | Output fields. Each key is a JSON property; each value is { type: "string"|"integer"|"number"|"boolean", description: "..." }. |
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
type * | string | Schema type matching an extraction endpoint. Example: txt-json, pdf-json. |
agent_definition | object | Required if is_agent_mode is true. Types: boolean, string, closed, integer. closed requires options[]. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
cita_por_campo | boolean | Enables source verification: each extracted field (and agent_data) is returned as {value, source} instead of a bare value. Defaults to false. |
is_agent_mode | boolean | Set true to enable Agent mode. json-excel cannot use Agent mode. |
resumen_agent | string | Optional Agent-mode instruction, max 500 characters. |
window_context | boolean | Guardar Datos / Save Data. When true, JSON extractions insert a mapped row into the connected DB (needs connection + mapping rules). Default false. |
claix.schemas.delete Delete Claix schema
Delete a Claix schema owned by the API key (POST /api/delete-schema). Requires schema_id.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
claix.extract.excel Extract Excel/CSV to JSON
Extract structured JSON from an Excel (.xlsx) or CSV file using a Claix excel-json schema. Processes the first sheet only. Returns typed JSON matching the schema plus log_id. If the schema has Guardar Datos (window_context), the response may include row_id. No space_id. If source verification is enabled on the schema, each field is {value, source} instead of a bare value. Use when the user attaches a spreadsheet or CSV.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
claix.extract.pdf Extract PDF to JSON
Extract structured JSON from a PDF (text or scanned, max 15 MB) using a Claix pdf-json schema. Returns a single JSON object in data[] plus log_id. If the schema has Guardar Datos (window_context), the response may include row_id. No space_id. If source verification is enabled on the schema, each field is {value, source}. Use for invoices, contracts, forms, or reports.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
claix.extract.doc Extract document to JSON
Extract structured JSON from a Word document (.docx, .txt, .md, .rtf; max 10 MB) using a Claix doc-json schema. Returns log_id. If the schema has Guardar Datos (window_context), the response may include row_id. No space_id. If source verification is enabled on the schema, each field is {value, source}. Legacy .doc is not supported.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
claix.extract.image Extract image to JSON
Extract structured JSON from a visible image (JPEG, PNG, WebP, HEIC/HEIF; max 15 MB) using a Claix img-json schema. Returns log_id. If the schema has Guardar Datos (window_context), the response may include row_id. No space_id. If source verification is enabled on the schema, each field is {value, source}. Use for photos of documents, tickets, or labels.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
claix.extract.text Extract text/HTML/XML to JSON
Extract structured JSON from already processed plain text, HTML, or XML using a Claix txt-json schema. Send the payload in the content field (no file). Max 300,000 characters. Returns log_id. If the schema has Guardar Datos (window_context), the response may include row_id. No space_id. If source verification is enabled on the schema, each field is {value, source}. POST /api/txt-json.
| Parameter | Type | Description |
|---|---|---|
content * | string | Plain text, HTML, or XML already processed. Do not send a file. Example: <html><body>Invoice F-1</body></html> |
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
claix.extract.audio Extract audio to JSON
Extract structured JSON from spoken audio (MP3, WAV, M4A, OGG; max 12 MB / 10 minutes) using a Claix audio-json schema. Returns log_id. If the schema has Guardar Datos (window_context), the response may include row_id. No space_id. If source verification is enabled on the schema, each field is {value, source}. Unintelligible audio returns HTTP 422. Use for calls, meetings, voice notes, or dictations.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
claix.convert.json_to_excel Convert JSON to Excel
Convert JSON to an Excel .xlsx file using a Claix json-excel schema. Provide json_data inline or file_base64 with a .json file. Returns base64-encoded xlsx on success.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
json_data | JSON object or array to export. Example: [{"sku":"A1","qty":2}]. Use instead of file_base64 when data is already in context. |
claix.agent.excel Agent mode Excel/CSV to JSON
Run Excel/CSV extraction plus Agent mode semantic reasoning. Requires is_agent_mode on the schema. Returns data[], agent_data, and log_id. If the schema has Guardar Datos (window_context), the response may include row_id. No space_id. If source verification is enabled on the schema, extracted fields and agent_data are {value, source}.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
claix.agent.pdf Agent mode PDF to JSON
Run PDF extraction plus Agent mode reasoning. Requires is_agent_mode. Returns structured data[], agent_data, and log_id. If the schema has Guardar Datos (window_context), the response may include row_id. No space_id. If source verification is enabled on the schema, fields are {value, source}.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
claix.agent.doc Agent mode document to JSON
Run document extraction plus Agent mode reasoning on .docx/.txt/.md/.rtf. Requires is_agent_mode. Returns data[], agent_data, and log_id. If the schema has Guardar Datos (window_context), the response may include row_id. No space_id. If source verification is enabled on the schema, fields are {value, source}.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
claix.agent.image Agent mode image to JSON
Run image extraction plus Agent mode reasoning. Requires is_agent_mode. Returns data[], agent_data, and log_id from visible content. If the schema has Guardar Datos (window_context), the response may include row_id. No space_id. If source verification is enabled on the schema, fields are {value, source}.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
claix.agent.text Agent mode text/HTML/XML to JSON
Run text/HTML/XML extraction plus Agent mode reasoning. Requires is_agent_mode. Send content (no file). Returns data[], agent_data, and log_id. If the schema has Guardar Datos (window_context), the response may include row_id. No space_id. If source verification is enabled on the schema, fields are {value, source}. POST /agent/txt-json.
| Parameter | Type | Description |
|---|---|---|
content * | string | Plain text, HTML, or XML already processed. Do not send a file. Example: <html><body>Invoice F-1</body></html> |
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
claix.agent.audio Agent mode audio to JSON
Run audio extraction plus Agent mode reasoning. Requires is_agent_mode. Returns data[], agent_data, and log_id from spoken content. If the schema has Guardar Datos (window_context), the response may include row_id. No space_id. If source verification is enabled on the schema, fields are {value, source}. Formats: MP3, WAV, M4A, OGG. Max 12 MB / 10 minutes.
| Parameter | Type | Description |
|---|---|---|
schema_id * | string | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
claix.markdown.excel Excel/CSV to Markdown
Convert Excel/CSV to Markdown (POST /api/excel-markdown). No schema_id. Optional save=true inserts into the connected DB using Markdown rules and may return row_id; omit/false returns markdown only.
| Parameter | Type | Description |
|---|---|---|
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
save | boolean | When true, insert into the connected DB using Markdown rules and may return row_id. Omit or false: return markdown only. |
claix.markdown.pdf PDF to Markdown
Convert PDF to Markdown (POST /api/pdf-markdown). No schema_id. Optional save=true inserts into the connected DB using Markdown rules and may return row_id; omit/false returns markdown only.
| Parameter | Type | Description |
|---|---|---|
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
save | boolean | When true, insert into the connected DB using Markdown rules and may return row_id. Omit or false: return markdown only. |
claix.markdown.doc Document to Markdown
Convert Word/text document to Markdown (POST /api/doc-markdown). No schema_id. Optional save=true inserts into the connected DB using Markdown rules and may return row_id; omit/false returns markdown only.
| Parameter | Type | Description |
|---|---|---|
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
save | boolean | When true, insert into the connected DB using Markdown rules and may return row_id. Omit or false: return markdown only. |
claix.markdown.image Image to Markdown
Convert image to Markdown (POST /api/img-markdown). No schema_id. Optional save=true inserts into the connected DB using Markdown rules and may return row_id; omit/false returns markdown only.
| Parameter | Type | Description |
|---|---|---|
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
save | boolean | When true, insert into the connected DB using Markdown rules and may return row_id. Omit or false: return markdown only. |
claix.markdown.text Text/HTML/XML to Markdown
Convert plain text/HTML/XML to Markdown (POST /api/txt-markdown). content field, no file, no schema_id. Optional save=true inserts into the connected DB using Markdown rules and may return row_id; omit/false returns markdown only.
| Parameter | Type | Description |
|---|---|---|
content * | string | Plain text, HTML, or XML to convert to Markdown. Do not send a file. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
save | boolean | When true, insert into the connected DB using Markdown rules and may return row_id. Omit or false: return markdown only. |
claix.markdown.audio Audio to Markdown
Convert spoken audio to Markdown (POST /api/audio-markdown). No schema_id. Optional save=true inserts into the connected DB using Markdown rules and may return row_id; omit/false returns markdown only.
| Parameter | Type | Description |
|---|---|---|
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
file_base64 | string | Archivo codificado en Base64. Acepta data URLs (data:application/pdf;base64,...) o Base64 puro. Ejemplo de uso: adjunta el PDF/imagen del chat como Base64 antes de llamar a extract_*. |
file_path | string | URL HTTPS pública del archivo a procesar. Ejemplo: https://cdn.example.com/factura.pdf. No uses rutas locales del PC del usuario. |
filename | string | Nombre original del archivo con extensión. Ejemplo: factura-2026-03.pdf. Ayuda a inferir el MIME cuando envías file_base64. |
save | boolean | When true, insert into the connected DB using Markdown rules and may return row_id. Omit or false: return markdown only. |
claix.multi_document.ask Ask across multiple documents
Ask up to 5 typed questions across up to 10 uploaded documents (POST /multi-document). Multipart: repeat field file for each document; questions as a JSON string of { question, format } (format: string|int|boolean|timestamp|array). Optional window_context, window_time, space_id match OpenAPI MultiDocumentRequest. Returns user_ask, ia_response, documents_processed, log_id.
| Parameter | Type | Description |
|---|---|---|
files * | array | Up to 10 documents. Each is sent as multipart field file. |
questions * | array | Questions as objects { question, format }. Max 5 per call, 400 characters per question. format ∈ string|int|boolean|timestamp|array. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
space_id | string | Optional OpenAPI MultiDocumentRequest space_id (only when window_context is true). |
window_context | boolean | Optional OpenAPI MultiDocumentRequest flag: when true, converted documents may be retained. |
window_time | number | string | Required by API if window_context is true. Minutes or "infinity". |
claix.retrieve.ask Ask a Retrieve agent
Ask a Retrieve agent (POST /retrieve/{agent_name}). Controlled read against the live SQL database within the agent's routes. Body { questions: [{ question, format? }] }. format is required only for razonada agents; formats: string|int|boolean|timestamp|timestamptz|date|json|array:string|array:int. agent_name is the slug or display name. Returns traced answers (log_id).
| Parameter | Type | Description |
|---|---|---|
agent_name * | string | Agent slug or display name used in /retrieve/{agent_name}. |
questions * | array | Questions for the agent. format optional unless response_mode is razonada. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
claix.guard.check Check SQL with Claix Guard
Claix Guard: check a proposed SQL write before your app executes it (POST /check-sql). Body: { sql, params?: unknown[], connection_id?: uuid }. You define what is allowed. Returns allowed, needs_approval, verdict (allow | deny | needs_approval), reason, code, decision_id, violations. A write that does not fit an active permission is denied (code not_permitted). needs_approval means it fits and a person must confirm it; allowed is false. A denial is still HTTP 200 — read allowed. Claix never runs the statement.
| Parameter | Type | Description |
|---|---|---|
sql * | string | The SQL statement the agent wants to run (INSERT, UPDATE, or DELETE). Claix only checks it; it does not execute it. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
connection_id | string | Active Claix DB connection UUID. Required when the account has more than one active connection. |
params | array | Bound parameters for the SQL statement, in order ($1, $2, …). |
claix.routes.create Create a Retrieve route
Create a Retrieve route (POST /routes). Body: { name, description, rules, tables: [{ name, columns: string[] }] }.
| Parameter | Type | Description |
|---|---|---|
description * | string | What this route is for. |
name * | string | Route display name. |
rules * | string | Natural-language rules for the route. |
tables * | array | Tables and columns from the active Data Map. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
claix.routes.edit Edit a Retrieve route
Edit a Retrieve route (PUT /routes/edit/{route_id}). Same body as create plus route_id path param.
| Parameter | Type | Description |
|---|---|---|
description * | string | What this route is for. |
name * | string | Route display name. |
route_id * | string | UUID of the route to edit or delete. |
rules * | string | Natural-language rules for the route. |
tables * | array | Tables and columns from the active Data Map. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
claix.routes.delete Delete a Retrieve route
Delete a Retrieve route (POST /routes/delete/{route_id}). Requires route_id.
| Parameter | Type | Description |
|---|---|---|
route_id * | string | UUID of the route to edit or delete. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
claix.agents.create Create a Retrieve agent
Create a Retrieve agent (POST /agents). Body: { name, slug, description, prompt, routes: uuid[], response_mode: "bruto"|"razonada", call_limit_period?: "day"|"week"|"month"|"unlimited", call_limit?: number }. Omit the limit fields for unlimited.
| Parameter | Type | Description |
|---|---|---|
description * | string | What this agent answers. |
name * | string | Agent display name. |
prompt * | string | Business prompt / instructions for the agent. |
response_mode * | string | bruto returns rows; razonada returns typed values (format required on questions). |
routes * | array | UUIDs of routes this agent can use. |
slug * | string | URL slug (a-z, 0-9) used in /retrieve/{slug}. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
call_limit | integer | Required when call_limit_period is day, week, or month. |
call_limit_period | string | Optional query cap period in UTC. Omit or unlimited for no cap. Each question in a successful call counts as one query. |
claix.agents.edit Edit a Retrieve agent
Edit a Retrieve agent (PUT /agents/edit/{agent_id}). Same body as create plus agent_id. Omit call_limit_period and call_limit to keep the current cap.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | UUID of the agent to edit or pause. |
description * | string | What this agent answers. |
name * | string | Agent display name. |
prompt * | string | Business prompt / instructions for the agent. |
response_mode * | string | bruto returns rows; razonada returns typed values (format required on questions). |
routes * | array | UUIDs of routes this agent can use. |
slug * | string | URL slug (a-z, 0-9) used in /retrieve/{slug}. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |
call_limit | integer | Required when call_limit_period is day, week, or month. |
call_limit_period | string | Optional query cap period in UTC. Omit or unlimited for no cap. Each question in a successful call counts as one query. |
claix.agents.pause Pause or activate a Retrieve agent
Pause or activate a Retrieve agent (POST /agents/pause/{agent_id}). Body: { status: "paused"|"active" }.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | UUID of the agent to edit or pause. |
status * | string | Set "paused" to disable or "active" to re-enable. |
api_key | string | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). |