AI Assistants (MCP) · 7 min read
MCP Tools
Every tool the Lemu AI MCP server offers, the permission it needs and the arguments it takes
Your assistant discovers these tools automatically when it connects, so you don't call them yourself. This page explains what each one does so you know what to ask for and what to approve.
A tool only works if the connection was granted its permission on the consent screen. See Permissions & limits.
| Tool | Permission | What it does |
|---|---|---|
list_agents | agents:read | Lists the agents this connection may use |
get_agent | agents:read | Describes one agent and the details a call needs |
start_call | calls:start | Requests an outbound call with an agent |
get_call | calls:read | Status and outcome of one call |
list_calls | calls:read | Recent calls made through this connection |
cancel_call | calls:cancel | Cancels a call that hasn't been dialed |
create_agent_draft | agents:write | Drafts a new agent from a brief |
update_agent_draft | agents:write | Changes a draft it made |
test_agent | agents:write | Reviews a draft before it can go live |
archive_agent | agents:write | Retires an agent it made |
search_docs | none | Searches the LemuAI docs (how-tos, settings, error messages) |
read_doc | none | Reads one docs page as Markdown |
Docs#
search_docs and read_doc read the public docs at docs.lemuai.com, so every connection has them, whatever its permissions. An assistant uses them to explain how to do something in LemuAI or what an error means while it works in your workspace.
search_docs#
| Argument | Type | Required | Description |
|---|---|---|---|
query | string | Yes | A question, a feature, or an error message as written, up to 500 characters |
limit | integer | No | How many sections to return, 1 to 10. Default 5 |
Returns the best matching sections, each with its page title, section heading, url (with the section's anchor) and text.
read_doc#
| Argument | Type | Required | Description |
|---|---|---|---|
page | string | Yes | A page path like segments/overview, or a url from search_docs |
Returns the page as Markdown (markdown), its url, and truncated when the page was longer than 40,000 characters.
Agents#
list_agents#
Lists the voice agents this connection may use: the agents you ticked on the consent screen. Takes no arguments. Each agent comes back with its agent_id, name and the context variables a call can fill in.
get_agent#
Describes one agent: its name and the context variables a call accepts.
| Argument | Type | Required | Description |
|---|---|---|---|
agent_id | integer | Yes | The id from list_agents |
Calls#
start_call#
Requests an outbound phone call with an agent. It returns straight away with a call_id. The call then waits for a person in your organization to confirm it (see Call confirmation) before it's dialed. Read the outcome with get_call.
| Argument | Type | Required | Description |
|---|---|---|---|
agent_id | integer | Yes | The id from list_agents |
phone_number | string | Yes | Who to call, in international format, like +919876543210 |
counterparty_class | string | Yes | Who this person is to your organization: employee, customer, distributor, supervisor, prospect or other. Your calling policy decides which are allowed |
idempotency_key | string | Yes | A unique key for this call, 8 to 120 letters, digits or _ . : -. Retrying with the same key returns the original call and never dials twice |
context | object | No | Values for the agent's context variables (see get_agent), up to 30 |
callee_timezone | string | No | IANA timezone like America/Chicago. Only needed for countries that span several timezones |
correlation | object | No | Your own ids (for example a ticket number), kept in the audit log next to the call |
Result webhooks (callback_url) are not available for assistant connections. Assistants read results with get_call.
The call is checked against the connection's limits and your organization's calling policy before it's accepted. If something is wrong, the tool returns an error code such as OUTSIDE_CALLING_HOURS. See Error codes.
get_call#
Gets the status and outcome of a call made through this connection.
| Argument | Type | Required | Description |
|---|---|---|---|
call_id | string | Yes | The id returned by start_call |
It returns:
| Field | Description |
|---|---|
call_id, agent_id | Which call and agent |
status | See the statuses below |
callee | The number called, partly masked |
created_at, finished_at | When the call was requested and when it ended |
outcome | How the call ended, once it's over |
duration_s | Call length in seconds |
| Captured details | Any information the agent was set up to collect during the call |
transcript_url | A link to the transcript, only if the connection has calls:transcripts:read |
Call statuses:
| Status | Meaning |
|---|---|
pending_confirmation | Waiting for a person in your organization to confirm it |
initiating | Confirmed and being dialed |
in_progress | The call is live |
completed | The call finished |
failed | The call could not be placed or did not connect |
cancelled | Cancelled before it was dialed |
rejected | A person in your organization declined it |
list_calls#
Lists recent calls made through this connection.
| Argument | Type | Required | Description |
|---|---|---|---|
status | string | No | Only calls with this status |
limit | integer | No | How many to return, 1 to 100 (default 20) |
cancel_call#
Cancels a call that hasn't been dialed yet, for example one still waiting for confirmation. A call that is already ringing or live can't be cancelled this way.
| Argument | Type | Required | Description |
|---|---|---|---|
call_id | string | Yes | The call to cancel |
Drafting agents#
With the agents:write permission, an assistant can write a new voice agent from a short brief. Lemu AI writes the agent's script from the brief and adds fixed safeguards the brief can't remove. A connection can create at most 5 agents a day.
Agents made over MCP are drafts. They can't place calls until they're published, and publishing isn't available to assistant connections. To publish a draft an assistant made, contact support.
create_agent_draft#
| Argument | Type | Required | Description |
|---|---|---|---|
brief | object | Yes | What the agent is for (see below). Not a prompt |
idempotency_key | string | Yes | A unique key for this request. Reusing it returns the agent it already created |
Brief fields:
| Field | Required | Description |
|---|---|---|
objective | Yes | What the call should achieve (10 to 500 characters) |
counterparty_class | Yes | Who the agent will call: employee, customer, distributor, supervisor, prospect or other |
language | Yes | primary language as a tag like hi-IN or en-US, plus up to 5 more it also_understands |
persona | Yes | The agent's name and who it calls on_behalf_of |
capture | No | Up to 20 details to collect, each with a name, type (string, number, boolean or date), whether it's required and an optional prompt |
authority | No | What the agent may and may_not agree to on the call (up to 10 each) |
off_limits_topics | No | Topics the agent must not discuss (up to 20) |
escalation | No | When to end the call politely and flag it, for example when the person asks for a human |
limits | No | max_duration_s (30 to 900, default 300) and max_attempts_per_callee_per_day (1 to 5, default 2) |
context_schema | No | Up to 20 context variables a call can pass in, each with a sensitivity class (public, internal or confidential) and a description |
expires_in_days | No | How long the draft lives before it expires (1 to 90, default 7) |
update_agent_draft#
Changes a draft this connection made. Send the draft_version you last read. If the draft has changed since, the update is refused with STALE_DRAFT so nothing is overwritten.
| Argument | Type | Required | Description |
|---|---|---|---|
agent_id | integer | Yes | The draft to change |
base_version | integer | Yes | The draft_version you read |
brief | object | Yes | The full updated brief |
test_agent#
Reviews the draft as it will run: safeguards present, nothing forbidden, only declared context used. A draft needs a passed review of its exact version before it can be published.
| Argument | Type | Required | Description |
|---|---|---|---|
agent_id | integer | Yes | The draft to review |
archive_agent#
Retires an agent this connection made. Calls already in progress finish normally.
| Argument | Type | Required | Description |
|---|---|---|---|
agent_id | integer | Yes | The agent to archive |
Was this page helpful?
Docs