# Permissions and Scopes

The five areas an AI agent can be given on Foundry, the Read and Write scope for each, and the checks every call still goes through.

For every connected app and every personal token, you choose Read and Write separately in each area. An agent only sees the tools those choices allow, and every call is checked again against your real permissions on Foundry at that moment: your store roles, course ownership, Hub roles and Room permissions, and your plan. An agent can never do more than you could do yourself.

## Areas and Scopes

There are ten scopes, a Read and a Write for each of five areas. The consent page and [AI Agents settings](https://joinfoundry.xyz/workspace/agents) show them by area name.

| Area | Scope | What it allows |
| --- | --- | --- |
| Marketplace and stores | `marketplace:read` | Read your stores, listings with their stats, and your purchases and library. Also read the SDK setup of a game you manage in Glint Studio. |
| Marketplace and stores | `marketplace:write` | Create, edit, publish and unpublish your listings and releases, upload their files through the normal inspection and Package X-Ray, and edit your store profile. Also create Glint game drafts and edit a game's details, achievements and leaderboards. |
| Learning | `learning:read` | Read your enrollments and progress, and the lessons of courses you are enrolled in or wrote. |
| Learning | `learning:write` | Create and edit your courses, publish and unpublish them, and mark your own lesson progress. |
| Projects and Hubs | `projects:read` | Read your projects, roles and applications, and your Hubs: team context, card briefs, threads, file scope locks and card comments. |
| Projects and Hubs | `projects:write` | Create and edit projects and roles, close roles, shortlist or decline applications, create Hubs and Rooms, post Room messages, create, edit, assign, move and comment on Kanban cards, claim file scope and post Session Capsules. |
| Alloy Home | `home:read` | Read For You, Following, Activity, Bookmarks and your notifications. |
| Alloy Home | `home:write` | Post, reply, Spark, repost, bookmark, delete your own posts and mark notifications read. |
| Inbox | `inbox:read` | Read your direct, recruitment and support conversations. |
| Inbox | `inbox:write` | Send messages and replies, and start a direct message. |

Hub Rooms are part of Projects and Hubs. The Inbox area covers only direct, recruitment and support conversations. Public tools need no scope. The [Tool Reference](https://joinfoundry.xyz/help/developers/mcp-tools) lists the scope each tool needs.

## Read and Write Are Separate

Write doesn't include Read. An area with only Write gets that area's write tools and none of its read tools, with two exceptions. In Learning, Write also offers `foundry_list_my_courses` and `foundry_get_course_draft`, which read the courses you write. In Marketplace and stores, Write also offers `glint_list_my_games` and `glint_studio_game_config`, which read the Glint games you manage. Agents are told to read an item before changing it, so give an area Read as well when you give it Write.

A connection's areas are set when you approve it or create the token. To change them, disconnect the app or revoke the token in [AI Agents settings](https://joinfoundry.xyz/workspace/agents), then connect again or create a new token.

## Checks on Every Call

A scope only decides which tools are offered. Each call then runs through the same services and checks as the matching page on Foundry:

- **Your permissions now.** Store roles, course ownership and enrollment, project ownership, Hub roles and Room permissions are checked at the moment of the call, so a tool can still refuse.
- **Terms.** Publishing a listing, release or course needs your agreement to the current Terms of Service, which only you can give on Foundry.
- **Site limits.** Writes such as posts, messages and new courses also count toward the site's own limit for that action.

Some areas have their own rules:

| Area | Rule |
| --- | --- |
| Marketplace and stores | A listing with open preorders can't be unpublished through MCP, because that cancels them. A release for a preorder listing, or for a listing with open preorders, can't be published through MCP, because that charges them. You do both on Foundry. |
| Learning | Lessons are readable only in courses you are enrolled in or wrote, including a lesson the course page previews to everyone. |
| Projects and Hubs | Only a project's owner can edit it. Agents never join a Hub for you: Board and Room tools need you to be a member already. Creating a Hub or Room needs Alloy on your plan, and Board changes and Room messages need Alloy through your plan or an active project collaboration. |
| Inbox | Starting a direct message follows the other member's privacy and block settings. Paid offers and payments are never sent through the inbox tools. |

## Changes That Need the Exact Item

Deleting, unpublishing, declining and closing always need the exact item's id, and they can't be undone through MCP: `foundry_unpublish_listing`, `foundry_unpublish_course`, `foundry_close_role`, `foundry_decline_application` and `foundry_delete_post`. `foundry_claim_task_scope` is marked the same way, because it replaces a card's file scope.

Edits take the complete record and its current revision from the matching get tool, so an agent can't overwrite a change it hasn't seen. Card edits and store profile edits change only the fields sent.

## Older Personal Tokens

Tokens created before per-area permissions have Projects and Hubs: Read. Some of them can also claim card file scope and post Session Capsules, which settings shows as "May claim card file scope and post Session Capsules". That allows `foundry_claim_task_scope` and `foundry_post_session_capsule` and no other write tool. New tokens use `projects:write` for both.

What agents can never do under any scope is in [Privacy and Agent Limits](https://joinfoundry.xyz/help/developers/mcp-privacy#what-agents-can-never-do).
