---
title: "Tools and Resources"
description: "Every tool and resource the SignatureAPI MCP server exposes to agents, rendered from the server's own catalog, plus modes, uploads, emails, and webhooks."
canonical: "https://signatureapi.com/docs/ai-toolkit/mcp/tools"
source: "https://signatureapi.com/docs/ai-toolkit/mcp/tools.md"
last_verified_api_version: "1.18.1"
last_modified: "2026-11-18T13:19:17Z"
---

# Tools and Resources

Every tool and resource the SignatureAPI MCP server exposes to agents, rendered from the server's own catalog, plus modes, uploads, emails, and webhooks.

_Last verified against API version 1.18.1._

The MCP server exposes a curated set of tools that map to the most common SignatureAPI operations. Every tool is scoped to the account the user authorized.

The generic endpoint (`https://mcp.signatureapi.com/mcp`) exposes 21 tools. The ChatGPT app adds `upload_file`, for 22. A connected client can always list the exact set itself with the MCP `tools/list` request. The [tool reference](https://signatureapi.com/docs/ai-toolkit/mcp/tools#tool-reference) on this page is generated from the same catalog the server registers, so the two never disagree.

Tools that touch account data take an optional `mode` parameter (`test` or `live`) that defaults to `test`. Test mode sends no email, so an agent can run a whole signing flow without reaching a real person. A call that asks for `live` from a session that cannot use live mode (the account is not active, or your role has no live-mode access) is refused with the `live-mode-unavailable` error, and nothing is created. `whoami` reports this as `modes.live`.

Every call acts in one mode and only reaches resources of that mode. Tools that act on an existing envelope or email (`get_envelope`, `cancel_envelope`, `delete_envelope`, `get_deliverables`, `resend_request`, `replace_recipient`, `create_ceremony`, `get_email`) take the `mode` of that resource, shown in its `mode` field. A live envelope needs `mode: live`; a call with the wrong mode is refused with a mode error.

## Upload tools

`inspect_upload` reports coordinates in PDF points with the origin at the top-left of the page, the same units `create_envelope` uses for fixed positions. Call it before creating the envelope to check that every placeholder key was detected.

## Recipient and ceremony tools

`create_ceremony` returns a `url` for `custom` and `email_code` authentication. For `email_link` the `url` is `null`: the emailed link is the recipient's authentication, so it is never disclosed. In live mode, `resend_request`, `replace_recipient`, and `create_ceremony` can email a real person.

## Event and deliverable tools

`list_events` is how an agent verifies that something happened. With `wait_seconds`, the server checks every two seconds for an event newer than the first page. If none arrives before the deadline, the response carries `timed_out: true`. That is not an error; call again to keep waiting.

## Email tools

SignatureAPI records every email it generates for the account: signing requests, deliverable emails, one-time codes, and owner notifications. In test mode no email is actually sent, so this log is how an agent sees what recipients would have received, and how it reaches a test-mode signing ceremony.

Each email reports its `status` and `delivered_at` and `bounced_at` timestamps, which makes the log the first place to look when a recipient says they never received a signing email.

For an `email_link` ceremony in **test mode**, the agent calls `list_emails` filtered by `envelope_id`, picks the email with `type: "request"`, and reads `ceremony_url` from `get_email`. For **live-mode** emails `ceremony_url` is always `null`, and the email content is not returned: possession of the emailed link is the recipient's authentication, so live links are never disclosed to the agent.

## Webhook tools

Webhooks are configured separately per mode. An endpoint created in test mode only receives events from test-mode envelopes.

A typical loop is `create_webhook`, then a test-mode envelope, then `list_webhook_attempts` to confirm the endpoint answered each event with a 2xx. To pause an endpoint, prefer `update_webhook` with `disabled: true` over deleting it.

No tool returns a credential. A tool result lands in the agent's context, in the client's transcript, and in the model provider's logs, and the agent, not a person, decides to read it. The signing secret of an endpoint is shown only on the Dashboard webhooks page, which `create_webhook` links as `signing_secret_dashboard_url`. An agent should ask you to copy it into your application's environment, never into the chat. The same applies to API keys, which live on the Dashboard API keys page.

## Tool annotations

Each tool carries MCP's standard hints (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`), so clients can ask you before a tool with effects. The reference below shows them as labels on each tool.

Tools marked destructive should trigger user confirmation in any well-behaved client. `create_envelope`, `resend_request`, `replace_recipient`, `create_ceremony`, and the webhook writes carry the flag because they have effects outside SignatureAPI: in live mode they email real people, and a webhook delivers to a third-party endpoint. `openWorldHint` marks the tools that reach systems beyond the SignatureAPI account: recipient inboxes, customer endpoints, and the host's file store.

## Resources

The server also exposes envelopes as an MCP resource so clients that support resources (such as Claude) can render them as chips, list them in side panels, and re-fetch them on their own.

| URI template                            | Description                                                         |
| --------------------------------------- | ------------------------------------------------------------------- |
| `signatureapi://envelope/{envelope_id}` | JSON representation of an envelope. Same payload as `get_envelope`. |

Listing returns up to 10 envelopes by default, sized for client pickers (for example the `@` picker in Claude Code).

## Pagination

`list_envelopes`, `list_events`, and `list_emails` return 10 items per page by default, with a maximum page size of 20. `list_webhook_attempts` allows up to 50. The response includes `links.next` and `links.previous` cursor URLs; pass the cursor query value back as the `cursor` parameter to paginate. For `list_emails`, pass the same `mode` with the cursor: a cursor does not carry the mode. API-level pagination defaults on the REST surface are unchanged.

## Uploading files

There are two ways to get a local file into an envelope, depending on what the client can do:

- **`upload_file`** uses the host's native file handling. In hosts like ChatGPT Apps, the client transfers the bytes for you; you do not run a PUT yourself.
- **`mint_upload_url`** returns a single-use signed URL the agent uses to PUT the file directly to the SignatureAPI upload subdomain. Use this when the client can execute code and upload bytes itself.

The signed-URL flow below applies to `mint_upload_url`.

1. **Compute size and SHA-256**

   Get the file's exact byte count and its SHA-256 hash. These values are bound into the signed URL, so they must match the bytes you actually send.

   ```bash
   wc -c < contract.pdf
   shasum -a 256 contract.pdf | awk '{print $1}'
   ```

2. **Call mint_upload_url**

   Provide `media_type`, `size`, and `sha256`. You receive:

   - `upload_url`: single-use, expires in roughly five minutes.
   - `reference`: the canonical `https://api.signatureapi.com/v1/uploads/upl_…` URL to use later.

3. **PUT the bytes**

   Send the raw file body to `upload_url`. All three headers below are required and must match the values declared in step 2.

   ```bash
   curl -X PUT "<upload_url>" \
     -H "Content-Type: <media_type>" \
     -H "Content-Length: <size>" \
     -H "x-amz-content-sha256: <sha256>" \
     --data-binary @contract.pdf
   ```

   A 2xx response means the bytes landed and `reference` is now resolvable. A 4xx means the upload failed; the URL is single-use, so re-mint by calling `mint_upload_url` again.

4. **Pass the reference to create_envelope**

   Use the returned `reference` (not `upload_url`) as the document URL when calling `create_envelope`.

### Supported media types

| Type | MIME                                                                      | Used for                                          |
| ---- | ------------------------------------------------------------------------- | ------------------------------------------------- |
| PDF  | `application/pdf`                                                         | Envelope documents                                |
| DOCX | `application/vnd.openxmlformats-officedocument.wordprocessingml.document` | Envelope documents (with optional template merge) |
| PNG  | `image/png`                                                               | Symbol assets such as logos                       |

`mint_upload_url` uses the same mechanism as the API's [Create an upload URL](https://signatureapi.com/docs/api/resources/uploads/create-url) and accepts files up to your account's maximum document size. The bytes go straight to storage, so the 4.5 MB limit of [Create an upload](https://signatureapi.com/docs/api/resources/uploads/create) doesn't apply. `upload_file` is capped at 5 MiB (5,242,880 bytes).

### Pure connector clients

Clients without local code execution cannot run the PUT, so they should **not** call `mint_upload_url`. Hosts with native file handling (such as ChatGPT Apps) can use `upload_file` instead. Otherwise, supply a URL on a host SignatureAPI already accepts (S3, Google Drive, Dropbox, and similar) and pass that URL directly to `create_envelope`.

## Documentation search

`search_documentation` lets the agent look up SignatureAPI concepts, field names, enum values, and webhook events before guessing. Each result includes a `title`, `url`, and a short `snippet`. Pass a result's docs slug as `page` to read that page's complete Markdown. The tool is read-only and safe to call as often as needed; in practice, calling it once before a non-trivial `create_envelope` produces noticeably better results than relying on the model's training data.

## Tool reference

Generated from the MCP server's own tool catalog, the source of truth for the tools, their arguments, and their annotations. Each entry leads with a summary, then the arguments and an example JSON-RPC request (`method` set to `tools/call`) with a test-mode result. "Description the agent sees" is the text the model reads.

| Tool | Access | What it does |
| --- | --- | --- |
| `whoami` | Read-only | Shows the connected account and user, which modes you can use, and whether the account already has a test API key. |
| `create_envelope` | Writes data | Creates an envelope from documents and recipients and starts the signing process, in test mode unless you ask for live. |
| `get_envelope` | Read-only | Returns one envelope with its documents, recipients and status. |
| `mint_upload_url` | Writes data | Returns a short-lived upload URL, so an agent with a shell can upload a local file and then use it in an envelope. |
| `inspect_upload` | Read-only | Shows the pages, page sizes and placeholders found in an uploaded PDF or DOCX file. |
| `cancel_envelope` | Writes data | Cancels an envelope that is still in progress, so pending recipients can no longer sign. |
| `delete_envelope` | Writes data | Permanently deletes a completed, canceled or failed envelope and its data. |
| `list_envelopes` | Read-only | Lists the account's envelopes in one mode, newest first. |
| `list_events` | Read-only | Lists events for the account, one envelope or one recipient, newest first, to follow signing progress. |
| `get_deliverables` | Read-only | Returns the signed documents of an envelope with fresh download links. |
| `resend_request` | Writes data | Sends the signing request email again to a recipient who has not finished yet. |
| `replace_recipient` | Writes data | Replaces a recipient who has not finished with a different person, who keeps the same places and routing position. |
| `create_ceremony` | Writes data | Creates a new signing session for a recipient, for example to change how they authenticate or to embed signing in your site. |
| `list_emails` | Read-only | Lists the emails SignatureAPI generated for the account. In test mode, signing requests appear here instead of being sent. |
| `get_email` | Read-only | Returns one email. A test-mode signing request includes the link to its ceremony. |
| `list_webhooks` | Read-only | Lists the webhook endpoints subscribed in one mode. |
| `create_webhook` | Writes data | Subscribes an HTTPS endpoint to SignatureAPI events. |
| `delete_webhook` | Writes data | Deletes a webhook endpoint. Pending deliveries to it are dropped. |
| `update_webhook` | Writes data | Changes a webhook endpoint's URL, event types or topics, or pauses and resumes it. |
| `list_webhook_attempts` | Read-only | Lists the most recent delivery attempts to a webhook endpoint, with their status and response code. |
| `search_documentation` | Read-only | Searches the SignatureAPI documentation, or reads one page in full. |
| `upload_file` | Writes data | Uploads a file the user selected in ChatGPT so it can be used as an envelope document. |

### `whoami`

Shows the connected account and user, which modes you can use, and whether the account already has a test API key.

Read-only.

Takes no arguments.

Description the agent sees:

> Describe the current SignatureAPI session: the account and user you are acting as, which modes you can reach (`modes.live` follows the user's organization role; test mode is always available), whether the account already has a test API key (`test_api_key.exists`, `count`), where the user manages keys (`api_keys_dashboard_url`), and the connected MCP client (`connection`).
>
> Call this once at the start of a session instead of guessing. Check `modes.live` before attempting anything in live mode.
>
> No tool returns an API key. When the application you are building needs one and you have a shell, run `npx --yes signatureapi init` in the project directory: after the user approves in the browser, it writes the test key to the gitignored env file as `SIGNATUREAPI_KEY` without printing it. Without a shell, ask the user to create or copy a test key (`key_test_…`) at `api_keys_dashboard_url` and put it in that file. Never ask them to paste it into the chat, and never echo, log or commit it.

### `create_envelope`

Creates an envelope from documents and recipients and starts the signing process, in test mode unless you ask for live.

Writes data. Asks for confirmation in most clients.

Arguments:

- `title` (string, required): The title of the envelope, displayed to recipients in emails and the signing ceremony.
- `documents` (array of object, required): The documents included in the envelope for recipients to sign. An envelope can contain between 1 and 10 documents.
- `recipients` (array of object, required): The recipients who will participate in the envelope's signing process. An envelope has at least 1 recipient and, by default, at most 10. The maximum is an account setting.
- `label` (string or null): A custom label for internal identification of the envelope. Labels are not shown to recipients.
- `metadata` (object): Set of key-value pairs to store additional information about the envelope. Use metadata to attach internal reference IDs, tracking numbers, or other data that connects envelopes to your systems.
- `message` (string or null): A custom message included in the signing request emails sent to recipients. Use this to provide context about what is being signed.
- `topics` (array of string): Tags used to classify and filter envelopes. Up to 10 topics can be assigned per envelope.
- `branding` (object): Customizes the visual appearance of the signing ceremony and recipient emails. Branding does not affect internal notifications or the signed documents themselves.
- `timezone` (string): The time zone applied to timestamps in the deliverable's audit log. Must be a valid IANA Time Zone Database identifier (e.g., `America/New_York`, `Europe/London`).
- `timestamp_format` (string): The date and time format used for timestamps in the deliverable's audit log. Uses MomentJS format tokens (e.g., `MM/DD/YYYY HH:mm:ss`).
- `language` (string): The language used for the signing ceremony, recipient emails, and the audit log in deliverables. One of: `en`, `es`, `fr`, `it`, `pt`, `de`, `zh`, `hu`, `nl`.
- `routing` (string): Controls the order in which recipients receive and act on the envelope. One of: `sequential`, `parallel`.
- `deliverable` (object or null): Defines the default deliverable configuration for the envelope. The deliverable is the final signed document package generated when all recipients complete the envelope. It is sent to all recipients unless their `recipient.delivery_type` is set to `none`.
- `attestation` (string): Specifies the regulatory or compliance attestation applied to a completed envelope. Attestations are optional and enable adherence to country-specific e-signature regulations. One of: `none`, `mx_nom151`, `br_icp_brasil`.
- `sender` (object): The sender of the envelope. Sender information appears in the emails sent to recipients, identifying who initiated the signing request.
- `mode` (string): Mode this call acts in. Defaults to `test`, where no real emails are sent and everything can be inspected with list_emails. Pass `live` ONLY when the user explicitly wants real recipients to receive real signing requests. When live is not available to this session (whoami `modes.live` is false), a live call is refused with `live-mode-unavailable` and nothing is created. One of: `test`, `live`.

Example `tools/call` request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_envelope",
    "arguments": {
      "title": "Service Agreement",
      "message": "Please review and sign the Service Agreement.",
      "documents": [
        {
          "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/service-agreement.pdf",
          "format": "pdf",
          "places": [
            {
              "key": "client_signature",
              "type": "signature",
              "recipient_key": "client"
            }
          ],
          "fixed_positions": [
            {
              "place_key": "client_signature",
              "page": 1,
              "top": 270,
              "left": 72
            }
          ]
        }
      ],
      "recipients": [
        {
          "key": "client",
          "type": "signer",
          "name": "Jane Doe",
          "email": "jane.doe@example.com"
        }
      ]
    }
  }
}
```

Example result (`structuredContent`, test mode):

```json
{
  "id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
  "title": "Service Agreement",
  "label": null,
  "status": "processing",
  "mode": "test",
  "routing": "sequential",
  "language": "en",
  "timezone": "UTC",
  "timestamp_format": "MM/DD/YYYY HH:mm:ss",
  "sender": {
    "name": "Acme Corp Legal",
    "email": "legal@acme.example",
    "organization": "Acme Corp"
  },
  "topics": [],
  "documents": [
    {
      "id": "doc_4YvlxUZN28CeonDq6rTbvk",
      "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
      "key": "document_0",
      "title": null,
      "page_count": 1,
      "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/service-agreement.pdf",
      "format": "pdf",
      "fixed_positions": [
        {
          "place_key": "client_signature",
          "page": 1,
          "top": 270,
          "left": 72
        }
      ],
      "places": [
        {
          "key": "client_signature",
          "type": "signature",
          "recipient_key": "client",
          "height": 60
        }
      ]
    }
  ],
  "recipients": [
    {
      "id": "re_49r1R2jpPDz8hSpP75ZkPp",
      "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
      "type": "signer",
      "key": "client",
      "email": "jane.doe@example.com",
      "name": "Jane Doe",
      "ceremony": {
        "authentication": [
          {
            "type": "email_link",
            "subject_override": null,
            "message_override": null
          }
        ],
        "embeddable_in": [],
        "redirect_url": null,
        "redirect_delay": 3,
        "url": null,
        "url_variant": "standard"
      },
      "ceremony_creation": "automatic",
      "delivery_type": "email",
      "signature_options": [
        "typed",
        "drawn"
      ],
      "status": "pending",
      "status_updated_at": "2026-11-02T14:03:11.000Z",
      "completed_at": null
    }
  ],
  "deliverable": {
    "id": "del_6FF89lKNyTNamOJCJd1tLL",
    "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
    "name": null,
    "status": "pending",
    "type": "standard",
    "url": null,
    "password": null,
    "created_at": "2026-11-02T14:03:11.000Z",
    "generated_at": null,
    "timezone": "UTC",
    "language": "en",
    "timestamp_format": "MM/DD/YYYY HH:mm:ss",
    "included_documents": [
      "document_0"
    ]
  },
  "created_at": "2026-11-02T14:03:11.000Z",
  "completed_at": null
}
```

Description the agent sees:

> Create a new SignatureAPI envelope. At minimum you must provide `title`, `documents`, and `recipients`. Documents reference uploads created via `mint_upload_url`. If required information (e.g. recipient name/email) is missing from the user, ask before calling. Use only non-sensitive data that is necessary for the requested e-signature workflow. The envelope is created in test mode unless `mode: "live"` is passed; live mode emails real people, so never pass it without the user's explicit intent.

### `get_envelope`

Returns one envelope with its documents, recipients and status.

Read-only.

Arguments:

- `envelope_id` (string, required): The unique identifier of an envelope.
- `mode` (string): Mode of the envelope this call acts on: the mode the envelope was created in (its `mode` field); default `test`. A call only reaches envelopes of its own mode, so a live envelope needs `live`; a mismatch is refused with a mode error. One of: `test`, `live`.

Example `tools/call` request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_envelope",
    "arguments": {
      "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56"
    }
  }
}
```

Example result (`structuredContent`, test mode):

```json
{
  "id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
  "title": "Service Agreement",
  "label": null,
  "status": "completed",
  "mode": "test",
  "routing": "sequential",
  "language": "en",
  "timezone": "UTC",
  "timestamp_format": "MM/DD/YYYY HH:mm:ss",
  "sender": {
    "name": "Acme Corp Legal",
    "email": "legal@acme.example",
    "organization": "Acme Corp"
  },
  "topics": [],
  "documents": [
    {
      "id": "doc_4YvlxUZN28CeonDq6rTbvk",
      "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
      "key": "document_0",
      "title": null,
      "page_count": 1,
      "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/service-agreement.pdf",
      "format": "pdf",
      "fixed_positions": [
        {
          "place_key": "client_signature",
          "page": 1,
          "top": 270,
          "left": 72
        }
      ],
      "places": [
        {
          "key": "client_signature",
          "type": "signature",
          "recipient_key": "client",
          "height": 60
        }
      ]
    }
  ],
  "recipients": [
    {
      "id": "re_49r1R2jpPDz8hSpP75ZkPp",
      "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
      "type": "signer",
      "key": "client",
      "email": "jane.doe@example.com",
      "name": "Jane Doe",
      "ceremony": {
        "authentication": [
          {
            "type": "email_link",
            "subject_override": null,
            "message_override": null
          }
        ],
        "embeddable_in": [],
        "redirect_url": null,
        "redirect_delay": 3,
        "url": null,
        "url_variant": "standard"
      },
      "ceremony_creation": "automatic",
      "delivery_type": "email",
      "signature_options": [
        "typed",
        "drawn"
      ],
      "status": "completed",
      "status_updated_at": "2026-11-02T15:21:40.000Z",
      "completed_at": "2026-11-02T15:21:40.000Z"
    }
  ],
  "deliverable": {
    "id": "del_6FF89lKNyTNamOJCJd1tLL",
    "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
    "name": null,
    "status": "processing",
    "type": "standard",
    "url": null,
    "password": null,
    "created_at": "2026-11-02T14:03:11.000Z",
    "generated_at": null,
    "timezone": "UTC",
    "language": "en",
    "timestamp_format": "MM/DD/YYYY HH:mm:ss",
    "included_documents": [
      "document_0"
    ]
  },
  "created_at": "2026-11-02T14:03:11.000Z",
  "completed_at": "2026-11-02T15:21:40.000Z"
}
```

Description the agent sees:

> Fetch a SignatureAPI envelope by id.

### `mint_upload_url`

Returns a short-lived upload URL, so an agent with a shell can upload a local file and then use it in an envelope.

Writes data.

Arguments:

- `media_type` (string, required): MIME type of the file. Must match the Content-Type sent on the PUT. One of: `application/pdf`, `application/vnd.openxmlformats-officedocument.wordprocessingml.document`, `image/png`.
- `size` (integer, required): Exact byte count of the file. Must match the Content-Length sent on the PUT, otherwise the PUT is rejected.
- `sha256` (string, required): SHA-256 hex digest of the file body (64 lowercase hex chars). Must match the `x-amz-content-sha256` header on the PUT; S3 itself verifies and rejects with BadDigest on mismatch.

Description the agent sees:

> Mint a short-lived signed upload URL for agents that can PUT local bytes themselves. This tool does NOT transfer bytes; it returns a `upload_url` (single-use, ~5 min) and the canonical `reference` you'll later pass to `create_envelope`.
>
> REQUIRED SEQUENCE (do all three in order):
> 1. Compute the file's exact size in bytes and SHA-256 hash BEFORE calling this tool. The values are bound into the upload URL's signature, so they must match the bytes you actually send.
>    - size: byte count of the file (e.g. `wc -c < path` or stat).
>    - sha256: 64 lowercase hex chars (e.g. `shasum -a 256 path | awk '{print $1}'`).
> 2. Call this tool with `media_type`, `size`, `sha256`. You get back `upload_url` and `reference`.
> 3. PUT the raw file bytes to `upload_url`. Three headers are REQUIRED and must all match what you declared in step 1:
>      - `Content-Type: <media_type>`
>      - `Content-Length: <size>`
>      - `x-amz-content-sha256: <sha256>`
>    Example: `curl -sS -X PUT '<upload_url>' -H 'Content-Type: <media_type>' -H 'Content-Length: <size>' -H 'x-amz-content-sha256: <sha256>' --data-binary @<path>`
>
> On a 2xx PUT, the upload is registered server-side and `reference` becomes resolvable. Pass `reference` (a `https://api.signatureapi.com/v1/uploads/upl_…` URL) to `create_envelope` as the document URL; do NOT pass `upload_url`.
>
> If the PUT returns 4xx, the bytes never reached storage. Re-mint by calling `mint_upload_url` again; the URL is single-use.
>
> NO LOCAL CODE EXECUTION? If you cannot run a PUT (e.g. you are a pure connector client like Claude.ai with no shell), do NOT call this tool. Ask the user to upload the file via their SignatureAPI dashboard or supply a URL on an already-allowlisted host (S3, Google Drive, Dropbox, Bubble, etc.) and pass that URL directly to `create_envelope`.

### `inspect_upload`

Shows the pages, page sizes and placeholders found in an uploaded PDF or DOCX file.

Read-only.

Arguments:

- `upload_id` (string, required): The unique identifier of an upload.

Example `tools/call` request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "inspect_upload",
    "arguments": {
      "upload_id": "upl_3JJz6t1o8A5YjX5VpnX27Z"
    }
  }
}
```

Example result (`structuredContent`, test mode):

```json
{
  "format": "pdf",
  "page_count": 2,
  "placeholders": [
    {
      "key": "client_signs_here",
      "page_number": 2,
      "left": 72,
      "top": 540,
      "width": 118.4,
      "height": 14.2,
      "errors": []
    },
    {
      "key": "provider_signs_here",
      "page_number": 2,
      "left": 330,
      "top": 540,
      "width": 129.6,
      "height": 14.2,
      "errors": []
    }
  ],
  "pages": [
    {
      "page_number": 1,
      "width": 612,
      "height": 792
    },
    {
      "page_number": 2,
      "width": 612,
      "height": 792
    }
  ]
}
```

Description the agent sees:

> Return the analyzed structure of an uploaded PDF or DOCX: `format`, `page_count`, `pages[]` with each page's `width`/`height`, the `[[key]]` `placeholders[]` detected (with `page_number`, `left`, `top`, `width`, `height` and any `errors`), and for DOCX the `{{key}}` template `fields[]`.
>
> Coordinates and sizes are PDF points (1/72 inch) with the origin at the TOP-LEFT of the page; the same units and origin create_envelope uses for `fixed_positions` (`top`, `left`) and place sizes. Use this before create_envelope to confirm the page count, pick `page`/`top`/`left` for fixed positions, and check that every placeholder key you rely on was detected.

### `cancel_envelope`

Cancels an envelope that is still in progress, so pending recipients can no longer sign.

Writes data. Asks for confirmation in most clients.

Arguments:

- `envelope_id` (string, required): The unique identifier of an envelope.
- `reason` (string): An optional explanation for why the envelope was canceled. This is for internal use only and is not shown to recipients.
- `mode` (string): Mode of the envelope this call acts on: the mode the envelope was created in (its `mode` field); default `test`. A call only reaches envelopes of its own mode, so a live envelope needs `live`; a mismatch is refused with a mode error. One of: `test`, `live`.

Example `tools/call` request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cancel_envelope",
    "arguments": {
      "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
      "reason": "Offer withdrawn because the role was closed."
    }
  }
}
```

