When to use
Useclients for archive, create, import, import_upload, invite_owner, unarchive, update. Use clients_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.
Client file actions
These actions save a client as the firm’s staff do in the console. Saving a client writes to nobody;invite_owner returns a link the professional sends. Only the firm’s owner or an admin archives or unarchives a client.
archive
archive
Archive a client: it stops being billed as active, the agent’s authority in it is turned off and the firm’s signing grants on it are revoked; its books, gestiones and evidence stay. Only the firm’s owner or an admin may. unarchive undoes it.
create
create
Create a client billed to this firm with every fiscal detail the professional gives: its NIF (a DNI or NIE for an autónomo, a CIF for a company), fiscal address, activity (activity_type, activity_description, iae_code), alta date and the rest of its fiscal profile, and its email and phone, saved in this one call as staff save them on the client’s page. A NIF another of the firm’s clients has is refused. Nobody is written to. The answer is the client with its fiscal_profile, what is still missing, and errors naming any refused field and why. Does not enable agent authority.
import
import
Create the new clients of a list, once the professional has seen what import_read found and agreed. Each is billed to this firm, with its name, tax ID and address, and no members: nobody is contacted. A client the firm already has is never duplicated. It tries at most 100 per call: repeat while remaining is above 0 and something was created. client_limit_reached means the firm holds the most clients it may until its first invoice is paid: say so and stop.
import_upload
import_upload
Get a link to upload a list of clients (CSV or Excel, at most 10 MB) when you can run commands: PUT the file to upload_url, then call import_read and import with upload_id. In ChatGPT, pass the file the person attached as file instead. Without a shell, give the person web_upload_url to import it in Clientes.
invite_owner
invite_owner
Invite the client’s owner to Melso by the phone kept in its file, while nobody of the client uses Melso. Only the firm’s owner or an admin may, never to the number of someone of the firm, and only once the file keeps the client’s NIF. Melso cannot write first: the answer’s join_url is the WhatsApp link the professional sends the client. When the client writes to Melso from that number and gives the last four characters of the company’s NIF, they own their company, their chat works in its own records and its usage stays on the firm’s bill. Asked again, it answers the same invitation; a pending one to an older number is withdrawn.
unarchive
unarchive
Bring an archived client back as active, billed again from today, as the console does. Only the firm’s owner or an admin may. The agent’s authority and the signing grants archive revoked stay off until staff give them again in the console.
update
update
Update an affiliated client’s email and phone and complete or correct its fiscal details (NIF, address, activity, IAE, alta date and the rest of its fiscal profile) as staff do on its page; only the fields given change. Its name follows its legal_name or trade_name. Answers its fiscal_profile, what is still missing and errors naming any refused field. Cannot change its kind, billing or professional authority.
Output
create and update return the client with its fiscal_profile, what is still missing and errors naming any refused field. invite_owner returns the join_url, the WhatsApp link the professional sends the client. archive stops billing the client as active, turns the agent’s authority off and revokes the firm’s signing grants, keeping its books; unarchive bills it again from today.
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.
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 the email the client gave