Agent as Alice
An MCP tool call runs as the signed-in user. Alice's policies are the boundary for that call.
list_tasks
The handler uses the signed-in user's client. Postgres sees Alice's JWT. There is no separate agent role.
Result
Not run
select id, title, owner_id, status from lab_sandbox.tasks order by id
| Decision | Title | Fields |
|---|---|---|
| Not run | Ship the grant fix |
|
| Not run | Record the demo |
|
| Not run | Review the hiring notes |
|
Policies and grants
SQL is allowed
The tool call is Alice. She receives her tasks and not Bob's.