Example result (`structuredContent`, test mode):

```json
{
  "id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
  "title": "Offer Letter",
  "label": "Offer Letter for Maria Garcia",
  "status": "canceled",
  "mode": "test",
  "routing": "sequential",
  "language": "en",
  "timezone": "America/New_York",
  "timestamp_format": "MM/DD/YYYY HH:mm:ss",
  "sender": {
    "name": "Acme Corp Legal",
    "email": "legal@acme.example",
    "organization": "Acme Corp"
  },
  "topics": [
    "hr",
    "onboarding"
  ],
  "documents": [
    {
      "id": "doc_0Pwd2LsJXeWGOJQwRctqC1",
      "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
      "key": "offer_letter",
      "title": "Offer Letter",
      "page_count": 1,
      "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/acme-offer-letter-template.docx",
      "format": "docx",
      "data": {
        "candidateName": "Maria Garcia",
        "position": "Product Designer",
        "startDate": "December 1, 2026",
        "salary": "$92,000"
      },
      "fixed_positions": [],
      "places": [
        {
          "key": "candidate_signs_here",
          "type": "signature",
          "recipient_key": "candidate",
          "height": 60
        }
      ]
    }
  ],
  "recipients": [
    {
      "id": "re_1mdt9PluVuu4QIhYYe8R1P",
      "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
      "type": "approver",
      "key": "hiring_manager",
      "name": "Alex Chen",
      "email": "alex.chen@example.com",
      "status": "completed",
      "ceremony": {
        "authentication": [
          {
            "type": "email_link",
            "subject_override": null,
            "message_override": null
          }
        ],
        "redirect_url": null,
        "redirect_delay": 3,
        "embeddable_in": [],
        "url_variant": "standard",
        "url": null
      },
      "delivery_type": "email",
      "ceremony_creation": "automatic",
      "completed_at": "2026-11-02T16:42:10.000Z",
      "status_updated_at": "2026-11-02T16:42:10.000Z"
    },
    {
      "id": "re_2f0wBwlt2te0kjU5QeL3Nl",
      "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
      "type": "signer",
      "key": "candidate",
      "name": "Maria Garcia",
      "email": "maria.garcia@example.com",
      "status": "sent",
      "ceremony": {
        "authentication": [
          {
            "type": "email_code"
          }
        ],
        "redirect_url": null,
        "redirect_delay": 3,
        "embeddable_in": [],
        "url_variant": "standard",
        "url": null
      },
      "delivery_type": "email",
      "ceremony_creation": "automatic",
      "signature_options": [
        "typed",
        "drawn"
      ],
      "completed_at": null,
      "status_updated_at": "2026-11-02T16:42:12.000Z"
    }
  ],
  "deliverable": {
    "id": "del_4l3fQxvjRTltbPbzIbOlmK",
    "name": null,
    "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
    "type": "standard",
    "status": "pending",
    "url": null,
    "language": "en",
    "timezone": "America/New_York",
    "timestamp_format": "MM/DD/YYYY HH:mm:ss",
    "included_documents": [
      "offer_letter"
    ],
    "password": null,
    "created_at": "2026-11-02T16:30:00.000Z",
    "generated_at": null
  },
  "created_at": "2026-11-02T16:30:00.000Z",
  "completed_at": null
}
```

