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

# Set Project

> Set the default project context for the session

Sets the default project context for all subsequent tool calls in this session. Once set, other tools will use this project automatically unless overridden with an explicit `projectId` parameter.

## Input Schema

```json theme={null}
{
  "type": "object",
  "properties": {
    "projectId": {
      "type": "string",
      "description": "Project ID to use as default context"
    },
    "organizationId": {
      "type": "string",
      "description": "Organization ID (optional if user belongs to only one organization)"
    }
  },
  "required": ["projectId"]
}
```

## Parameters

| Parameter        | Type   | Required | Description                                                         |
| ---------------- | ------ | -------- | ------------------------------------------------------------------- |
| `projectId`      | string | Yes      | Project ID to use as default context                                |
| `organizationId` | string | No       | Organization ID (optional if user belongs to only one organization) |

## Response

| Field              | Type   | Description                            |
| ------------------ | ------ | -------------------------------------- |
| `projectId`        | string | The project ID that was set            |
| `projectName`      | string | Display name of the project            |
| `organizationId`   | string | Organization ID the project belongs to |
| `organizationName` | string | Display name of the organization       |

## Example

### Request

```json theme={null}
{
  "projectId": "proj_123"
}
```

### Response

```json theme={null}
{
  "projectId": "proj_123",
  "projectName": "Marketing Website",
  "organizationId": "org_456",
  "organizationName": "Acme Corporation"
}
```

## Usage

After setting the project context, all subsequent tool calls will use this project by default:

```javascript theme={null}
// Set the project context
await mcp.call("set_project", { projectId: "proj_123" });

// These calls now use proj_123 automatically
await mcp.call("search_content", { query: "tutorials" });
await mcp.call("search_assets", { type: "image/*" });
```

## Overriding the Default

You can still specify a different project for individual calls:

```javascript theme={null}
// Uses the default project (proj_123)
await mcp.call("search_content", { query: "tutorials" });

// Uses a different project explicitly
await mcp.call("search_content", {
  projectId: "proj_456",
  query: "tutorials"
});
```
