Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as fynk MCP. If you published it, claim ownership there.

List documents

list-documents
Read-onlyIdempotent

Get a paginated list of the documents available to the current user.

Use this tool when:

  • You need to find a document_uuid to use as input for another tool

  • You need to know which documents the current user has access to, or which match some conditions

  • You want to count documents matching some conditions (read total)

  • You need the same information about several documents: use include and include_metadata rather than calling get-document-info once per document

Without filter_expression, every document the user can access is returned, archived ones included, with the most recently updated first. For ordinary requests, add archived_at is null as described below. Each document is returned as a compact summary; use include to request additional sections (parties, teams, tags, details, signing_settings, timestamps) and include_metadata to return named metadata values for every document.

total counts all matching documents, but documents and their metadata are returned only for the current page. Fetch the remaining pages while current_page < max_page when you need the complete set, including when calculating totals from metadata such as contract value.

Discover before writing an expression

Call this tool with mode="describe_fields" before writing an expression that uses metadata (md.*), option values, or a field you are unsure of: it lists every field documents can be filtered on in this account, with its operators and allowed values, including the account's metadata fields. Metadata names and select options differ per account, so never guess them.

Accounts classify their documents using structures they define themselves, and the words a user puts in a question are usually labels their account already uses. "our customers", "suppliers", "key accounts", "renewals", "EMEA" and "high value" sound like descriptions of content but are far more likely to be a tag, a document type, or a metadata field or option. These lookups are cheap and return small, complete lists, so look rather than guess:

  • list-account-tags: uuids for tags

  • list-account-document-types: uuids for document_type

  • list-account-teams: uuids for teams

  • list-account-parties: the account's own entities, for account_parties

  • search-external-parties: counterparties, for external_parties

  • search-document-users: people, for document_users / signatories

  • list-templates, search-automations, search-imports: uuids for template, automation, import

When a question groups documents into a category that is not represented by a document type, check list-account-tags before treating that category as free text.

Decompose the request, then map every part to a condition

Split the request into its conditions, find the structured field each one corresponds to, and combine them all in one expression. "what logo usage rights do we have for our largest customers?" is three conditions: "customers" (likely a tag or document type), "largest" (a currency metadata field: a range condition, or sort_by that field) and "logo usage rights" (possibly a metadata field). Answering with just one of them silently answers a different question.

The search argument is a fuzzy full-text search over document name, content and other indexed fields. Use it only for genuinely free-text conditions; for a document name use name contains "...", and never use search for something a field covers. Loose or topical phrasing such as "anything to do with Acme" or "documents about product variant Alpha" does not make a condition free text: check for a structured field or value first. If search returns no results, check whether the term is a tag, document type, metadata value or party before concluding nothing matches.

FQL syntax