Description the agent sees:

> Cancel an in-progress SignatureAPI envelope. The envelope transitions to `canceled`. Pending recipients won't be able to access the ceremonies.
>
> Already-completed envelopes cannot be canceled (the api returns 409). If the user wants to undo a completed envelope, you must explain that signed envelopes are immutable.

### `delete_envelope`

Permanently deletes a completed, canceled or failed envelope and its data.

Writes data. Asks for confirmation in most clients.

Arguments:

- `envelope_id` (string, required): The unique identifier of an envelope.
- `mode` (string): Mode of the envelope this call acts on: the mode the envelope was created in (its `mode` field); default `test`. A call only reaches envelopes of its own mode, so a live envelope needs `live`; a mismatch is refused with a mode error. One of: `test`, `live`.

Example `tools/call` request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "delete_envelope",
    "arguments": {
      "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56"
    }
  }
}
```

Example result (`structuredContent`, test mode):

```json
null
```

Description the agent sees:

> Permanently delete a SignatureAPI envelope and its associated data. This is irreversible; CONFIRM with the user before calling, and prefer cancel_envelope if the envelope is in progress.
>
> Returns deleted: true and the envelope identifier on success.

### `list_envelopes`

Lists the account's envelopes in one mode, newest first.

Read-only.

Arguments:

- `status` (string): Filter by envelope status. One of: `processing`, `in_progress`, `completed`, `failed`, `canceled`.
- `topic` (string): Filter by envelope topic.
- `cursor` (string): Pagination cursor from a previous response's `links.next`.
- `limit` (integer): The maximum number of objects to return in the response.
- `mode` (string): Mode this call acts in. Defaults to `test`, where no real emails are sent and everything can be inspected with list_emails. Pass `live` ONLY when the user explicitly wants real recipients to receive real signing requests. When live is not available to this session (whoami `modes.live` is false), a live call is refused with `live-mode-unavailable` and nothing is created. One of: `test`, `live`.

Example `tools/call` request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_envelopes",
    "arguments": {
      "limit": 2
    }
  }
}
```

