LemuAIDocs

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

Open in ChatGPTOpen in ClaudeMarkdown

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.

ToolPermissionWhat it does
list_agentsagents:readLists the agents this connection may use
get_agentagents:readDescribes one agent and the details a call needs
start_callcalls:startRequests an outbound call with an agent
get_callcalls:readStatus and outcome of one call
list_callscalls:readRecent calls made through this connection
cancel_callcalls:cancelCancels a call that hasn't been dialed
create_agent_draftagents:writeDrafts a new agent from a brief
update_agent_draftagents:writeChanges a draft it made
test_agentagents:writeReviews a draft before it can go live
archive_agentagents:writeRetires an agent it made
search_docsnoneSearches the LemuAI docs (how-tos, settings, error messages)
read_docnoneReads 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#

ArgumentTypeRequiredDescription
querystringYesA question, a feature, or an error message as written, up to 500 characters
limitintegerNoHow 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#

ArgumentTypeRequiredDescription
pagestringYesA 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.

ArgumentTypeRequiredDescription
agent_idintegerYesThe 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.

ArgumentTypeRequiredDescription
agent_idintegerYesThe id from list_agents
phone_numberstringYesWho to call, in international format, like +919876543210
counterparty_classstringYesWho this person is to your organization: employee, customer, distributor, supervisor, prospect or other. Your calling policy decides which are allowed
idempotency_keystringYesA unique key for this call, 8 to 120 letters, digits or _ . : -. Retrying with the same key returns the original call and never dials twice
contextobjectNoValues for the agent's context variables (see get_agent), up to 30
callee_timezonestringNoIANA timezone like America/Chicago. Only needed for countries that span several timezones
correlationobjectNoYour 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.

ArgumentTypeRequiredDescription
call_idstringYesThe id returned by start_call

It returns:

FieldDescription
call_id, agent_idWhich call and agent
statusSee the statuses below
calleeThe number called, partly masked
created_at, finished_atWhen the call was requested and when it ended
outcomeHow the call ended, once it's over
duration_sCall length in seconds
Captured detailsAny information the agent was set up to collect during the call
transcript_urlA link to the transcript, only if the connection has calls:transcripts:read

Call statuses:

StatusMeaning
pending_confirmationWaiting for a person in your organization to confirm it
initiatingConfirmed and being dialed
in_progressThe call is live
completedThe call finished
failedThe call could not be placed or did not connect
cancelledCancelled before it was dialed
rejectedA person in your organization declined it

list_calls#

Lists recent calls made through this connection.

ArgumentTypeRequiredDescription
statusstringNoOnly calls with this status
limitintegerNoHow 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.

ArgumentTypeRequiredDescription
call_idstringYesThe 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#

ArgumentTypeRequiredDescription
briefobjectYesWhat the agent is for (see below). Not a prompt
idempotency_keystringYesA unique key for this request. Reusing it returns the agent it already created

Brief fields:

FieldRequiredDescription
objectiveYesWhat the call should achieve (10 to 500 characters)
counterparty_classYesWho the agent will call: employee, customer, distributor, supervisor, prospect or other
languageYesprimary language as a tag like hi-IN or en-US, plus up to 5 more it also_understands
personaYesThe agent's name and who it calls on_behalf_of
captureNoUp to 20 details to collect, each with a name, type (string, number, boolean or date), whether it's required and an optional prompt
authorityNoWhat the agent may and may_not agree to on the call (up to 10 each)
off_limits_topicsNoTopics the agent must not discuss (up to 20)
escalationNoWhen to end the call politely and flag it, for example when the person asks for a human
limitsNomax_duration_s (30 to 900, default 300) and max_attempts_per_callee_per_day (1 to 5, default 2)
context_schemaNoUp to 20 context variables a call can pass in, each with a sensitivity class (public, internal or confidential) and a description
expires_in_daysNoHow 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.

ArgumentTypeRequiredDescription
agent_idintegerYesThe draft to change
base_versionintegerYesThe draft_version you read
briefobjectYesThe 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.

ArgumentTypeRequiredDescription
agent_idintegerYesThe draft to review

archive_agent#

Retires an agent this connection made. Calls already in progress finish normally.

ArgumentTypeRequiredDescription
agent_idintegerYesThe agent to archive