and, or, not, parentheses; =, !=, <, <=, >, >=; field in ("a", "b"); text contains / starts with / ends with (literal, case-insensitive); collections tags contains "<uuid>", contains any (...), contains all (...); is null, is not null, is empty, is not empty; object collections exists(collection, predicate) and all(collection, predicate); start_of("week"|"month"|"quarter"|"year"[, offset]), end_of(...) (same arguments), today(), days_ago(N), days_from_now(N), now(), current_account_user(). Metadata fields are md.<name>, or md["<name>"] when the name contains anything other than ASCII letters, digits and underscores; use field names exactly as mode="describe_fields" returns them, money components md.<name>.amount, .currency, .interval. Use double-quoted strings. Dates and timestamps are double-quoted ISO 8601 strings; a date-only operand, today(), days_ago(N), days_from_now(N) or end_of(...) (the period's last day) against a timestamp field covers that whole calendar day, exactly like the quoted date (so created_at = today() matches anything created today, created_at = days_ago(1) anything created yesterday, and created_at >= days_ago(7) anything created since the start of the day 7 days ago), while start_of(...) resolves to the period's first midnight. The optional signed offset of start_of and end_of counts whole periods from the current one: start_of("month", 1) is the start of next month, end_of("quarter", -1) the last day of last quarter. Duration operands are double-quoted ISO durations, e.g. md.<field> = "P10M" for ten months. Not every operator applies to every field: the operators mode="describe_fields" lists for a field are the ones it accepts.

FQL examples

Single conditions

  • Active documents: archived_at is null

  • Archived documents: archived_at is not null

  • Draft documents: stage = "draft"

  • Name contains NDA: name contains "NDA"

  • German documents across regional locales: locale starts with "de"

  • A specific document type: document_type = "{document_type_uuid}"

Tags, teams and missing values

  • Either tag: tags contains any ("{tag_a_uuid}", "{tag_b_uuid}")

  • Both tags: tags contains all ("{tag_a_uuid}", "{tag_b_uuid}")

  • Neither tag: not (tags contains any ("{tag_a_uuid}", "{tag_b_uuid}"))

  • Assigned to a team: teams contains "{team_uuid}"

  • Unassigned to any team: teams is empty

  • No language set: locale is null

  • A language is set: locale is not null

Metadata

Use the account's discovered field names and option values in these examples.

  • A select value (with a metadata name requiring bracket notation): md["tätigkeitsfamilie_it_kv"] = "ZT"

  • An amount of at least 10,000: md.contract_value.amount >= 10000

  • Currency is EUR: md.contract_value.currency = "EUR"

  • A duration of ten months: md.<field> = "P10M"

  • Expiring on a specific date (date metadata): md.expiration_date = "2026-11-10"

  • Signed at any time on a specific day (system timestamp metadata): md.signed_date = "2026-11-10". A date-only operand matches the whole calendar day in the query timezone.

  • Signed at or after a specific instant: md.signed_date >= "2026-11-10T14:30:00+01:00". Timestamp literals include the time and an explicit UTC offset (or Z).

  • Expired before today: md.expiration_date < today()

  • Expiring today: md.expiration_date = today()

  • Expiring tomorrow: md.expiration_date = days_from_now(1)

  • Expires after today (expiration date set): md.expiration_date > today()

  • Expiring within the next 30 days, today included: md.expiration_date >= today() and md.expiration_date <= days_from_now(30)

  • Expiring this month: md.expiration_date >= start_of("month") and md.expiration_date <= end_of("month")

  • Expiring next quarter: md.expiration_date >= start_of("quarter", 1) and md.expiration_date <= end_of("quarter", 1)

  • Not expired before today, including documents expiring today or without an expiration date: not (md.expiration_date < today())

Combined conditions

  • Active documents in draft or review with NDA in their name: archived_at is null and stage in ("draft", "review") and name contains "NDA"

  • Assigned to a specific team or unassigned: teams contains "{team_uuid}" or teams is empty

  • A specific document type with a contract value of at least EUR 10,000: document_type = "{document_type_uuid}" and md.contract_value.amount >= 10000 and md.contract_value.currency = "EUR"

  • Involving a named counterparty: exists(external_parties, entity_name = "Acme GmbH")

  • Involving a named person: exists(document_users, first_name = "Jane" and last_name = "Doe")

  • Involving a person by email: exists(document_users, email = "jane@example.com")

  • Created last quarter: created_at >= start_of("quarter", -1) and created_at <= end_of("quarter", -1)

  • Created in the last 30 days or with an open discussion: created_at >= days_ago(30) or exists(discussions, resolved_at is null)

Workflow recipes

  • Joined by the current user: exists(document_users, account_user = current_account_user() and roles contains any ("owner", "collaborator")). Wrap in not (...) for documents not joined yet, e.g. before joining several with join-document. After joining a page, request page 1 again.

  • AI analysis applied: exists(ai_analyses, status = "applied") matches any of a document's analyses; exists(ai_analyses, latest = true and status = "applied") matches only its latest, the one the app shows the status of. Use ai_analyses is empty for documents never analysed.

  • Awaiting the current user's signature: archived_at is null and stage = "signing" and exists(signatories, account_user = current_account_user() and signing_complete = false)

  • Fetch information for known documents: uuid in ("{uuid_a}", "{uuid_b}"). Combine with include or include_metadata; UUIDs that do not exist or are not accessible simply do not match. Set per_page to cover the requested UUIDs, up to 50; it defaults to 10 even for a UUID list. Fetch remaining pages when current_page < max_page.

Parties vs. people

A document's parties (the contracting entities, frequently organizations) are distinct from its signatories and other document users (the individual people on it). To find documents involving a named person in any role, use document_users; use signatories when the condition specifically concerns that person as a signer. A party field does not match the individual people acting on its behalf. account_parties are the account's OWN entities ("our company", "our subsidiary"); external_parties are the counterparties. When it is unclear which kind a named entity is, or one lookup returns nothing, check the other kind before concluding there are no matching documents.

Active vs. archived documents

The app user interface hides archived documents by default. Unless the user asks for archived documents, historical records, or explicitly includes archived documents in a complete inventory, add archived_at is null. This also applies to ordinary list and count requests; "all" alone does not imply including archived documents.

No archive condition is applied automatically. Use archived_at is not null for archived documents only, or omit the archive condition to include both. Archiving is not deletion: if an active-only search finds nothing, check archived documents before concluding that no matching documents exist.

Whenever results include archived documents, request include=["timestamps"] and clearly identify archived items using archived_at. For counts or aggregates, explicitly state that archived documents are included.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "<mode>"
    },
    "name": "list-documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes"list" returns matching documents. "describe_fields" returns the fields an expression can use instead, with their operators and allowed values, including this account's metadata fields; it takes no other argument