Example result (`structuredContent`, test mode):

```json
{
  "links": {
    "next": "https://api.signatureapi.com/v1/envelopes?cursor=seq_0thJdKRhN4&limit=2",
    "previous": null
  },
  "data": [
    {
      "id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
      "title": "Offer Letter",
      "label": "Offer Letter for Maria Garcia",
      "message": "Welcome to Acme Corp! Please review and sign your offer letter.",
      "status": "in_progress",
      "mode": "test",
      "routing": "sequential",
      "language": "en",
      "timezone": "America/New_York",
      "timestamp_format": "MM/DD/YYYY HH:mm:ss",
      "attestation": "none",
      "branding": {
        "logo": "https://api.signatureapi.com/v1/uploads/upl_42NTdNnkg6dGLx8jR1X1wm",
        "accent_color": "#9810fa",
        "email": {
          "from": "noreply@signatureapi.com",
          "footer": "**Confidential:** this email is intended only for the named recipient.",
          "logo_position": "left"
        }
      },
      "sender": {
        "name": "Acme Corp Legal",
        "email": "legal@acme.example",
        "organization": "Acme Corp"
      },
      "topics": [
        "hr",
        "onboarding"
      ],
      "metadata": {
        "candidate_ref": "hr-2210"
      },
      "documents": [
        {
          "id": "doc_0Pwd2LsJXeWGOJQwRctqC1",
          "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
          "key": "offer_letter",
          "title": "Offer Letter",
          "page_count": 1,
          "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/acme-offer-letter-template.docx",
          "format": "docx",
          "data": {
            "candidateName": "Maria Garcia",
            "position": "Product Designer",
            "startDate": "December 1, 2026",
            "salary": "$92,000"
          },
          "fixed_positions": [],
          "places": [
            {
              "key": "candidate_signs_here",
              "type": "signature",
              "recipient_key": "candidate",
              "height": 60
            }
          ]
        }
      ],
      "recipients": [
        {
          "id": "re_1mdt9PluVuu4QIhYYe8R1P",
          "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
          "type": "approver",
          "key": "hiring_manager",
          "name": "Alex Chen",
          "email": "alex.chen@example.com",
          "status": "completed",
          "ceremony": {
            "authentication": [
              {
                "type": "email_link",
                "subject_override": null,
                "message_override": null
              }
            ],
            "redirect_url": null,
            "redirect_delay": 3,
            "embeddable_in": [],
            "url_variant": "standard",
            "url": null
          },
          "delivery_type": "email",
          "ceremony_creation": "automatic",
          "completed_at": "2026-11-02T16:42:10.000Z",
          "status_updated_at": "2026-11-02T16:42:10.000Z"
        },
        {
          "id": "re_2f0wBwlt2te0kjU5QeL3Nl",
          "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
          "type": "signer",
          "key": "candidate",
          "name": "Maria Garcia",
          "email": "maria.garcia@example.com",
          "status": "sent",
          "ceremony": {
            "authentication": [
              {
                "type": "email_code"
              }
            ],
            "redirect_url": null,
            "redirect_delay": 3,
            "embeddable_in": [],
            "url_variant": "standard",
            "url": null
          },
          "delivery_type": "email",
          "ceremony_creation": "automatic",
          "signature_options": [
            "typed",
            "drawn"
          ],
          "completed_at": null,
          "status_updated_at": "2026-11-02T16:42:12.000Z"
        }
      ],
      "deliverable": {
        "id": "del_4l3fQxvjRTltbPbzIbOlmK",
        "name": null,
        "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
        "type": "standard",
        "status": "pending",
        "url": null,
        "language": "en",
        "timezone": "America/New_York",
        "timestamp_format": "MM/DD/YYYY HH:mm:ss",
        "included_documents": [
          "offer_letter"
        ],
        "password": null,
        "created_at": "2026-11-02T16:30:00.000Z",
        "generated_at": null
      },
      "captures": {},
      "snapshot_url": null,
      "created_at": "2026-11-02T16:30:00.000Z",
      "completed_at": null
    },
    {
      "id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
      "title": "Service Agreement",
      "label": "Service Agreement for Acme Corp onboarding",
      "message": "Please review the agreement and provide your signature.",
      "status": "completed",
      "mode": "test",
      "routing": "parallel",
      "language": "en",
      "timezone": "UTC",
      "timestamp_format": "MM/DD/YYYY HH:mm:ss",
      "attestation": "none",
      "branding": {
        "logo": null,
        "accent_color": "#2463eb",
        "email": {
          "from": "noreply@signatureapi.com",
          "footer": null,
          "logo_position": "left"
        }
      },
      "sender": {
        "name": "Acme Corp Legal",
        "email": "legal@acme.example",
        "organization": "Acme Corp"
      },
      "topics": [
        "sales"
      ],
      "metadata": {
        "customer_ref": "acme-1042"
      },
      "documents": [
        {
          "id": "doc_4YvlxUZN28CeonDq6rTbvk",
          "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
          "key": "service_agreement",
          "title": "Service Agreement",
          "page_count": 1,
          "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/acme-service-agreement.pdf",
          "format": "pdf",
          "fixed_positions": [],
          "places": [
            {
              "key": "client_signs_here",
              "type": "signature",
              "recipient_key": "client",
              "height": 60
            },
            {
              "key": "provider_signs_here",
              "type": "signature",
              "recipient_key": "provider",
              "height": 60
            }
          ]
        }
      ],
      "recipients": [
        {
          "id": "re_49r1R2jpPDz8hSpP75ZkPp",
          "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
          "type": "signer",
          "key": "client",
          "name": "Jane Doe",
          "email": "jane.doe@example.com",
          "status": "completed",
          "ceremony": {
            "authentication": [
              {
                "type": "email_link",
                "subject_override": null,
                "message_override": null
              }
            ],
            "redirect_url": null,
            "redirect_delay": 3,
            "embeddable_in": [],
            "url_variant": "standard",
            "url": null
          },
          "delivery_type": "email",
          "ceremony_creation": "automatic",
          "signature_options": [
            "typed",
            "drawn"
          ],
          "completed_at": "2026-11-02T14:41:02.000Z",
          "status_updated_at": "2026-11-02T14:41:02.000Z"
        },
        {
          "id": "re_4VP9v4uPj6jwZzQ14CG2O8",
          "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
          "type": "signer",
          "key": "provider",
          "name": "John Smith",
          "email": "john.smith@example.com",
          "status": "completed",
          "ceremony": {
            "authentication": [
              {
                "type": "email_link",
                "subject_override": null,
                "message_override": null
              }
            ],
            "redirect_url": null,
            "redirect_delay": 3,
            "embeddable_in": [],
            "url_variant": "standard",
            "url": null
          },
          "delivery_type": "email",
          "ceremony_creation": "automatic",
          "signature_options": [
            "typed",
            "drawn"
          ],
          "completed_at": "2026-11-02T15:21:40.000Z",
          "status_updated_at": "2026-11-02T15:21:40.000Z"
        }
      ],
      "deliverable": {
        "id": "del_6FF89lKNyTNamOJCJd1tLL",
        "name": null,
        "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
        "type": "standard",
        "status": "generated",
        "url": "https://vault.signatureapi.com/envelopes/eb4cf433-a8af-4161-b37b-7ef57d423e56/deliverables/del_6FF89lKNyTNamOJCJd1tLL/sealed.pdf?Expires=1794240000&Signature=EXAMPLE_SIGNATURE&Key-Pair-Id=EXAMPLE_KEY_ID",
        "language": "en",
        "timezone": "UTC",
        "timestamp_format": "MM/DD/YYYY HH:mm:ss",
        "included_documents": [
          "service_agreement"
        ],
        "password": null,
        "created_at": "2026-11-02T14:03:11.000Z",
        "generated_at": "2026-11-02T15:21:45.000Z"
      },
      "captures": {},
      "snapshot_url": null,
      "created_at": "2026-11-02T14:03:11.000Z",
      "completed_at": "2026-11-02T15:21:40.000Z"
    }
  ]
}
```

Description the agent sees:

> List envelopes for the authenticated account in one mode (test by default), most-recent first, with cursor pagination. Use this to discover existing envelopes before asking the user for an id, to check whether an envelope you'd be about to create already exists, or to answer 'what envelopes do I have?' style questions.
>
> Returns a paginated response with `data` (array of envelopes) and `links.next` / `links.previous` (opaque cursor URLs; extract the `cursor` query param to paginate).

### `list_events`

Lists events for the account, one envelope or one recipient, newest first, to follow signing progress.

Read-only.

Arguments:

- `envelope_id` (string): The unique identifier of an envelope.
- `recipient_id` (string): Only events of this recipient (`re_…`). Mutually exclusive with envelope_id.
- `type` (string): Filter by event type. One of: `envelope.created`, `envelope.started`, `envelope.completed`, `envelope.failed`, `envelope.canceled`, `recipient.released`, `recipient.sent`, `recipient.accessed`, `recipient.viewed`, `recipient.completed`, `recipient.soft_bounced`, `recipient.hard_bounced`, `recipient.rejected`, `recipient.failed`, `recipient.replaced`, `recipient.resent`, `deliverable.generated`, `deliverable.failed`.
- `limit` (integer): The maximum number of objects to return in the response.
- `cursor` (string): Pagination cursor from a previous response's `links.next`.
- `wait_seconds` (integer): Wait up to this many seconds (max 20) for an event newer than the current page. Default 0 = return immediately.
- `mode` (string): Mode this listing acts in (default `test`). Account-wide, it picks which mode's events are listed. With envelope_id or recipient_id, pass the mode the envelope was created in (its `mode` field): a call only reaches envelopes of its own mode, and a mismatch is refused with a mode error. One of: `test`, `live`.

Example `tools/call` request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_events",
    "arguments": {
      "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56"
    }
  }
}
```

Example result (`structuredContent`, test mode):

```json
{
  "links": {
    "next": "https://api.signatureapi.com/v1/envelopes/eb4cf433-a8af-4161-b37b-7ef57d423e56/events?cursor=seq_0iuY6HcQ2x",
    "previous": null
  },
  "data": [
    {
      "id": "evt_4GpGD1cNnrkemsTLAvPW9G",
      "type": "envelope.completed",
      "timestamp": "2026-11-02T15:21:40.000Z",
      "data": {
        "object_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
        "object_type": "envelope",
        "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
        "envelope_metadata": {}
      }
    },
    {
      "id": "evt_7BFIYuMgWzJ1AHscS0RNxC",
      "type": "recipient.completed",
      "timestamp": "2026-11-02T15:21:39.000Z",
      "data": {
        "object_id": "re_49r1R2jpPDz8hSpP75ZkPp",
        "object_type": "recipient",
        "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
        "envelope_metadata": {},
        "recipient_type": "signer",
        "recipient_key": "client",
        "session_id": "ses_1chIEkLOtmUMSdo0aL8p9A"
      }
    }
  ]
}
```

Description the agent sees:

> List SignatureAPI events, newest first: for the whole account, for one envelope (`envelope_id`) or for one recipient (`recipient_id`). Each event has `id`, `type` (e.g. `envelope.created`, `recipient.completed`, `deliverable.generated`), `timestamp` and a `data` payload containing resource correlation fields only (no authentication evidence or envelope metadata). This is how you verify that something happened.
>
> `wait_seconds` (0–20) turns the call into a wait: the server re-reads the listing every 2 seconds until an event newer than the first page appears, then returns. If nothing new arrives before the deadline the current page is returned with `timed_out: true`; that is not an error, call again to keep waiting. Use it right after an action (create_envelope, resend_request, a signer finishing) instead of sleeping and polling yourself.
>
> Paginate with `cursor` taken from `links.next`.

### `get_deliverables`

Returns the signed documents of an envelope with fresh download links.

Read-only.

Arguments:

- `envelope_id` (string, required): The unique identifier of an envelope.
- `mode` (string): Mode of the envelope this call acts on: the mode the envelope was created in (its `mode` field); default `test`. A call only reaches envelopes of its own mode, so a live envelope needs `live`; a mismatch is refused with a mode error. One of: `test`, `live`.

Example `tools/call` request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_deliverables",
    "arguments": {
      "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56"
    }
  }
}
```

Example result (`structuredContent`, test mode):

```json
{
  "data": [
    {
      "id": "del_6FF89lKNyTNamOJCJd1tLL",
      "name": null,
      "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
      "type": "standard",
      "status": "generated",
      "url": "https://vault.signatureapi.com/envelopes/eb4cf433-a8af-4161-b37b-7ef57d423e56/deliverables/del_6FF89lKNyTNamOJCJd1tLL.pdf?signature=9c4e1f7a2b",
      "language": "en",
      "timezone": "America/New_York",
      "timestamp_format": "MM/DD/YYYY HH:mm:ss",
      "included_documents": [
        "service_agreement",
        "mutual_nda"
      ],
      "password": null,
      "created_at": "2026-11-02T15:21:41.000Z",
      "generated_at": "2026-11-02T15:21:46.000Z"
    },
    {
      "id": "del_5E4joHpJipf9fQ4tG4zQow",
      "name": "hr_pack",
      "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
      "type": "simple",
      "status": "generated",
      "url": "https://vault.signatureapi.com/envelopes/eb4cf433-a8af-4161-b37b-7ef57d423e56/deliverables/del_5E4joHpJipf9fQ4tG4zQow.pdf?signature=5d2a8e0c71",
      "included_documents": [
        "service_agreement",
        "mutual_nda"
      ],
      "password": null,
      "created_at": "2026-11-03T09:31:00.000Z",
      "generated_at": "2026-11-03T09:31:05.000Z"
    }
  ]
}
```

Description the agent sees:

> Return every deliverable of an envelope with a fresh download `url`. A deliverable is the signed PDF (documents plus, by default, the audit log) produced when the envelope completes; each has a `status`; `pending` or `processing` while the envelope is not yet complete, `generated` when `url` is a pre-signed download link valid for about one hour, `failed` on a rare generation error.
>
> Call it after `envelope.completed` / `deliverable.generated` (see list_events). Call it again whenever a `url` has expired; every call re-fetches each deliverable, so the links are always fresh.

### `resend_request`

Sends the signing request email again to a recipient who has not finished yet.

Writes data. Asks for confirmation in most clients.

Arguments:

