MCP · Tasks
Respond to a task
Answers an open task from the accountant: posts a message, attaches a document through an upload token, or closes the task as approved or rejected.
Description for models
Sent verbatim in tools/list. It's written for the model, so it says when to use the tool.
Arguments
What to say back to the accountant, in the user's own words. Post what they told you rather than a summary of it.
Close the task instead of answering it. Only when the user says the request is settled; answering is what a task normally wants. To refuse a request, send the refusal as message.
The id of the task to answer, from list_open_tasks.
A document answering the task. Most tasks ask for one. Call create_bill_upload for an upload URL and token, PUT the document to that URL, then pass the token here. It can travel with message in the same call.
Added by the server
On every tool that acts on one companyThe id of the company this applies to. This connection covers a single company, which is filled in for you, so you can leave this out.
Result
content[0].text, starting with Company: and the company name.isError: true. The text says what went wrong and what to tell the user.workspace argument, the server asks which company the call is for. A client that can't ask gets an error that lists the companies.Tools return plain text with no output schema. This example follows the tool's real format, but the values are made up.