When to use
Usecontacts for delete, merge, upsert. Use contacts_read for the companion actions. The live tool list determines availability.
Input
Actions
The tool’s schema combines the fields of every action. Each action accepts only its own fields below; sendaction with them.
Write actions
These actions change data. The server lists them only with a plan that includes the tools.delete
delete
Delete a contact the person asks to remove. Refused if an invoice names it: merge duplicates instead. Existing income, expenses and their evidence are retained.
merge
merge
Merge duplicate contacts when the person asks. Read both first and choose which id to keep as target_id. Keeps the target’s populated fields, fills missing data, combines customer/supplier roles and notes, moves invoice associations and remembers the source’s identity for income, expenses and future document intake. Fiscal documents and posted history stay unchanged. Different nonempty fiscal identities are refused. Retrying the same source and target is safe.
upsert
upsert
Save what the person tells you about a customer or supplier, so it is there next time. With id, only the fields given change (an empty string clears one). Without id, name is required and a contact with the same tax ID is completed instead of duplicated: the fields given replace its own, empty ones keep them and is_customer or is_supplier true adds that role. Never invent a value.
Output
upsert returns the saved contact. merge returns the kept contact after combining compatible duplicate identities; fiscal documents remain unchanged. delete returns a deletion receipt and refuses a contact named by an invoice.
The result uses MCP content blocks; JSON payloads are encoded in text and may also appear in structuredContent. Check isError before reading a success payload. When the server declares an outputSchema, it is reproduced below. Check the action result and its declared fields before reporting success.
Declared output schema
Example
Use the actions of this tool in the order shown; its companion tool covers the other actions. These are thearguments of each call, in order.
1
Save a new customer