- `recipient_id` (string, required): The unique identifier of a recipient.
- `subject_override` (string): Custom email subject for the resend invitation email. Overrides the default subject for this resend only.
- `message_override` (string): Custom message body for the resend invitation email. Overrides the default message for this resend only.
- `mode` (string): Mode of the envelope this call acts on: the mode the envelope was created in (its `mode` field); default `test`. A call only reaches envelopes of its own mode, so a live envelope needs `live`; a mismatch is refused with a mode error. One of: `test`, `live`.

Example `tools/call` request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "resend_request",
    "arguments": {
      "recipient_id": "re_2f0wBwlt2te0kjU5QeL3Nl"
    }
  }
}
```

Example result (`structuredContent`, test mode):

```json
{
  "can_resend_at": "2026-11-02T17:42:12.000Z",
  "subject_override": null,
  "message_override": null
}
```

Description the agent sees:

> Resend the signing-request email to a recipient who has not completed yet. Allowed while the recipient is `sent` or `soft_bounced` and the envelope is `in_progress`. Optionally override the subject and message for this one email.
>
> Returns `can_resend_at`: the next resend is refused before that time. In live mode this emails a real person; confirm with the user first. In test mode nothing is sent; the email is recorded and readable through list_emails / get_email.

### `replace_recipient`

Replaces a recipient who has not finished with a different person, who keeps the same places and routing position.

Writes data. Asks for confirmation in most clients.

Arguments:

- `recipient_id` (string, required): The unique identifier of a recipient.
- `email` (string, required): The email address of the recipient. SignatureAPI emails the ceremony link to this address when the ceremony uses `email_link` authentication, and the completed deliverable when `delivery_type` is `email`.
- `name` (string, required): The full name of the recipient. Appears in invitation emails and is pre-filled for typed signatures.
- `mode` (string): Mode of the envelope this call acts on: the mode the envelope was created in (its `mode` field); default `test`. A call only reaches envelopes of its own mode, so a live envelope needs `live`; a mismatch is refused with a mode error. One of: `test`, `live`.

Example `tools/call` request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "replace_recipient",
    "arguments": {
      "recipient_id": "re_2f0wBwlt2te0kjU5QeL3Nl",
      "name": "John Smith",
      "email": "john.smith@example.com"
    }
  }
}
```

Example result (`structuredContent`, test mode):

```json
{
  "id": "re_0EAtHuOoJPemmG0WK7H0o5",
  "type": "signer",
  "key": "candidate",
  "name": "John Smith",
  "email": "john.smith@example.com",
  "status": "pending",
  "ceremony": {
    "authentication": [
      {
        "type": "email_code"
      }
    ],
    "redirect_url": null,
    "redirect_delay": 3,
    "embeddable_in": [],
    "url_variant": "standard",
    "url": null
  },
  "delivery_type": "email",
  "ceremony_creation": "automatic",
  "completed_at": null,
  "status_updated_at": "2026-11-02T17:05:00.000Z"
}
```

Description the agent sees:

> Replace a recipient with a different person. The original recipient becomes `replaced`; a new recipient is created with the given `email` and `name` and inherits the original's type, key, routing position and places. Allowed while the recipient has not completed and the envelope is `processing` or `in_progress`.
>
> Use it after a hard bounce or when the wrong person was assigned. In live mode the new person is emailed; confirm with the user first.

### `create_ceremony`

Creates a new signing session for a recipient, for example to change how they authenticate or to embed signing in your site.

Writes data. Asks for confirmation in most clients.

Arguments:

- `recipient_id` (string, required): The unique identifier of a recipient.
- `authentication` (array of object, required): The authentication methods the recipient must complete before accessing the ceremony. This is an ordered array. The recipient completes each method in sequence.
- `embeddable_in` (array of string): Origins allowed to embed the ceremony in an iframe.
- `redirect_url` (string): The URL the recipient is redirected to after the ceremony ends. Must use HTTPS. Embedded ceremonies ignore this redirect.
- `redirect_delay` (integer): The delay in seconds before the ceremony redirects to `redirect_url` (standalone) or emits completion events (embedded).
- `url_variant` (string): The format of the ceremony URL. One of: `standard`, `short`.
- `mode` (string): Mode of the envelope this call acts on: the mode the envelope was created in (its `mode` field); default `test`. A call only reaches envelopes of its own mode, so a live envelope needs `live`; a mismatch is refused with a mode error. One of: `test`, `live`.

