Skip to main content
Keep the firm’s clients. invite_owner returns its owner’s WhatsApp invite link. archive (owner or admin) ends its billing, agent authority and signing grants; unarchive undoes it. create’s request_id is a UUID you generate; reuse it to retry. Actions (* required): create(request_id*, name*, kind*, …); update(id*, …); invite_owner/archive/unarchive(id*); import(exclude_tax_ids, file, upload_id); import_upload(filename*, content_type*, size_bytes*). Availability: Gestoría. Listed only on a gestoría’s connection. A member of the firm sees only the clients assigned to them. Melso for gestorías. The live tool list is authoritative: the company’s plan and your role can narrow this contract. Understand access.

When to use

Use clients 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; send action 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 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 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.
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.
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 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.
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 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 the arguments of each call, in order.
1

Save the email the client gave

The first call as a request. Use an OAuth access token issued for this MCP resource and replace the example identifiers with values from your own company. Write actions change data.