Skip to Content

list_documents

The Documents list exactly as the web app shows it: PDFs and Docs in one list, newest first, only the ones the caller may see. scope 'mine' (created by or sent to the caller; the default for a person) or 'workspace' (the default for an API key, which owns no documents); filter by status group (needs_you, drafts, waiting, completed, declined, expired, voided, expiring), sent_as (single, bulk, unsent), type, owner (a user id), client (a client id) and q (name or recipient).

readOnly reads. Clients can run it without asking you.

What it does

The Documents list exactly as the web app shows it: PDFs and Docs in one list, newest first, only the ones the caller may see. scope 'mine' (created by or sent to the caller; the default for a person) or 'workspace' (the default for an API key, which owns no documents); filter by status group (needs_you, drafts, waiting, completed, declined, expired, voided, expiring), sent_as (single, bulk, unsent), type, owner (a user id), client (a client id) and q (name or recipient). Paged with page (from 1) and limit (1 to 50, default 25). Returns documents[] (id, kind, name, status, owner, client, envelope_id, url), total and counts per status group. include_filters: true also returns filters {owners, clients}: everyone and every client the list could be filtered by (long in a big workspace; to find a client's id use search_clients instead). A kind 'doc' row is a Doc; for a sent Doc, pdf_document_id is the PDF id the other document tools take. in_trash: true lists the Trash instead (deleted PDFs and Docs, restorable for 30 days; kind tells them apart): restore_document and delete_document_forever take the PDF ones; a trashed Doc is restored in the web app. Use get_document for one document's detail, list_envelopes for raw envelope rows.

Inputs

NameTypeDescription
scopestringOne of: mine, workspace
statusstring[]
sent_asstring[]
typestringOne of: all, docs, pdfs
ownerstringA user id (each row names its owner).
clientstringA client id: only that client's documents.
qstringMatches the name, or a recipient's name or email.Up to 200 characters
sortstringOne of: created, name, status, owner
dirstringOne of: asc, desc
pageintegerAt least 1
limitintegerRows per page, 1 to 50 (default 25).1 to 50 · Default: 25
in_trashbooleantrue: the Trash (deleted PDFs and Docs) instead of the list; the other filters are ignored.
include_filtersbooleantrue: also return filters {owners, clients} for the owner and client filters (default false; search_clients finds a client).

Call it

Your MCP client builds this request for you. This is what it sends to https://appliflo.com/api/mcp, with the required inputs filled with placeholders.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_documents",
    "arguments": {}
  }
}

Input schema

The JSON Schema the server lists for this tool in tools/list.

{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "scope": {
      "type": "string",
      "enum": [
        "mine",
        "workspace"
      ]
    },
    "status": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "needs_you",
          "drafts",
          "waiting",
          "completed",
          "declined",
          "expired",
          "voided",
          "expiring"
        ]
      }
    },
    "sent_as": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "single",
          "bulk",
          "unsent"
        ]
      }
    },
    "type": {
      "type": "string",
      "enum": [
        "all",
        "docs",
        "pdfs"
      ]
    },
    "owner": {
      "type": "string",
      "description": "A user id (each row names its owner)."
    },
    "client": {
      "type": "string",
      "description": "A client id: only that client's documents."
    },
    "q": {
      "type": "string",
      "maxLength": 200,
      "description": "Matches the name, or a recipient's name or email."
    },
    "sort": {
      "type": "string",
      "enum": [
        "created",
        "name",
        "status",
        "owner"
      ]
    },
    "dir": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "page": {
      "type": "integer",
      "minimum": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 25,
      "description": "Rows per page, 1 to 50 (default 25)."
    },
    "in_trash": {
      "type": "boolean",
      "description": "true: the Trash (deleted PDFs and Docs) instead of the list; the other filters are ignored."
    },
    "include_filters": {
      "type": "boolean",
      "description": "true: also return filters {owners, clients} for the owner and client filters (default false; search_clients finds a client)."
    }
  }
}

On this page