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.

passport_get

Tool for 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

{
  "name": "passport_get",
  "arguments": {}
}

passport_update

Tool for 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
  • alertEmailsbooleanoptional

    Whether to email the account owner when a service receives an unexplained code or link, a password reset, or a security notice.

  • agentSignInbooleanoptional

    Whether an agent may sign in to a service the owner has not allowed yet.

  • shareOwnerbooleanoptional

    Whether a service an agent signed in to alone is told who owns the agent, when it asks.

  • briefingEmailsbooleanoptional

    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.

  • briefingHourintegeroptional

    The hour of the day, in timeZone, at which the briefing is sent.

  • timeZonestringoptional

    The IANA time zone briefingHour is read in. Example: America/Guayaquil

Example call

{
  "name": "passport_update",
  "arguments": {
    "alertEmails": true
  }
}

services_list

Tool for 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
  • inboxIdstringoptional

    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.

  • qstringoptional

    Keep the services whose domain or name contains this text, case-insensitively.

  • limitintegeroptional

    Page size, 1 to 100. Defaults to 50.

  • offsetintegeroptional

    Rows to skip. Defaults to 0.

Inputs that are not fields of the request body
InputSent as
inboxIdthe query parameter inboxId
statusthe query parameter status
attentionthe query parameter attention
qthe query parameter q
limitthe query parameter limit
offsetthe query parameter offset

Example call

{
  "name": "services_list",
  "arguments": {}
}

services_get

Tool for 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
  • serviceIdstringrequired

    The service. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m

Inputs that are not fields of the request body
InputSent as
serviceIdthe path parameter serviceId

Example call

{
  "name": "services_get",
  "arguments": {
    "serviceId": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m"
  }
}

inboxes_services_create

Tool for 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
  • inboxIdstringrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • domainstringrequired

    The service's domain, or a host under it: app.example.net is recorded as example.net. Example: example.net

  • namestringoptional

    A label, at most 100 characters. Defaults to the domain.

  • notestring | nulloptional

    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
InputSent as
inboxIdthe path parameter inboxId

Example call

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

services_update

Tool for 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
  • serviceIdstringrequired

    The service. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m

  • namestringoptional

  • 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.

  • notestring | nulloptional

  • planobject | nulloptional

  • namestring | nulloptional

  • amountnumber | nulloptional

    The price in the currency's main unit: 12.5 for 12.50.

  • currencystring | nulloptional

    Example: USD

  • interval"week" | "month" | "year" | nulloptional

  • renewsOnstring | nulloptional

    The next renewal or charge, as a calendar day (YYYY-MM-DD).

  • attentionanyoptional

    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).

  • signInobjectoptional

    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).

  • idstringrequired

    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.

  • shareOwnerbooleanoptional

    Whether the relying party is told who owns the agent, when it asks.

Inputs that are not fields of the request body
InputSent as
serviceIdthe path parameter serviceId

Example call

{
  "name": "services_update",
  "arguments": {
    "serviceId": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
    "status": "cancelled"
  }
}

services_delete

Tool for 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
  • serviceIdstringrequired

    The service. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m

Inputs that are not fields of the request body
InputSent as
serviceIdthe path parameter serviceId

Example call

{
  "name": "services_delete",
  "arguments": {
    "serviceId": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m"
  }
}

inboxes_verifications_list

Tool for 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
  • inboxIdstringrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • domainstringoptional

    Only codes and links from this service's domain, or a host under it.

  • sincestring (date-time)optional

    Only those that arrived after this instant.

  • waitSecondsintegeroptional

    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
InputSent as
inboxIdthe path parameter inboxId
domainthe query parameter domain
sincethe query parameter since
waitSecondsthe query parameter waitSeconds

Example call

{
  "name": "inboxes_verifications_list",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}

inboxes_signIns_create

Tool for 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 switched on.
Input
  • inboxIdstringrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • domainstringoptional

    The service's domain or host.

  • clientIdstringoptional

    Or the relying party's id, when the service states one.

Inputs that are not fields of the request body
InputSent as
inboxIdthe path parameter inboxId

Example call

{
  "name": "inboxes_signIns_create",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "domain": "app.example.net"
  }
}

Up Down to move, Enter to open, Esc to close