Example `tools/call` request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_ceremony",
    "arguments": {
      "recipient_id": "re_49r1R2jpPDz8hSpP75ZkPp",
      "authentication": [
        {
          "type": "email_link",
          "subject_override": "Please sign the Service Agreement",
          "message_override": "Please review and sign the attached agreement."
        }
      ]
    }
  }
}
```

Example result (`structuredContent`, test mode):

```json
{
  "authentication": [
    {
      "type": "email_link",
      "subject_override": "Please sign the Service Agreement",
      "message_override": "Please review and sign the attached agreement."
    }
  ],
  "embeddable_in": [],
  "redirect_url": null,
  "redirect_delay": 3,
  "url_variant": "standard",
  "url": null
}
```

Description the agent sees:

> Create a new signing ceremony for a recipient, revoking any previous active one. Use it to switch a recipient's authentication (`email_link`, `email_code`, `custom`), to embed the ceremony in your own site (`embeddable_in`, with `custom` authentication), or to set a `redirect_url` after completion.
>
> The response includes ceremony settings but omits authentication evidence: `url` is present for `custom` and `email_code` authentication and `null` for `email_link`; for `email_link` the link is delivered by email and possession of that email is the recipient's authentication, so it is never disclosed here (in test mode read it through get_email). Creating a ceremony may email the recipient in live mode.

### `list_emails`

Lists the emails SignatureAPI generated for the account. In test mode, signing requests appear here instead of being sent.

Read-only.

Arguments:

- `envelope_id` (string): Filter by envelope id (UUID).
- `recipient_id` (string): Filter by recipient id (`re_…`), as returned inside an envelope.
- `mode` (string): Only emails of this mode. Omit to list test-mode emails only; pass `live` to list live-mode emails. One of: `live`, `test`.
- `search` (string): Free-text search over subject and recipient address.
- `cursor` (string): Pagination cursor from a previous response's `links.next`. Pass the same `mode` as the call that returned it.
- `limit` (integer): Page size (default 10, max 20).

Description the agent sees:

> List the emails SignatureAPI generated for the authenticated account, most-recent first, with cursor pagination. Covers signing-request emails, deliverable emails, OTP codes and owner notifications. Lists test-mode emails unless `mode` is `live`.
>
> In test mode emails are never actually sent; they are recorded here instead. Use this after creating a test-mode envelope to find the signing-request email (`type: "request"`) for a recipient, then call get_email to obtain its ceremony link. Also useful for deliverability questions (`status`, `delivered_at`, `bounced_at`).
>
> Returns `data` (array of emails) and `links.next` / `links.previous` (opaque cursor URLs; extract the `cursor` query param to paginate, and pass the same `mode` with it: a cursor does not carry the mode).

### `get_email`

Returns one email. A test-mode signing request includes the link to its ceremony.

Read-only.

Arguments:

- `email_id` (string, required): Email id (`eml_…`), as returned by list_emails.
- `mode` (string): Mode of the email this call acts on: the email's own mode (its `mode` field in list_emails); default `test`. A call only reaches emails of its own mode, so a live email needs `live`; a mismatch is refused with a mode error. One of: `test`, `live`.

Description the agent sees:

> Fetch a single SignatureAPI email by id (`eml_…`, from list_emails), including delivery details. Only test-mode signing-request emails include a short-lived `html_url` and extracted `ceremony_url`; live email content and authentication-code content are not returned.
>
> This is how an agent reaches an `email_link` ceremony in test mode: list_emails for the envelope, pick the `request`-type email, then use this tool's `ceremony_url`. For live-mode emails `ceremony_url` is always null; possession of the emailed link is the recipient's authentication, so live links are never disclosed.

### `list_webhooks`

Lists the webhook endpoints subscribed in one mode.

Read-only.

Arguments:

- `mode` (string): Which of the account's two webhook configurations to use. Webhooks are separate per mode: test-mode envelopes only fire test-mode webhooks. Defaults to test. One of: `test`, `live`.

Description the agent sees:

> List the webhook endpoints subscribed for the authenticated account in one mode (test or live). Each endpoint shows its URL, the event types it receives (`null` = all), the envelope topics it is limited to (`null` = all) and whether it is disabled.
>
> Webhooks are configured separately per mode: an endpoint created in test mode only receives events from test-mode envelopes. Use this before create_webhook to avoid duplicates, and to find the `id` for update_webhook, list_webhook_attempts and delete_webhook.

### `create_webhook`

Subscribes an HTTPS endpoint to SignatureAPI events.

Writes data. Asks for confirmation in most clients.

Arguments:

- `url` (string, required): Publicly reachable HTTPS URL that accepts POST requests.
- `description` (string): Label shown in the dashboard's webhook list.
- `event_types` (array of string): Event types to deliver. Omit for all. One of: `envelope.created`, `envelope.started`, `envelope.completed`, `envelope.canceled`, `envelope.failed`, `recipient.released`, `recipient.sent`, `recipient.accessed`, `recipient.viewed`, `recipient.completed`, `recipient.rejected`, `recipient.failed`, `recipient.soft_bounced`, `recipient.hard_bounced`, `recipient.replaced`, `recipient.resent`, `deliverable.generated`, `deliverable.failed`, `sender.created`, `sender.verified`, `sender.deleted`, `sender.failed`.
- `topics` (array of string): Only deliver events of envelopes that carry one of these topics. Omit for all envelopes.
- `mode` (string): Which of the account's two webhook configurations to use. Webhooks are separate per mode: test-mode envelopes only fire test-mode webhooks. Defaults to test. One of: `test`, `live`.

Description the agent sees:

> Subscribe a user-authorized HTTPS endpoint to SignatureAPI events. Future matching events are sent to that endpoint. Returns the endpoint and signing_secret_dashboard_url for the user's credential management outside the conversation. Credentials; API keys and webhook signing secrets; are never returned by a tool; never ask them to paste it into the chat.
>
> Deliveries follow the Standard Webhooks spec: verify the `webhook-id`, `webhook-timestamp` and `webhook-signature` headers with the secret (search_documentation for 'verify webhook signature'). Omit `event_types` to receive every event; `topics` limits deliveries to envelopes carrying one of those topics.
>
> list_webhook_attempts reports delivery results. Create a test envelope to exercise the endpoint only when that test is part of the user's request.

### `delete_webhook`

Deletes a webhook endpoint. Pending deliveries to it are dropped.

Writes data. Asks for confirmation in most clients.

Arguments:

- `webhook_id` (string, required): Webhook endpoint id (`ep_…`), as returned by list_webhooks or create_webhook.
- `mode` (string): Which of the account's two webhook configurations to use. Webhooks are separate per mode: test-mode envelopes only fire test-mode webhooks. Defaults to test. One of: `test`, `live`.

Description the agent sees:

> Unsubscribe and permanently delete a webhook endpoint in the given mode. Pending deliveries to it are dropped. Cannot be undone; create_webhook again if needed.

### `update_webhook`

Changes a webhook endpoint's URL, event types or topics, or pauses and resumes it.

Writes data. Asks for confirmation in most clients.

Arguments:

- `webhook_id` (string, required): Webhook endpoint id (`ep_…`), as returned by list_webhooks or create_webhook.
- `mode` (string): Which of the account's two webhook configurations to use. Webhooks are separate per mode: test-mode envelopes only fire test-mode webhooks. Defaults to test. One of: `test`, `live`.
- `url` (string): New HTTPS URL for deliveries.
- `description` (string): New label.
- `event_types` (array of string or null): Event types to deliver; `null` = every event type. Omit to keep the current filter.
- `topics` (array of string or null): Envelope topics to deliver; `null` = every envelope. Omit to keep the current filter.
- `disabled` (boolean): `true` pauses deliveries, `false` resumes them.

Description the agent sees:

> Change a webhook endpoint in place: its `url`, `description`, the `event_types` it receives, the envelope `topics` it is limited to, or pause/resume it with `disabled`. Only the fields you pass change; pass `null` for `event_types` or `topics` to remove that filter (deliver everything). The signing secret is unchanged and is not returned.
>
> Repeating the same call is a no-op. Changing `url` redirects customer traffic, so confirm with the user; prefer `disabled: true` over delete_webhook when an endpoint should merely stop receiving events for a while.

### `list_webhook_attempts`

Lists the most recent delivery attempts to a webhook endpoint, with their status and response code.

Read-only.

Arguments:

- `webhook_id` (string, required): Webhook endpoint id (`ep_…`), as returned by list_webhooks or create_webhook.
- `mode` (string): Which of the account's two webhook configurations to use. Webhooks are separate per mode: test-mode envelopes only fire test-mode webhooks. Defaults to test. One of: `test`, `live`.
- `limit` (integer): Page size (default 10, max 50).
- `cursor` (string): Pagination cursor from a previous response's `next_cursor`.

Description the agent sees:

> List the most recent delivery attempts made to a webhook endpoint, newest first: message id, event type, event id, delivery `status` (`success`, `pending`, `fail`, `sending`), the endpoint's HTTP status code and response time. Destination response bodies are omitted.
>
> This is how to confirm a webhook arrived after an event on an envelope. Failed deliveries are retried automatically for about a day; a persistent `fail` with a 4xx/5xx `response_status_code` points at the endpoint. Paginate with `cursor` from `next_cursor`.

### `search_documentation`

Searches the SignatureAPI documentation, or reads one page in full.

Read-only.

Arguments:

- `query` (string): Natural-language question or keyword query, e.g. 'how do I set signer order' or 'webhook envelope completed event'. Required unless `page` is given.
- `max_results` (integer): Maximum number of results to return (1–10, default 5). Ignored with `page`.
- `page` (string): Docs slug to read in full, e.g. `docs/api/webhooks` (the path of a result `url`). When set, `query` is ignored.

Description the agent sees:

> Search the public SignatureAPI documentation and return ranked excerpts with source URLs; or, with `page`, read one documentation page in full.
>
> Use this BEFORE create_envelope (or any envelope-shape question) whenever you're unsure about: field names, accepted enum values, recipient/document/place schemas, supported file formats, webhook events, authentication, embedded signing, or any concept-level question (test mode, deliverables, ceremonies, attestation, etc.). It is cheaper to search than to guess and have the envelope rejected.
>
> Two modes: (1) `query` returns up to `max_results` results, each with a `title`, `url` and short `snippet`; (2) `page` (a docs slug such as `docs/api/webhooks`, taken from a result's `url`) returns that page's complete Markdown in `page.markdown` and ignores `query`. Search first, then read the page whose excerpt looks right. Cite the `url` back to the user when explaining how something works.

### `upload_file`

Uploads a file the user selected in ChatGPT so it can be used as an envelope document.

Writes data. ChatGPT app only.

Arguments:

- `file` (object, required): A ChatGPT Apps file reference.

Description the agent sees:

> Upload a file provided by ChatGPT Apps file handling into SignatureAPI.
> Use this when the user has uploaded or selected a PDF, DOCX, or PNG in ChatGPT and wants to use it as a SignatureAPI document, template, logo, or symbol asset.
> The `file` input is a ChatGPT file parameter; do not invent URLs. Let ChatGPT populate it from the user's uploaded or selected file.
> Returns a SignatureAPI upload URL. Pass `url` as `document.url` in create_envelope.