pageNoWhich page of results to fetch
searchNoA fuzzy full-text relevance search across document name, plaintext content and other indexed fields, combined with filter_expression using AND. Only for genuinely free-text conditions: it is NOT a reliable way to match a structured attribute such as a metadata value, party, document user, tag or document type, which belong in filter_expression. If sort_by is not provided, results are returned most relevant first
includeNoOptional sections to include for each document, on top of the default compact summary. Allowed values: parties (the contracting entities, in compact form), teams (the teams the document is assigned to), tags (the account classification labels on the document), details (origin, locale and source template), signing_settings (signature type, sequential signing and the external signatory invitation message), timestamps (created_at, updated_at and archived_at - the last of these tells an archived document from an active one). Only request the sections you actually need; use get-document-info for full information about a single document.
sort_byNoSort results by this field. The default is updated_at, or relevance when search is given. Allowed values are any of the static sort fields (name, stage, created_at, updated_at, archived_at, relevance) or any bare metadata field name, e.g. contract_value, not the expression field md.contract_value or md.contract_value.amount returned by describe_fields; relevance requires search
per_pageNoHow many results to return on each page
sort_directionNoThe default is: desc
include_metadataNoBare metadata field names to return a value for on every document in the response, e.g. contract_value, not the expression field md.contract_value or md.contract_value.amount returned by describe_fields. Request up to 10 fields. Use this whenever you need the same metadata for several documents - it returns those values for the whole page in one call, instead of calling get-document-info once per document. Fetch remaining pages when current_page < max_page to cover all matches. Each requested field is returned for every document, with a null value where that document has no value for it. Only request the fields you actually need: the response grows with per_page × the number of fields
filter_expressionNoThe FQL filter expression, see the tool description. Omit it to list every document the user can access, archived ones included

Output Schema

NameRequiredDescriptionDefault
totalNoHow many documents match across all pages; present only for mode=list
fieldsNoThe fields an expression can use; present only for mode=describe_fields
max_pageNoHow many pages of results are available; present only for mode=list
documentsNoThe matching documents on this page; present only for mode=list
in_app_urlNoA URL that opens the fynk app's documents list with the same filter, search, sorting and pagination applied; present only for mode=list. Give this to the user when they may want to view or work with this list of documents in the fynk app
current_pageNoWhich page of results this is; present only for mode=list

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed37 schema fields changed
    • removedInput schema / properties / filter_account_parties
      Removed value: -{
      -  "description": "A list of account party UUIDs (find them with list-account-parties). Account parties are the account's OWN entities — the company the user belongs to and its subsidiaries/group companies (\"our\" company, \"our subsidiary\"), as opposed to external parties (filter_external_parties), which are the counterparties on the other side. Matches documents that involve any of the given account parties. A party is a contracting entity (often a business/organization) and is distinct from the individual people on a document — to find documents involving a specific named person, use filter_document_users instead",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_ai_analysed
      Removed value: -{
      -  "description": "If true, finds documents whose AI analysis has been applied, i.e. whose metadata, parties and other details were filled in from an AI analysis. If false, finds documents without an applied AI analysis, including documents whose analysis is still running, awaiting review or failed. Documents created from an uploaded PDF or an import are usually analysed when they are created, whereas documents written in the editor or created from a template only have an analysis if a user started one, so most of those count as not analysed. Omit to apply no filtering by AI analysis",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / filter_archived_state
      Removed value: -{
      -  "default": "active",
      -  "description": "Which documents to return, by archived state. \"active\" (the default) returns only active, non-archived documents; \"archived\" returns only archived documents; \"all\" returns both. Use \"all\" whenever the answer is meant to cover a complete set or a count of documents (\"all our NDAs\", \"how many contracts with Acme\"): archiving is not deletion, so an archived document is still a real agreement and leaving it out under-reports the answer. Use \"archived\" only when the user asks specifically about archived documents. With \"all\" the response does not say which results are archived unless you also request include=[\"timestamps\"]: archived_at is set on an archived document and null on an active one",
      -  "enum": [
      -    "active",
      -    "archived",
      -    "all"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / filter_automations
      Removed value: -{
      -  "description": "A list of automation UUIDs (find them with search-automations). Matches documents created by any of the given automations",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_discussions
      Removed value: -{
      -  "description": "`has_any` will find documents that have at least one discussion (regardless of current status). `has_open` will find only documents that have at least one open discussion",
      -  "enum": [
      -    "has_any",
      -    "has_open"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / filter_document_types
      Removed value: -{
      -  "description": "A list of document type UUIDs (find them with list-account-document-types). Matches documents of any of the given types",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_document_users
      Removed value: -{
      -  "description": "A list of document users (find them with search-document-users). Matches documents that any of the given people are on. Use this when looking for documents involving a specific named individual (such as a signatory or contact): that person is distinct from a party, and may sign or act on behalf of a party (e.g. a business) without being a party themselves. Provide first_name and last_name as returned by search-document-users",
      -  "items": {
      -    "properties": {
      -      "first_name": {
      -        "description": "First name of the document user",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "last_name": {
      -        "description": "Last name of the document user",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_document_uuids
      Removed value: -{
      -  "description": "A list of document UUIDs, up to 50. Restricts the results to those documents. Use this when you already know which documents you are interested in — for example to fetch include_metadata values, parties or tags for a set of documents whose UUIDs you have from earlier in the conversation — instead of calling get-document-info once per document. Unless you set per_page yourself, the page is sized to the list so a single response covers every UUID you sent. UUIDs that do not exist, or that the current user cannot access, simply do not appear in the results, so do not assume every UUID you send is returned",
      -  "items": {
      -    "type": "string"
      -  },
      -  "maxItems": 50,
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_excluded_tags
      Removed value: -{
      -  "description": "A list of tag UUIDs (find them with list-account-tags). Documents with ANY of these tags will be excluded from the result",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_expired
      Removed value: -{
      -  "description": "If true, finds documents with an expiration date in the past. If false, excludes documents with an expiration date in the past (documents without an expiration date count as not expired). Omit to apply no expiry filtering",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / filter_expression
      Added value: +{
      +  "description": "The FQL filter expression, see the tool description. Omit it to list every document the user can access, archived ones included",
      +  "type": "string"
      +}
    • removedInput schema / properties / filter_external_parties
      Removed value: -{
      -  "description": "A list of external party names (the entity_name returned by search-external-parties). External parties are the counterparties on the other side of an agreement (entities that do NOT belong to the account), as opposed to account parties (filter_account_parties), which are the account's own entities (\"our\" company and its subsidiaries). Matches documents that involve any of the given external parties. A party is a contracting entity (often a business/organization) and is distinct from the individual people on a document — to find documents involving a specific named person, use filter_document_users instead",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_imports
      Removed value: -{
      -  "description": "A list of import UUIDs (find them with search-imports). Matches documents that came from any of the given imports",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_joined
      Removed value: -{
      -  "description": "If true, finds documents the current user has joined, i.e. is an owner or collaborator on. If false, finds documents the current user has not joined yet (including documents they are on only as signatory), which join-document still makes them a collaborator on. Omit to apply no filtering by joined state. Use false before joining several documents with join-document, so documents already joined are not joined again. Joining a document removes it from a filter_joined=false result, which moves the remaining documents to earlier pages: after joining the documents of a page, request page 1 again rather than the next page, until total is 0. The in_app_url does not apply this filter",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / filter_locales
      Removed value: -{
      -  "description": "A list of either document language locale codes (e.g. \"en-US\", \"de-DE\") or the special value \"has_no_value\". Matches documents whose language is any of the given locales. \"has_no_value\" finds documents with no language set",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_metadata
      Removed value: -{
      -  "description": "Filter by metadata field values. Discover field names, value_type and select_values with list-account-metadata. Each entry in filter_metadata must name one field and provide exactly one matcher appropriate to that field type",
      -  "items": {
      -    "properties": {
      -      "any_of": {
      -        "description": "For select/multi-select fields: match any of these option values (see select_values from list-account-metadata)",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": [
      -          "array",
      -          "null"
      -        ]
      -      },
      -      "boolean": {
      -        "description": "For boolean/clause fields: match true or false",
      -        "type": [
      -          "boolean",
      -          "null"
      -        ]
      -      },
      -      "contains": {
      -        "description": "For text/email/textarea fields: substring match",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "date_range": {
      -        "description": "For date/timestamp fields: inclusive YYYY-MM-DD range. Provide from, to, or both",
      -        "properties": {
      -          "from": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "to": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      },
      -      "duration": {
      -        "description": "For duration fields: match an exact duration, e.g. {amount: 10, unit: \"month\"}",
      -        "properties": {
      -          "amount": {
      -            "type": "integer"
      -          },
      -          "unit": {
      -            "enum": [
      -              "day",
      -              "week",
      -              "month",
      -              "year"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      },
      -      "name": {
      -        "description": "The metadata field `name` from list-account-metadata",
      -        "type": "string"
      -      },
      -      "presence": {
      -        "description": "Match documents that have any value / no value for this field. Valid for any field type",
      -        "enum": [
      -          "has_any_value",
      -          "has_no_value"
      -        ],
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "range": {
      -        "description": "For number/currency fields: inclusive range. Provide min, max, or both (min == max matches exactly)",
      -        "properties": {
      -          "max": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "min": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_origins
      Removed value: -{
      -  "description": "A list of document origins. Matches documents with ANY of the given origins",
      -  "items": {
      -    "enum": [
      -      "signed_pdf",
      -      "signed_pdf_external_account",
      -      "template",
      -      "scratch",
      -      "onboarding",
      -      "pdf"
      -    ],
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_query
      Removed value: -{
      -  "description": "A fuzzy full-text relevance search across document name, plaintext content and other indexed fields (metadata, parties, etc). Because it is fuzzy, it is NOT a reliable way to filter by a specific structured attribute such as a metadata value, party, document user or document type — for those, use the matching filter_ parameter instead. Prefer filter_query only for genuine free-text searches or when searching by document name. If sort_by is not provided, results will be returned most relevant first",
      -  "maxLength": 255,
      -  "type": "string"
      -}
    • removedInput schema / properties / filter_stages
      Removed value: -{
      -  "description": "A list of document stages. Matches documents that are in ANY of the given stages",
      -  "items": {
      -    "enum": [
      -      "draft",
      -      "approved_draft",
      -      "review",
      -      "approved_review",
      -      "signing",
      -      "done"
      -    ],
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_tag_and
      Removed value: -{
      -  "description": "If true, changes filter_tags behavior to only match documents that have ALL of the given tags. Sending false or omitting this filter has no effect",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / filter_tags
      Removed value: -{
      -  "description": "A list of tag UUIDs (find them with list-account-tags). Tags are the account's own classification labels, commonly covering relationship type (customer, supplier, partner), commercial significance (key account, strategic), lifecycle or region. When a user groups documents by a category — \"our customers\", \"vendor contracts\", \"strategic accounts\" — that category is often a tag, so check list-account-tags before treating it as free text. The default behavior is to match documents that have ANY of the given tags",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_team_unassigned
      Removed value: -{
      -  "description": "If true, finds documents, that are not assigned to any team. May be combined with the filter_teams filter to find documents that are in the given filter_teams OR are unassigned. Sending false or omitting this filter has no effect",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / filter_teams
      Removed value: -{
      -  "description": "A list of team UUIDs (find them with list-account-teams). Matches documents assigned to any of the given teams",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_templates
      Removed value: -{
      -  "description": "A list of template UUIDs (find them with list-templates). Matches documents created from any of the given templates",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedInput schema / properties / include / description
      Previous value: -"Optional sections to include for each document, on top of the default compact summary. Allowed values: parties (the contracting entities, in compact form), teams (the teams the document is assigned to), tags (the account classification labels on the document — useful for seeing which categories the account actually uses), details (origin, locale and source template), signing_settings (signature type, sequential signing and the external signatory invitation message), timestamps (created_at, updated_at and archived_at — the last of these tells an archived document from an active one). Only request the sections you actually need; use get-document-info for full information about a single document."New value: +"Optional sections to include for each document, on top of the default compact summary. Allowed values: parties (the contracting entities, in compact form), teams (the teams the document is assigned to), tags (the account classification labels on the document), details (origin, locale and source template), signing_settings (signature type, sequential signing and the external signatory invitation message), timestamps (created_at, updated_at and archived_at - the last of these tells an archived document from an active one). Only request the sections you actually need; use get-document-info for full information about a single document."
    • changedInput schema / properties / include_metadata / description
      Previous value: -"Metadata field `name`s (from list-account-metadata) to return a value for on every document in the response, up to 10 fields. Use this whenever you need the same metadata for several documents — it answers the whole question in one call, instead of calling get-document-info once per document. Each requested field is returned for every document, with a null value where that document has no value for it. Only request the fields you actually need: values are returned per document, so the response grows with per_page × the number of fields"New value: +"Bare metadata field names to return a value for on every document in the response, e.g. contract_value, not the expression field md.contract_value or md.contract_value.amount returned by describe_fields. Request up to 10 fields. Use this whenever you need the same metadata for several documents - it returns those values for the whole page in one call, instead of calling get-document-info once per document. Fetch remaining pages when current_page < max_page to cover all matches. Each requested field is returned for every document, with a null value where that document has no value for it. Only request the fields you actually need: the response grows with per_page × the number of fields"
    • addedInput schema / properties / mode
      Added value: +{
      +  "description": "\"list\" returns matching documents. \"describe_fields\" returns the fields an expression can use instead, with their operators and allowed values, including this account's metadata fields; it takes no other argument",
      +  "enum": [
      +    "list",
      +    "describe_fields"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / per_page / description
      Previous value: -"How many results to return on each page. Defaults to 10, or - when filter_document_uuids is used - to the number of UUIDs given, so that one response covers them all"New value: +"How many results to return on each page"
    • addedInput schema / properties / search
      Added value: +{
      +  "description": "A fuzzy full-text relevance search across document name, plaintext content and other indexed fields, combined with filter_expression using AND. Only for genuinely free-text conditions: it is NOT a reliable way to match a structured attribute such as a metadata value, party, document user, tag or document type, which belong in filter_expression. If sort_by is not provided, results are returned most relevant first",
      +  "maxLength": 255,
      +  "type": "string"
      +}
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort results by this field. The default is: updated_at. Allowed values are any of the static sort fields (name, stage, created_at, updated_at, archived_at, relevance) or any metadata field `name` from list-account-metadata"New value: +"Sort results by this field. The default is updated_at, or relevance when search is given. Allowed values are any of the static sort fields (name, stage, created_at, updated_at, archived_at, relevance) or any bare metadata field name, e.g. contract_value, not the expression field md.contract_value or md.contract_value.amount returned by describe_fields; relevance requires search"
    • addedInput schema / required
      Added value: +[
      +  "mode"
      +]
    • changedOutput schema / properties / current_page / description
      Previous value: -"Which page of results this is"New value: +"Which page of results this is; present only for mode=list"
    • addedOutput schema / properties / documents / description
      Added value: +"The matching documents on this page; present only for mode=list"
    • addedOutput schema / properties / fields
      Added value: +{
      +  "description": "The fields an expression can use; present only for mode=describe_fields",
      +  "items": {
      +    "properties": {
      +      "collection_fields": {
      +        "description": "Fields usable inside exists(...) and all(...) for an object collection; empty otherwise",
      +        "items": {
      +          "properties": {
      +            "name": {
      +              "type": "string"
      +            },
      +            "operators": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "type": {
      +              "type": "string"
      +            },
      +            "values": {
      +              "description": "Allowed values for enum, select, multi-select and role fields; empty otherwise",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "name": {
      +        "description": "The field as written in an expression",
      +        "type": "string"
      +      },
      +      "operators": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "type": {
      +        "type": "string"
      +      },
      +      "values": {
      +        "description": "Allowed values for enum, select, multi-select and role fields; empty otherwise",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / in_app_url / description
      Previous value: -"A URL that opens the fynk app's documents list with the same filters, sorting and pagination applied. Give this to the user when they may want to view or work with this filtered document list in the fynk app"New value: +"A URL that opens the fynk app's documents list with the same filter, search, sorting and pagination applied; present only for mode=list. Give this to the user when they may want to view or work with this list of documents in the fynk app"
    • changedOutput schema / properties / max_page / description
      Previous value: -"How many pages of results are available"New value: +"How many pages of results are available; present only for mode=list"
    • changedOutput schema / properties / total / description
      Previous value: -"How many documents are available across all pages"New value: +"How many documents match across all pages; present only for mode=list"
  2. Changed1 schema field changed
    • addedInput schema / properties / filter_ai_analysed
      Added value: +{
      +  "description": "If true, finds documents whose AI analysis has been applied, i.e. whose metadata, parties and other details were filled in from an AI analysis. If false, finds documents without an applied AI analysis, including documents whose analysis is still running, awaiting review or failed. Documents created from an uploaded PDF or an import are usually analysed when they are created, whereas documents written in the editor or created from a template only have an analysis if a user started one, so most of those count as not analysed. Omit to apply no filtering by AI analysis",
      +  "type": "boolean"
      +}
  3. Changed2 schema fields changed
    • changedOutput schema / properties / documents / items / properties / metadata_values / items / properties / name / description
      Previous value: -"Internal name of the metadata field, as used by list-account-metadata, filter_metadata and sort_by"New value: +"Internal name of the metadata field, as used by list-account-metadata and to filter and sort list-documents"
    • changedOutput schema / properties / documents / items / properties / tags / description
      Previous value: -"The tags on the document. Tags are the account's own classification labels (e.g. relationship type, commercial significance, region), so they show which categories this account uses and can be filtered on with filter_tags. Only present when the 'tags' section is requested via the include parameter."New value: +"The tags on the document. Tags are the account's own classification labels (e.g. relationship type, commercial significance, region), so they show which categories this account uses and can be filtered on in list-documents. Only present when the 'tags' section is requested via the include parameter."
  4. Changed4 schema fields changed
    • changedInput schema / properties / filter_automations / description
      Previous value: -"A list of automation UUIDs (find them with find-automations). Matches documents created by any of the given automations"New value: +"A list of automation UUIDs (find them with search-automations). Matches documents created by any of the given automations"
    • changedInput schema / properties / filter_document_users / description
      Previous value: -"A list of document users (find them with find-document-users). Matches documents that any of the given people are on. Use this when looking for documents involving a specific named individual (such as a signatory or contact): that person is distinct from a party, and may sign or act on behalf of a party (e.g. a business) without being a party themselves. Provide first_name and last_name as returned by find-document-users"New value: +"A list of document users (find them with search-document-users). Matches documents that any of the given people are on. Use this when looking for documents involving a specific named individual (such as a signatory or contact): that person is distinct from a party, and may sign or act on behalf of a party (e.g. a business) without being a party themselves. Provide first_name and last_name as returned by search-document-users"
    • changedInput schema / properties / filter_external_parties / description
      Previous value: -"A list of external party names (the entity_name returned by find-external-parties). External parties are the counterparties on the other side of an agreement (entities that do NOT belong to the account), as opposed to account parties (filter_account_parties), which are the account's own entities (\"our\" company and its subsidiaries). Matches documents that involve any of the given external parties. A party is a contracting entity (often a business/organization) and is distinct from the individual people on a document — to find documents involving a specific named person, use filter_document_users instead"New value: +"A list of external party names (the entity_name returned by search-external-parties). External parties are the counterparties on the other side of an agreement (entities that do NOT belong to the account), as opposed to account parties (filter_account_parties), which are the account's own entities (\"our\" company and its subsidiaries). Matches documents that involve any of the given external parties. A party is a contracting entity (often a business/organization) and is distinct from the individual people on a document — to find documents involving a specific named person, use filter_document_users instead"
    • changedInput schema / properties / filter_imports / description
      Previous value: -"A list of import UUIDs (find them with find-imports). Matches documents that came from any of the given imports"New value: +"A list of import UUIDs (find them with search-imports). Matches documents that came from any of the given imports"
  5. Changed1 schema field changed
    • changedInput schema / properties / filter_joined / description
      Previous value: -"If true, finds documents the current user has joined, i.e. is a collaborator on. If false, finds documents the current user has not joined yet — including documents they are on only in another role, such as signatory, which join-document still makes them a collaborator on. Omit to apply no filtering by joined state. Use false before joining several documents with join-document, so documents already joined are not joined again. Joining a document removes it from a filter_joined=false result, which moves the remaining documents to earlier pages: after joining the documents of a page, request page 1 again rather than the next page, until total is 0. The in_app_url does not apply this filter"New value: +"If true, finds documents the current user has joined, i.e. is an owner or collaborator on. If false, finds documents the current user has not joined yet (including documents they are on only as signatory), which join-document still makes them a collaborator on. Omit to apply no filtering by joined state. Use false before joining several documents with join-document, so documents already joined are not joined again. Joining a document removes it from a filter_joined=false result, which moves the remaining documents to earlier pages: after joining the documents of a page, request page 1 again rather than the next page, until total is 0. The in_app_url does not apply this filter"
  6. Changed1 schema field changed
    • addedInput schema / properties / filter_joined
      Added value: +{
      +  "description": "If true, finds documents the current user has joined, i.e. is a collaborator on. If false, finds documents the current user has not joined yet — including documents they are on only in another role, such as signatory, which join-document still makes them a collaborator on. Omit to apply no filtering by joined state. Use false before joining several documents with join-document, so documents already joined are not joined again. Joining a document removes it from a filter_joined=false result, which moves the remaining documents to earlier pages: after joining the documents of a page, request page 1 again rather than the next page, until total is 0. The in_app_url does not apply this filter",
      +  "type": "boolean"
      +}
  7. First observed

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, and the description layers real operational detail on top: results are ordered by updated_at with archived documents included by default, no archive filter is applied automatically, total counts all matches while rows are page-limited, and response size scales with per_page × include_metadata fields. The archiving-is-not-deletion note and the "re-request page 1 after joining" recipe are exactly the kind of non-obvious behavior an agent cannot get from the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well front-loaded with purpose and when-to-use before the reference material, and sectioned with headers so an agent can skim. It is nonetheless very long for a tool description, and some material is duplicated — the archived-documents rule appears both in the opening paragraph and again in the "Active vs archived" section, and include_metadata guidance repeats the schema's own text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter tool with an expression language and an output schema, this leaves nothing essential unaddressed: mode dispatch, pagination completion (current_page < max_page), filtering grammar, sorting, section inclusion, and identity resolution between parties and people. Return-value shape is correctly delegated to the output schema while pagination fields are explained where they affect correctness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so the baseline would be 3, but the description adds substantial meaning beyond it: full FQL grammar, operator applicability, date/duration literal semantics, start_of/end_of offsets, the md.<name> vs md["<name>"] distinction, and the separation of `search` from `filter_expression`. It also flags the counterintuitive per_page default of 10 even for a UUID list.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ("Get a paginated list of the documents available to the current user") and immediately distinguishes the tool from get-document-info by prescribing include/include_metadata instead of per-document calls. The dual mode ("list" vs "describe_fields") is also spelled out, so an agent knows the tool can return schema metadata as well as data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

An explicit "Use this tool when" list covers the main intents: finding a document_uuid, counting via total, checking access, and bulk metadata retrieval. It names concrete alternatives and when to prefer them (list-account-tags, list-account-document-types, search-external-parties, search-document-users, get-document-info), and states the default/exclusion behavior for archived documents rather than leaving it to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources