Skip to main content
Glama

Octobooks

Post an intercompany pair

intercompany

Intercompany between companies of this account (round 622). action=pair proposes one entry with both sides from this company (or company): to_company (the other company's code), date (YYYY-MM-DD), amount (what this company is owed by the other for it; a minus amount turns it round), narration, reference (both sides keep it), kind (trade, the default: a sale, recharge or fee on the current accounts, its income and cost are eliminated in the group; payment: money moved; other: a loan or its interest, on the loan accounts), from_other and to_other (each side's other account: income here and cost there, the bank on both for a payment), from_account and to_account (the intercompany balance accounts; left out: the only one). This company's side is the journal of the proposal; on release the other company posts its side in the same transaction and both are linked as a pair, as the owner's switches say who releases. The differences between the companies, named entry by entry: the intercompany report. Books in two currencies pair too: the amount is in this company's currency, the other company books it in that currency at to_rate (its book units per one unit; left out: the rate on file for the day). action=account with to_company names the balance account each keeps with the other: from_account here, to_account there, codes of each chart (both left out: each chart's standard intercompany account, added where missing); action=accounts lists those kept here. Round 865: from_tax and to_tax, a tax rate (code or name) on each side's other line, the amount then being gross (a recharge with VAT; a reverse charge code across a border); left out, no VAT on that side. Round 910: action=vat_group sets up or changes a UK VAT group (VAT Act 1994 s43) or a German or Austrian Organschaft: members (company codes, comma separated, one country), representative (the representative member or Organträger, a member), vat_number (the group's, optional), valid_from; the representative's VAT return is then the group's return and a pair between members takes the group's code (outside the scope, disregarded). action=vat_group_end with valid_to ends the group of this company; action=vat_group_show shows it. Round 1067: action=stock_profit gives the stock this company holds that it bought from to_company (amount: stock held at cost here, in this company's currency), margin_percent (the seller's margin on that cost) and date (as at); the group takes that profit out of stock until a later figure replaces it (0 ends it). action=stock_profit_show lists the figures on file here. Round 1068: without a figure typed the group reads it from the stock records (batches received with bought_from, and the seller's own cost of them); a typed figure overrides them from its date; action=stock_profit_from_stock (to_company, date) goes back to the stock records from that date.

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": {
      "action": "<action>"
    },
    "name": "intercompany"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo
kindNotrade
actionYes
amountNo
reasonNo
to_taxNo
companyNo
membersNo
to_rateNo
from_taxNo
to_otherNo
valid_toNo
narrationNo
referenceNo
from_otherNo
to_accountNo
to_companyNo
valid_fromNo
vat_numberNo
from_accountNo
margin_percentNo
representativeNo
idempotency_keyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

It goes well beyond the annotations by explaining release behavior, linked pair posting, owner-controlled release, currency conversion via to_rate, VAT group consequences, and stock profit override rules. The annotations only establish non-readOnly, non-destructive, non-idempotent status, while the description adds substantive 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.

Conciseness2/5

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

The description is a dense single paragraph with version-round notes (622, 865, 910, 1067, 1068) and many parenthetical asides, making action variants hard to scan. Much content is relevant, but the structure and length substantially reduce usability.

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

Completeness4/5

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

For a complex 23-parameter, multi-action tool, it covers many defaults, side effects, and cross-company behavior, and correctly omits return-value details because an output schema exists. It remains incomplete for reason and idempotency_key and does not cleanly delimit which parameters apply to which action.

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

Parameters4/5

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

With 0% schema description coverage, the description defines most of the 23 parameters, including amount direction, kind categories, account roles, tax/rate defaults, VAT group fields, and stock profit fields. It leaves reason and idempotency_key unexplained, so it does not fully compensate for the bare schema.

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 identifies a specific multi-action intercompany workflow: proposing pairs, setting balance accounts, managing VAT groups, and recording stock profit. It is clear about the resource and main actions, but does not explicitly distinguish itself from sibling tools such as report or release.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives action-by-action guidance, including that action=pair proposes an entry, action=account names accounts, and action=accounts lists them, plus defaults such as kind=trade and omitted rate/tax behavior. It does not provide explicit when-not-to-use guidance or name sibling alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources