LemuAIDocs

AI Assistants (MCP) · 5 min read

Permissions & Limits

What each MCP permission allows, how calls are confirmed, the calling policy and the error codes assistants can get

Open in ChatGPTOpen in ClaudeMarkdown

Every assistant connection is limited to what an admin approved on the consent screen, and Lemu AI enforces those limits on every request, whatever the assistant sends.

Permissions#

These are the permissions (OAuth scopes) an assistant can ask for. The consent screen lists the ones it asked for, and you can untick any of them before approving. An assistant that doesn't ask for specific permissions gets agents:read and calls:read.

ScopeOn the consent screenAllows
agents:readSee which voice agents you allow it to uselist_agents, get_agent
calls:readRead the status and outcome of calls it placesget_call, list_calls
calls:transcripts:readRead call transcripts (may contain personal data)A transcript link in get_call
calls:startRequest phone calls (a person in your organization confirms each one)start_call
calls:cancelCancel calls that have not been dialed yetcancel_call
agents:writeCreate and edit draft voice agents (it cannot publish them)create_agent_draft, update_agent_draft, test_agent, archive_agent

An assistant can only see and read the calls it placed itself, never other calls in your organization.

Call confirmation#

Every call an assistant requests is created with the status pending_confirmation. Nothing is dialed until a person in your organization confirms it. If they decline, the call becomes rejected. When a call is confirmed, the calling policy and limits are checked again, since time may have passed since the request.

Confirming or declining assistant calls from the Lemu AI dashboard isn't available yet. Until it is, calls requested by an assistant stay in pending_confirmation. Contact support if you need to confirm calls now. The assistant can cancel its own pending calls with cancel_call.

Connection limits#

LimitDefaultNotes
Agents it may useChosen on the consent screenAgents created later are not added
Calls per dayChosen on the consent screenAt most 200
Calls in progress at once3
Calls waiting for confirmation20
Agents it may create per day5Only with agents:write
Connection lifetime90 daysAfter that, approve the connection again

Calling policy#

Your organization's calling policy applies to every call an assistant requests:

  • Who may be called. Each call says who the person is: employee, customer, distributor, supervisor, prospect or other. Only classes the policy allows can be called. By default, a prospect can be called at most twice in total (one call and one follow-up).
  • Calling hours. Calls are only placed inside the allowed hours in the callee's local time. Lemu AI works out the timezone from the phone number. For countries that span several timezones (like the US), the assistant must pass callee_timezone.
  • Do not call. People who asked not to be called, are on your do-not-call list, or opted out of calls (or of everything) on their contact in Lemu AI are never called.
  • AI disclosure. The agent must tell the person they're talking to an AI. Its opening greeting needs to include the {{ai_disclosure}} variable, which Lemu AI replaces with your organization's wording.

Until your organization sets its own policy, a default applies: only employees and supervisors can be called, between 09:00 and 20:00 local time, every day, with the AI disclosure on.

Changing the calling policy or the do-not-call list from the dashboard isn't available yet. Contact support to change them.

Error codes#

When a tool can't do what was asked, it returns an error with a code and a short message. The common ones:

CodeMeaning
SCOPE_MISSINGThe connection wasn't granted the permission this tool needs
INVALID_ARGUMENTSAn argument is missing or has the wrong format
AGENT_NOT_FOUNDThe agent doesn't exist or isn't active
AGENT_NOT_ALLOWEDThe connection may not use this agent
INVALID_PHONEThe phone number isn't valid. Use international format like +919876543210
COUNTRY_NOT_ALLOWEDCalls to this country aren't allowed for this connection
CLASS_NOT_PERMITTEDYour calling policy doesn't allow calls to this class of person
OUTSIDE_CALLING_HOURSIt's outside the allowed hours in the callee's timezone. The error says when the next window opens
TIMEZONE_REQUIREDThe country spans several timezones, so callee_timezone is needed
TIMEZONE_INVALIDcallee_timezone isn't a known timezone name
NUMBER_OPTED_OUTThe person asked not to be called, is on the do-not-call list, or opted out of calls in Lemu AI
CALL_LIMIT_FOR_PERSONThis person has already been called the maximum number of times
DISCLOSURE_MISSINGThe agent's opening greeting doesn't include {{ai_disclosure}}
DAILY_CALL_LIMITThe connection reached its calls-per-day limit
CONCURRENCY_LIMITThe connection already has the maximum calls in progress
PENDING_LIMITToo many calls are waiting for confirmation
DAILY_MINUTES_LIMITThe connection used its daily call minutes
QUOTA_EXCEEDEDYour organization has no call minutes left on its plan
TELEPHONY_NOT_CONFIGUREDTelephony isn't set up for your organization
DIAL_FAILEDThe telephony provider couldn't start the call
CALL_NOT_FOUNDNo such call, or it wasn't made through this connection
CANNOT_CANCELThe call has already been dialed, so it can't be cancelled
INVALID_BRIEFThe agent brief isn't valid. The error lists the problems
STALE_DRAFTThe draft changed since you read it. Read it again and retry
AGENT_QUOTAThe connection already created its 5 agents for today
REVIEW_FAILEDThe draft review found problems to fix
AGENT_EXPIRED / AGENT_ARCHIVEDThe draft expired or was archived
TOKEN_INVALIDThe connection was revoked or expired. Reconnect the assistant

Audit log#

Every request an assistant makes is recorded: which connection, which tool, the outcome, the call it touched and how long it took. Arguments are stored as a fingerprint, not in full, and phone numbers are masked. If you need a copy of the log for a connection, contact support.

Was this page helpful?