mcp-conta-query mcp

v1.0.0 · MCP Tool · accounting · registry.pascalai.org

READ-ONLY access to the PascalAI accounting system (ConServer, Colombia, multi-tenant by NIT). Same 25 domain tools as mcp-conta (conta_sistema, conta_puc, conta_terceros, conta_comprobantes, conta_reportes, conta_nomina, conta_ventas, conta_pos, conta_crm, ...) but every write operation (Save/Delete/Contabilizar/Anular/Cerrar/Importar/...) is hidden from the tool descriptions and rejected client-side before any request is sent. Safe to expose to autonomous agents even when the configured user is an admin. operation:"help" returns every available operation of the module with its documentation and expected params. For writes use mcp-conta.

contabilidadaccountingcolombiaerpreportesconsultasreadonlyquerysafeagentdatasnap

Input Parameters

ParameterTypeDescription
operationrequired string Read operation to execute (method name without the CON_ prefix, e.g. GetPlanCuentas, GetComprobantes, RPT_BalancePrueba). Use "help" to list every operation of the module with docs and params.
paramsoptional string JSON object with the parameters of the operation, e.g. {"fecha_desde":"2026-01-01","fecha_hasta":"2026-01-31"}. Omit for operations without parameters. Dates ISO yyyy-mm-dd; lists usually paginate with page/page_size.
loginoptional string Override credentials: user login (else CONTA_LOGIN)
nitoptional string Override credentials: company NIT / tenant (else CONTA_NIT)
passwordoptional string Override credentials: plain password (else CONTA_PASSWORD)

Output Fields

FieldTypeDescription
No output fields defined

Examples

Chart of accounts of the company

// Input
{
  "tool": "conta_puc",
  "operation": "GetPlanCuentas",
  "params": "{}"
}

// Output
[
  {
    "codigo": "110505",
    "nombre": "Caja general"
  }
]

Vouchers of a date range

// Input
{
  "tool": "conta_comprobantes",
  "operation": "GetComprobantes",
  "params": "{\"fecha_desde\":\"2026-01-01\",\"fecha_hasta\":\"2026-12-31\"}"
}

// Output
[
  {
    "tipo_codigo": "FV",
    "numero": 14,
    "estado": "CONTABILIZADO"
  }
]

A write operation is rejected client-side

// Input
{
  "tool": "conta_puc",
  "operation": "SaveCuenta",
  "params": "{}"
}

// Output
{
  "ok": false,
  "error": "\"SaveCuenta\" modifica datos y este servidor es de solo lectura."
}

Install & Discovery

Install

ppm install mcp-conta-query

Get JSON Schema

GET /v1/packages/mcp-conta-query/1.0.0/schema

Discover by keyword

GET /v1/mcp/discover?q=contabilidad
Discovery hint: Install with ppm install mcp-conta-query or invoke remotely via POST /v1/invoke/mcp-conta-query on the MCP Service.

PascalAI Usage

uses toolslib;
var Tool := LoadTool('mcp-conta-query');
var R := Tool.Call(JsonObj(['tool','conta_reportes','operation','RPT_EstadoResultados','params','{"anio":2026}']));