# scope_denied

Source: https://botpassword.com/docs/outcomes/scope_denied

Outside what any grant allows. The most common refusal.

**Refused by policy.** MCP sends it with `isError: true`.

## What it means

The most common refusal. No live grant covers this request: no grant for the credential, the intent is not on it, the host, path, method, command or argv is outside it, the session's project is outside the grant's, or the request itself is malformed for the intent. The answer does not say which, so it cannot be used to probe grants.

## What the agent should do

Call request_access for the credential and the intent. A person must approve it. If they say no, do not ask again: stop and tell them what you cannot do.

For an intent that `request_access` cannot ask for (`cli_login`, `sign_in`, `fill_totp` and the rest): Asking for this from the agent is not built yet. Stop and tell the person, who can grant it with `bpw grant add`.

## What the person should do

If the agent should have this access, approve its request or add a grant with `bpw grant add`. The daemon's log says what was refused.

## Which intents return it

*Status: `change_password` is planned, not built yet; `rotate` is partly built; `capture_secret` is planned, not built yet.*

- [`request_access`](/docs/intents/request_access)
- [`run_with`](/docs/intents/run_with)
- [`http_request`](/docs/intents/http_request)
- [`cli_login`](/docs/intents/cli_login)
- [`sign_in`](/docs/intents/sign_in)
- [`fill_totp`](/docs/intents/fill_totp)
- [`change_password`](/docs/intents/change_password) (planned, not built yet)
- [`rotate`](/docs/intents/rotate) (partly built)
- [`capture_secret`](/docs/intents/capture_secret) (planned, not built yet)
- [`store_secret`](/docs/intents/store_secret)

*Status: `change_password` is planned, not built yet; `rotate` is partly built; `capture_secret` is planned, not built yet.*

## How it looks

```json
{
  "structuredContent": {
    "outcome": "scope_denied"
  },
  "isError": true
}
```

Intent-specific fields come alongside it when the intent has them.

## Related outcomes

- [`grant_expired`](/docs/outcomes/grant_expired): The grant has ended
- [`not_rotated`](/docs/outcomes/not_rotated): The rotation ended without a change
- [`disclosure_not_granted`](/docs/outcomes/disclosure_not_granted): The grant allows only sealed delivery
- [`minting_blocked`](/docs/outcomes/minting_blocked): The endpoint creates a credential
- [`budget_exhausted`](/docs/outcomes/budget_exhausted): The grant use budget is spent
- [`rate_limited`](/docs/outcomes/rate_limited): The grant rate limit is spent
- [All outcomes](/docs/outcomes) and [Typed outcomes and errors](/docs/typed-outcomes)
