---
title: "MCP tools: Passport"
description: "The tools of the MCP server under Passport. The outside services an inbox's address is signed up for, the verification codes and sign-in links they send, and how the address signs in to the ones that accept Sign in with Doorman."
url: https://doorman.fyi/docs/mcp/tools/passport
markdown: https://doorman.fyi/docs/mcp/tools/passport.md
area: "SDKs and tools"
section: "MCP server"
---

# MCP tools: Passport

The tools of the MCP server under Passport. The outside services an inbox's address is signed up for, the verification codes and sign-in links they send, and how the address signs in to the ones that accept Sign in with Doorman.

Source: https://doorman.fyi/docs/mcp/tools/passport

## passport_get

Tool:
```text
passport_get
```

Operation [`passport.get`](https://doorman.fyi/docs/reference/passport.md#passport-get): `GET /v1/passport`

Whether the account emails its owner when an authenticated service sends a password reset, a security notice, or a verification code or sign-in link that no recent agent action explains, with the owner address and whether email sending is available. And what the account's agents may do alone when they sign in with Doorman: sign in to a service the owner has not allowed yet, and tell such a service who owns them. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

The tool takes no input.

Example call:
```json
{
  "name": "passport_get",
  "arguments": {}
}
```

## passport_update

Tool:
```text
passport_update
```

Operation [`passport.update`](https://doorman.fyi/docs/reference/passport.md#passport-update): `PATCH /v1/passport`

Changes the settings given; the ones left out stay as they are. Each change that loosens something needs a console session unless the account allows its account keys to (403 `session_required`): switching owner alert emails off, letting agents sign in to services the owner has not allowed yet, and telling those services who owns the agent. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`.
- Annotations: `readOnlyHint: false`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool changes something; calling it again with the same input has no further effect.

**Input**
- `alertEmails` (boolean, optional): Whether to email the account owner when a service receives an unexplained code or link, a password reset, or a security notice.
- `agentSignIn` (boolean, optional): Whether an agent may sign in to a service the owner has not allowed yet.
- `shareOwner` (boolean, optional): Whether a service an agent signed in to alone is told who owns the agent, when it asks.
- `briefingEmails` (boolean, optional): Whether to email the account owner a daily briefing in counts only. The first one covers what arrives from the moment it is switched on.
- `briefingHour` (integer, optional): The hour of the day, in `timeZone`, at which the briefing is sent.
- `timeZone` (string, optional): The IANA time zone `briefingHour` is read in. Example: `America/Guayaquil`

Example call:
```json
{
  "name": "passport_update",
  "arguments": {
    "alertEmails": true
  }
}
```

## services_list

Tool:
```text
services_list
```

Operation [`services.list`](https://doorman.fyi/docs/reference/passport.md#services-list): `GET /v1/services`

The outside services the account's addresses are signed up for, newest activity first: found in authenticated mail, declared by an agent, or added by a person. Without `status`, archived ones are left out. Inbox-scoped keys see their own inbox's only. OAuth: requires mail:read.

- Offered to: A connected agent with an approval that covers `mail:read`. The default agent permissions cover it. With a key: any API key, or a console session.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string, optional): Only this inbox's services. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `status` ("pending" | "active" | "cancelled" | "archived", optional): Only services with this status. Without it, every status but archived.
- `attention` ("true" | "false", optional): Only services with (`true`) or without (`false`) an active warning.
- `q` (string, optional): Keep the services whose domain or name contains this text, case-insensitively.
- `limit` (integer, optional): Page size, 1 to 100. Defaults to 50.
- `offset` (integer, optional): Rows to skip. Defaults to 0.

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the query parameter `inboxId` |
| `status` | the query parameter `status` |
| `attention` | the query parameter `attention` |
| `q` | the query parameter `q` |
| `limit` | the query parameter `limit` |
| `offset` | the query parameter `offset` |

Example call:
```json
{
  "name": "services_list",
  "arguments": {}
}
```

## services_get

Tool:
```text
services_get
```

Operation [`services.get`](https://doorman.fyi/docs/reference/passport.md#services-get): `GET /v1/services/{serviceId}`

One service with the newest messages that tied it to the address, at most 20: their subjects, what each was about and where to read it, never their text. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. With a key: any API key, or a console session.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `serviceId` (string): The service. Example: `svc_01jc5g2b3c4d5e6f7g8h9j0k1m`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `serviceId` | the path parameter `serviceId` |

Example call:
```json
{
  "name": "services_get",
  "arguments": {
    "serviceId": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m"
  }
}
```

## inboxes_services_create

Tool:
```text
inboxes_services_create
```

Operation [`inboxes.services.create`](https://doorman.fyi/docs/reference/passport.md#inboxes-services-create): `POST /v1/inboxes/{inboxId}/services`

Records that the inbox's address is about to be signed up for a service, or already is. An agent calls it before it signs up: the service is recorded as pending and attributed to the agent, and the codes and links the domain sends are tied to it. A person's is recorded as active. A domain the inbox already has answers 200 with that service, and takes a cancelled or archived one up again. What it costs is recorded with `services.update`. An inbox holds at most 500 services (409 `limit_reached`). OAuth: requires mail:write, mail:read.

- Offered to: A connected agent with an approval that covers `mail:write` and `mail:read`. The default agent permissions cover it. With a key: any API key, or a console session.
- Annotations: `readOnlyHint: false`, `destructiveHint: false`, `idempotentHint: false`, `openWorldHint: false`. The tool changes something.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `domain` (string): The service's domain, or a host under it: `app.example.net` is recorded as `example.net`. Example: `example.net`
- `name` (string, optional): A label, at most 100 characters. Defaults to the domain.
- `note` (string | null, optional): At most 500 characters: why the agent signed up, or the plan it chose and its price.

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |

Example call:
```json
{
  "name": "inboxes_services_create",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "domain": "example.net",
    "name": "Example Tools",
    "note": "Sign-up for the weekly report"
  }
}
```

## services_update

Tool:
```text
services_update
```

Operation [`services.update`](https://doorman.fyi/docs/reference/passport.md#services-update): `PATCH /v1/services/{serviceId}`

Renames the service, changes its status, replaces its note or plan, clears an active `attention` warning (`attention: null`), or decides about one of its sign-ins (`signIn`). Fields left out stay as they are; null clears the note, the plan, or `attention`. Clearing `attention`, allowing a sign-in and telling a relying party who owns the agent need a console session unless the account allows its account keys to (403 `session_required`); stopping a sign-in never does. `archived` sets a service aside as not a sign-up: mail from its domain still points at it, but never makes it pending again, and its sign-ins are stopped. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. With a key: any API key, or a console session.
- Annotations: `readOnlyHint: false`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool changes something; calling it again with the same input has no further effect.

**Input**
- `serviceId` (string): The service. Example: `svc_01jc5g2b3c4d5e6f7g8h9j0k1m`
- `name` (string, optional)
- `status` ("pending" | "active" | "cancelled" | "archived", optional): `archived` sets the service aside as not a sign-up: mail from it no longer makes it pending again. It clears any active warning and stops every one of the service's `signIns`.
- `note` (string | null, optional)
- `plan` (object | null, optional)
  - `name` (string | null, optional)
  - `amount` (number | null, optional): The price in the currency's main unit: 12.5 for 12.50.
  - `currency` (string | null, optional) Example: `USD`
  - `interval` ("week" | "month" | "year" | null, optional)
  - `renewsOn` (string | null, optional): The next renewal or charge, as a calendar day (YYYY-MM-DD).
- `attention` (any, optional): Null clears an active `attention` warning once the owner has checked the account. Needs a console session unless the account allows its account keys to (403 `session_required`).
- `signIn` (object, optional): A decision about one of the service's `signIns`. Stopping one, and no longer sharing the owner, are open to any key that reaches the service. Allowing one, and sharing the owner, need a console session unless the account allows its account keys to (403 `session_required`).
  - `id` (string): The identifier of one address's connection to one relying party. Example: `sig_01jc5f1a2b3c4d5e6f7g8h9j0k`
  - `state` ("allowed" | "blocked", optional): `allowed` lets the address sign in to the relying party; `blocked` stops it and ends the links, codes and tokens it was given.
  - `shareOwner` (boolean, optional): Whether the relying party is told who owns the agent, when it asks.

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `serviceId` | the path parameter `serviceId` |

Example call:
```json
{
  "name": "services_update",
  "arguments": {
    "serviceId": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
    "status": "cancelled"
  }
}
```

## services_delete

Tool:
```text
services_delete
```

Operation [`services.delete`](https://doorman.fyi/docs/reference/passport.md#services-delete): `DELETE /v1/services/{serviceId}`

Removes the service from the passport, with what was decided about its sign-ins. Its messages stay. A later message from the domain that concerns an account there records it again, and a later sign-in asks the owner again; archive it instead to keep it set aside. OAuth: not available to apps.

- Offered to: API keys only. A connected agent is never offered this tool. With a key: any API key, or a console session.
- Annotations: `readOnlyHint: false`, `destructiveHint: true`, `idempotentHint: true`, `openWorldHint: false`. The tool changes something; can remove something, or replace a secret that stops verifying at once; calling it again with the same input has no further effect.

**Input**
- `serviceId` (string): The service. Example: `svc_01jc5g2b3c4d5e6f7g8h9j0k1m`

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `serviceId` | the path parameter `serviceId` |

Example call:
```json
{
  "name": "services_delete",
  "arguments": {
    "serviceId": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m"
  }
}
```

## inboxes_verifications_list

Tool:
```text
inboxes_verifications_list
```

Operation [`inboxes.verifications.list`](https://doorman.fyi/docs/reference/passport.md#inboxes-verifications-list): `GET /v1/inboxes/{inboxId}/verifications`

The verification codes and sign-in links the inbox read from its mail in the last 60 minutes, newest first. After signing up, call it with `domain` and `waitSeconds` to be handed the code as soon as it arrives. Each says whether its sender was authenticated (`verified`), and a link whether it points at the sender's own domain (`matchesSender`): treat anything else with suspicion. An agent's read is recorded on what it was handed, and a read with `domain` confirms the pending sign-up and attributes it to the agent when no agent has. A service's invitation to join is served for 14 days with `invitation` true: accept one only when your user asked. OAuth: requires mail:read.

- Offered to: A connected agent with an approval that covers `mail:read`. The default agent permissions cover it. With a key: any API key, or a console session.
- Annotations: `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`. The tool reads only; calling it again with the same input has no further effect.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `domain` (string, optional): Only codes and links from this service's domain, or a host under it.
- `since` (string (date-time), optional): Only those that arrived after this instant.
- `waitSeconds` (integer, optional): When none has arrived yet, wait up to this many seconds for one. Defaults to 0.

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |
| `domain` | the query parameter `domain` |
| `since` | the query parameter `since` |
| `waitSeconds` | the query parameter `waitSeconds` |

Example call:
```json
{
  "name": "inboxes_verifications_list",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}
```

## inboxes_signIns_create

Tool:
```text
inboxes_signIns_create
```

Operation [`inboxes.signIns.create`](https://doorman.fyi/docs/reference/passport.md#inboxes-signIns-create): `POST /v1/inboxes/{inboxId}/sign-ins`

Signs the inbox's address in to a service that accepts Sign in with Doorman, with no password and no email code. Call it only when your user asked you to use that service. `status` says what comes next. `ready`: open `url`, a single-use link good for 5 minutes, in the browser that should hold the session, and show it to nobody. `approval_required`: the owner has to allow the service once, at `approvalUrl`; tell your user, then call again. `blocked`: the owner stopped it, so do not sign in there another way. `unsupported`: sign up with the service's own form and the verification codes. OAuth: requires mail:write, mail:read.

- Offered to: A connected agent with an approval that covers `mail:write` and `mail:read`. The default agent permissions cover it. With a key: any API key, or a console session.
- Annotations: `readOnlyHint: false`, `destructiveHint: false`, `idempotentHint: false`, `openWorldHint: true`. The tool changes something; reaches outside the account: it sends mail or posts to a URL.
- Capability: Offered only where the deployment has [Sign in with Doorman](https://doorman.fyi/docs/passport.md#sign-in) switched on.

**Input**
- `inboxId` (string): The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `domain` (string, optional): The service's domain or host.
- `clientId` (string, optional): Or the relying party's id, when the service states one.

**Inputs that are not fields of the request body**

| Input | Sent as |
| --- | --- |
| `inboxId` | the path parameter `inboxId` |

Example call:
```json
{
  "name": "inboxes_signIns_create",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "domain": "app.example.net"
  }
}
```
