# Permissions & Limits

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

URL: https://docs.lemuai.com/mcp/permissions

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`.

| Scope | On the consent screen | Allows |
|---|---|---|
| `agents:read` | See which voice agents you allow it to use | `list_agents`, `get_agent` |
| `calls:read` | Read the status and outcome of calls it places | `get_call`, `list_calls` |
| `calls:transcripts:read` | Read call transcripts (may contain personal data) | A transcript link in `get_call` |
| `calls:start` | Request phone calls (a person in your organization confirms each one) | `start_call` |
| `calls:cancel` | Cancel calls that have not been dialed yet | `cancel_call` |
| `agents:write` | Create 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.

**Note:** 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

| Limit | Default | Notes |
|---|---|---|
| Agents it may use | Chosen on the consent screen | Agents created later are not added |
| Calls per day | Chosen on the consent screen | At most 200 |
| Calls in progress at once | 3 | |
| Calls waiting for confirmation | 20 | |
| Agents it may create per day | 5 | Only with `agents:write` |
| Connection lifetime | 90 days | After 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.

**Note:** 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:

| Code | Meaning |
|---|---|
| `SCOPE_MISSING` | The connection wasn't granted the permission this tool needs |
| `INVALID_ARGUMENTS` | An argument is missing or has the wrong format |
| `AGENT_NOT_FOUND` | The agent doesn't exist or isn't active |
| `AGENT_NOT_ALLOWED` | The connection may not use this agent |
| `INVALID_PHONE` | The phone number isn't valid. Use international format like `+919876543210` |
| `COUNTRY_NOT_ALLOWED` | Calls to this country aren't allowed for this connection |
| `CLASS_NOT_PERMITTED` | Your calling policy doesn't allow calls to this class of person |
| `OUTSIDE_CALLING_HOURS` | It's outside the allowed hours in the callee's timezone. The error says when the next window opens |
| `TIMEZONE_REQUIRED` | The country spans several timezones, so `callee_timezone` is needed |
| `TIMEZONE_INVALID` | `callee_timezone` isn't a known timezone name |
| `NUMBER_OPTED_OUT` | The person asked not to be called, is on the do-not-call list, or opted out of calls in Lemu AI |
| `CALL_LIMIT_FOR_PERSON` | This person has already been called the maximum number of times |
| `DISCLOSURE_MISSING` | The agent's opening greeting doesn't include `{{ai_disclosure}}` |
| `DAILY_CALL_LIMIT` | The connection reached its calls-per-day limit |
| `CONCURRENCY_LIMIT` | The connection already has the maximum calls in progress |
| `PENDING_LIMIT` | Too many calls are waiting for confirmation |
| `DAILY_MINUTES_LIMIT` | The connection used its daily call minutes |
| `QUOTA_EXCEEDED` | Your organization has no call minutes left on its plan |
| `TELEPHONY_NOT_CONFIGURED` | Telephony isn't set up for your organization |
| `DIAL_FAILED` | The telephony provider couldn't start the call |
| `CALL_NOT_FOUND` | No such call, or it wasn't made through this connection |
| `CANNOT_CANCEL` | The call has already been dialed, so it can't be cancelled |
| `INVALID_BRIEF` | The agent brief isn't valid. The error lists the problems |
| `STALE_DRAFT` | The draft changed since you read it. Read it again and retry |
| `AGENT_QUOTA` | The connection already created its 5 agents for today |
| `REVIEW_FAILED` | The draft review found problems to fix |
| `AGENT_EXPIRED` / `AGENT_ARCHIVED` | The draft expired or was archived |
| `TOKEN_INVALID` | The 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.
