Skip to content

Agent as Alice

An MCP tool call runs as the signed-in user. Alice's policies are the boundary for that call.

Who is running the query

role authenticated · sub 11111111-1111-1111-1111-111111111111

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

Policies and grants

SQL is allowed

The tool call is Alice. She receives her tasks and not Bob's.