Skip to main content
Glama
contabridge-mcp

contabridge-mcp

Convert journal between accounting programs

convert_journal
Read-onlyIdempotent

Convert accounting journals between Spanish formats (A3, ContaPlus, ContaSol) and CSV, QuickBooks, or Xero, with automatic source format detection.

Instructions

Convert a libro diario (journal) between Spanish accounting programs.

Formats: a3 (a3ASESOR/a3ECO/a3CON SUENLACE.DAT, apuntes tipo 0), contaplus_csv (Sage ContaPlus / Sage 50 Diario CSV, 142 fields), contaplus_ascii (XDiario.txt fixed width), contasol (ContaSol APU.ods, destination only: save content_base64 as APU.ods and import it in Utilidades > Importaciones), csv (spreadsheet with header: Holded, Excel, any ERP; columns auto-detected, override with column_map), quickbooks_iif (QuickBooks Desktop general journal), quickbooks_csv (QuickBooks Online journal import), xero_csv (Xero manual journal import). The source is auto-detected. QuickBooks/Xero accounts are names or codes, not PGC subaccounts: use account_map to translate them when converting to or from A3/ContaPlus.

Args: target_format: a3 | contaplus_csv | contaplus_ascii | contasol | csv | quickbooks_iif | quickbooks_csv | xero_csv. content: The file as text. content_base64: raw bytes as base64 (Latin-1/CP1252 files with Ñ). source_format: auto (default) or one of the formats. account_digits: Resize every subaccount to this length (ContaPlus uses a fixed length, e.g. 8); also expands '430.1' shorthand. 0 keeps them. account_split: Where zeros are inserted/removed when resizing (default 4: 4300001 -> 43000001). account_map: Exact account renames applied first, e.g. {"5720001": "57200005"}. start_entry_number: Renumber entries from this number (ContaPlus requires numbers; A3 does not use them). company_code: A3 company code (1-99999). a3_format: 5 (512-byte records, current) or 4 (256, old). column_map: For csv sources, e.g. {"debit": "Importe D", "account": "Cta"}. Keys: number, date, account, account_name, debit, credit, amount, dh, concept, document. csv_delimiter: For csv source/target; auto-detected on read, ';' on write. decimal_comma: csv output with decimal comma (Spanish Excel). fiscal_year: flag dates outside it. strict: Refuse to write a file with validation errors (default), so the target program never rejects it. date_style: Dates in QuickBooks/Xero files, read and write: mdy (US, QuickBooks default), dmy (UK/AU/NZ, Xero default) or iso. xero_tax_rate: TaxRate written on every Xero line, as named in that Xero organisation (UK "No VAT", AU "BAS Excluded", NZ "No GST", US "Tax Exempt").

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target_format": "<target_format>"
    },
    "name": "convert_journal"
  }
}

Input Schema

NameRequiredDescriptionDefault
strictNo
contentNo
a3_formatNo
column_mapNo
date_styleNo
account_mapNo
fiscal_yearNo
company_codeNo00001
account_splitNo
csv_delimiterNo
decimal_commaNo
source_formatNoauto
target_formatYes
xero_tax_rateNoNo VAT
account_digitsNo
content_base64No
start_entry_numberNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • addedInput schema / properties / date_style
      Added value: +{
      +  "default": "",
      +  "title": "Date Style",
      +  "type": "string"
      +}
    • addedInput schema / properties / xero_tax_rate
      Added value: +{
      +  "default": "No VAT",
      +  "title": "Xero Tax Rate",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false. The description adds useful behavioral context beyond that: source auto-detection, strict validation by default, ContaSol destination restrictions, account_map application order, and renumbering behavior. It is strong, though not exhaustive about outputs or error handling, which is partly covered by the output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is long but proportional to a 17-parameter conversion tool with many format-specific behaviors. It is front-loaded with purpose and formats, then structured as parameter notes, with little wasted wording, though the dense format list makes it less scannable than ideal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity, the description is complete: it covers all parameters, format constraints, source detection, mapping behavior, validation strictness, and key format-specific caveats. Since an output schema exists, it does not need to explain return values, and the remaining behavioral surface is adequately addressed.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate for all 17 parameters. It does so thoroughly, explaining target_format values, content vs content_base64, source_format, account resizing/splitting/mapping, entry numbering, A3 company/format options, column_map keys, CSV delimiter and decimal behavior, fiscal_year, strict mode, date styles, and xero_tax_rate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: convert a journal between Spanish accounting programs, with a concrete format list and source auto-detection. It is clear what the tool does, but it does not explicitly distinguish itself from sibling tools such as build_journal, validate_journal, or detect_format.

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?

Usage context is implied through format-specific notes, such as ContaSol being destination-only and account_map being needed for QuickBooks/Xero account translation. However, there is no explicit when-to-use versus when-not-to-use guidance and no named alternatives among sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.