> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve Required Scope • AI Agent SDK

> resolve_required_scope: Resolve the scope required to invoke ``method`` with ``params``.

# resolve\_required\_scope

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**protocols**](../modules/protocols) module.

Resolve the scope required to invoke `method` with `params`.

Default-deny: an unclassified/unknown method requires `ADMIN` so new
control surface is closed until explicitly classified — the omission fails
**closed** rather than open.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def resolve_required_scope(method: str, params: Optional[Dict[str, Any]]) -> OperatorScope
```

## Parameters

<ParamField query="method" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="params" type="Optional" required={false}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="OperatorScope">
  The result of the operation.
</ResponseField>

## Uses

* `desc.resolve`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L5693">
  `praisonaiagents/gateway/protocols.py` at line 5693
</Card>
