Skip to main content
Glama
contabridge-mcp

contabridge-mcp

Build journal import file

build_journal
Read-onlyIdempotent

Converts composed journal entries, including invoice or payroll data, into import files for QuickBooks, Xero, and other formats; rejects unbalanced entries before export.

Instructions

Write journal entries you composed (e.g. from invoices or a payroll summary) as an import file.

entries: [{"date": "2026-03-31", "number": 1 (optional), "lines": [{"account": "64000000", "debit": "1500.00", "concept": "Nómina marzo"}, {"account": "47510000", "credit": "225.00"}, ...]}]. Entries must balance: an unbalanced entry is refused before any charge, with the difference. target_format accepts every format of convert_journal, including quickbooks_iif, quickbooks_csv and xero_csv (date_style / xero_tax_rate as there).

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": {
      "entries": "<entries>",
      "target_format": "<target_format>"
    },
    "name": "build_journal"
  }
}

Input Schema

NameRequiredDescriptionDefault
entriesYes
a3_formatNo
date_styleNo
fiscal_yearNo
company_codeNo00001
account_splitNo
decimal_commaNo
target_formatYes
xero_tax_rateNoNo VAT
account_digitsNo
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

A3.6/5.0
Behavior4/5

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

Beyond the provided annotations, the description discloses important validation behavior: entries must balance, and an unbalanced entry is refused with the difference before any charge. It also clarifies that target_format supports all convert_journal formats. The annotations already cover read-only and idempotent behavior, so this adds meaningful operational context.

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 description is compact and front-loads the core action before giving an entries example and format compatibility notes. The wording is mostly efficient, though the phrase 'before any charge' is slightly unclear.

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

Completeness3/5

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

For a tool with 11 parameters, the description covers the two required parameters and some format options but omits most optional parameters. Since an output schema exists, return values need not be explained, but the optional configuration parameters remain ambiguous.

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

Parameters3/5

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

Schema description coverage is 0%, so the description carries the burden. It explains the entries structure well, including date, number, lines, account, debit, credit, and concept, and describes target_format plus date_style/xero_tax_rate. It leaves several other parameters such as fiscal_year, company_code, account_split, decimal_comma, account_digits, and start_entry_number undocumented.

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 action and output: write composed journal entries as an import file. It distinguishes composed entries from conversions by referencing convert_journal only for target formats, though it does not explicitly differentiate from siblings like invoices_to_journal or bank_to_journal.

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?

It gives implied usage context by saying entries are ones 'you composed' such as from invoices or payroll summaries, and it points to convert_journal for supported formats. However, it does not explicitly state when to use this tool instead of alternatives such as convert_journal, validate_journal, or invoices_to_journal.

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