Skip to main content
Glama

Octobooks

Write customers and suppliers

contact_set
Destructive

Write the customers and suppliers of the company. Suppliers too are made and changed here (name, VAT number, country, archive, address, persons, terms, defaults) while the owner's switch for the AI's suppliers is on, as it is unless switched off. bank (a supplier): {sort_code, account_number, iban, bic, and document_id or bill_id it comes from}: new bank details wait for the owner's one tap on Home (old and new shown masked), unless the owner's switch Supplier bank details lets them in at once; a bad IBAN, sort code or account number is refused; payments use confirmed details only. what=save: side (customer or supplier), code (an existing contact to change; left out with a new name, a code is made from the name) and any of name, email, phone, website, line1, line2, city, postcode, country (two letters or the name), vat_number, buyer_kind (business, private or public, a customer; public and country AT: the invoice goes to e-Rechnung.gv.at, no Leitweg ID), our_supplier_number (a customer: the Lieferantennummer the Austrian federal administration gave the seller), bbg (a customer buying under a contract of the Bundesbeschaffung GmbH: {"our_partner", "partner", "contract"}, the BBG partner numbers of the seller and the customer and the BBG Geschäftszahl, on its e-Rechnung.gv.at files), payment_terms_days with payment_terms_kind (days: that many days after the invoice date, the default; eom_plus: that many days after the end of the invoice's month; eom_next: the end of the following month, no days), currency, default_account and default_tax_code (the account and tax rate new lines take; a supplier's tax rate set here stands in for the account's own rate on each of its lines; an exempt, outside the scope, reverse charge or blocked account rate stays), po_reference (a customer: the purchase order number each new invoice to it starts with as its order_reference), persons (contact persons [{name, email, phone, role}], replaces the list); a field left out stays, an empty text clears it. A save by name alone changes the contact of that name; new=true means a new contact: a name on file is refused naming the one there, unless second=true makes a second contact of that name. what=archive or restore: side and code. what=delete: side and code of a customer no invoice, quote or repeating invoice names, or a supplier no bill, entry or purchase order names (one that is named is archived). what=merge: side, code (the one merged) and into (the one kept): the merged one's invoices, bills and open items then show on the one kept, the merged one is archived. what=import: side (for rows without a type), and rows (objects keyed by the field names above, or type: customer, supplier, both) or csv (the text of an export of Xero, QuickBooks, Zoho, sevDesk, Lexware; columns recognised by their headers) or document_id (an uploaded CSV or Excel file): a contact of the same code, else name, is updated. A supplier's iban, bic, sort_code and account_number columns: under the owner's switch Supplier bank details, Ask me, they wait as one ask on Home for the whole import (the suppliers are in at once); Without asking saves them. what=edi (round 723): code (a customer) and edi {on, gln (the customer's GLN), our_gln, delivery_gln, method file, sftp or as2, endpoint (sftp://user@host/folder or https://...), as2_id, our_as2_id, their_cert (PEM), messages [INVOIC, DESADV], mdn sync or async}: the key account then gets each invoice and delivery note as EANCOM D.96A at issue; by AS2 its orders and acknowledgements come in at the company's AS2 address. what=vat_check: vat_number (with its country, DE811569869), or code (a customer): asks the EU register (VIES) now and keeps the answer with its consultation number. what=vat_recheck: the customers in other EU countries whose newest check is 30 days old, missing or unanswered (or the one named by code) are asked again; Octobooks also does this by itself every day. what=files: side and code: the files kept on the contact (a contract, a price list, the files a switch from Xero brought from its purchase orders and quotes). what=attach: side, code, document_id (a file in Documents) and reason (the reference): keeps that file on the contact. what=file_remove: side, code and document_id: takes it off the contact (it stays in Documents). Books nothing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "contact_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
bbgNo
csvNo
ediNo
newNo
bankNo
cityNo
codeNo
intoNo
nameNo
rowsNo
sideNocustomer
whatNosave
emailNo
line1No
line2No
phoneNo
reasonNo
secondNo
companyNo
countryNo
personsNo
websiteNo
currencyNo
postcodeNo
buyer_kindNo
vat_numberNo
document_idNo
po_referenceNo
default_accountNo
idempotency_keyNo
default_tax_codeNo
payment_terms_daysNo
payment_terms_kindNo
our_supplier_numberNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / po_reference
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Po Reference"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / payment_terms_kind
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Payment Terms Kind"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already flag destructive, non-idempotent writes, but the description adds substantial behavioral context: bank details wait for owner approval unless a switch allows immediate entry, bad IBAN/sort code/account number is refused, merge archives the source and moves open items, imports update by code then name, and VAT checks query VIES immediately. This is rich context beyond annotations, with no contradiction.

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 purpose is front-loaded, but the rest is a single run-on block with nested parentheticals covering a dozen operations. Length may be justified by complexity, yet the lack of bullets or sections makes it hard to scan, and several clauses could be tightened.

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?

Given 34 parameters, 13 operation modes and an output schema, the description covers most behavior and parameter meaning. Minor gaps remain for company and idempotency_key, and required/default semantics are only partly stated, so it is nearly but not fully complete.

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?

Schema description coverage is 0% across 34 parameters, so the description must carry the burden. It defines most parameters in prose, including nested structures (bank, bbg, edi, persons) and conditional meanings for code, new, second, into, rows, csv and document_id. It omits company and idempotency_key and mixes definitions into a dense paragraph, so 4 rather than 5.

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 opening sentence 'Write the customers and suppliers of the company' names the resource and mutation, and the what=... enumeration distinguishes save, archive, restore, delete, merge, import, edi, vat_check, vat_recheck, files, attach and file_remove. It does not differentiate this tool from sibling *_set tools, so it falls short of a 5.

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 describes conditions for individual operations, such as deleting only when no invoice/bill/order names the contact and requiring second=true to create a duplicate name. However, it gives no explicit guidance on when to choose contact_set over related tools, nor on prerequisites or ordering across the many operations, so usage remains implied.

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