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 templates

list-templates
Read-onlyIdempotent

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

Use this tool when:

  • You need to know which templates are available for creating documents from

  • You need to know which templates the user may edit in fynk. These will have a "url" field pointing to the edit page. No "url" means no permission to edit

  • You need to find templates matching some conditions, e.g. by name, tag, team, document type or metadata

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

Without filter_expression, every template 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 template is returned as a compact summary; use include to request additional sections (parties, teams, tags, details, signing_settings, timestamps), and prefer get-template-info for full information about a single template.

total counts all matching templates, but templates are returned only for the current page. Fetch the remaining pages while current_page < max_page when you need the complete set.

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 templates can be filtered on in this account, with its operators and allowed values. Metadata names and select options differ per account, so never guess them. Find uuids for tags, teams and document_type with list-account-tags, list-account-teams and list-account-document-types.

Accounts use their own tags, document types and metadata to classify templates. When a question groups templates into a category that is not represented by a document type, check list-account-tags before treating that category as text in the template name.

Split the request into its conditions and map each one to a structured field. "German customer NDA templates" has three conditions: language (locale starts with "de"), "customer" (likely a tag or metadata value) and "NDA" (look up the document type). Resolve every condition and combine them in the expression; use name contains for a condition that actually concerns the template name.

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; 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(). 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 fields have .amount and .currency components, plus .interval for recurring money, e.g. md.contract_value.amount and md.contract_value.currency. 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 templates: archived_at is null

  • Archived templates: archived_at is not null

  • Draft templates: published = false

  • Published templates: published = true

  • Name contains NDA: name contains "NDA"

  • German templates 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

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"

Combined conditions

  • Active, published templates with NDA in their name: archived_at is null and published = true and name contains "NDA"

  • Active German templates of a specific document type: archived_at is null and locale starts with "de" and document_type = "{document_type_uuid}"

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

  • A contract value of at least EUR 10,000: md.contract_value.amount >= 10000 and md.contract_value.currency = "EUR"

Active vs. archived, published vs. draft

The app user interface hides archived templates by default. Unless the user asks for archived templates, historical records, or explicitly includes archived templates 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 templates.

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

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

Drafts are included unless the expression excludes them; users who may only see published templates only ever get active, published ones. When picking a template to create a new document from, use archived_at is null and published = true: an archived template is one the account has retired from use.

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-templates"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes"list" returns matching templates. "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
includeNoOptional sections to include for each template, on top of the default compact summary. Allowed values: parties (the contracting entities the template defines, in compact form), teams (the teams the template is assigned to), tags (the account's own classification labels on the template), details (the template's description), signing_settings (signature type and sequential signing), timestamps (created_at, updated_at and archived_at - the last of these tells an archived template from an active one). Only request the sections you actually need; use get-template-info for full information about a single template.
sort_byNoSort results by this field. The default is: updated_at
per_pageNoHow many results to return on each page
sort_directionNoThe default is: desc
filter_expressionNoThe FQL filter expression, see the tool description. Omit it to list every template the user can access

Output Schema

NameRequiredDescriptionDefault
totalNoHow many templates 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
templatesNoThe matching templates on this page; present only for mode=list
in_app_urlNoA URL that opens the fynk app's templates list with the same filter, sorting and pagination applied; present only for mode=list, and absent for users who may not open that list. Give this to the user when they may want to view or work with this list of templates 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. Changed19 schema fields changed
    • removedInput schema / properties / filter_archived_state
      Removed value: -{
      -  "default": "active",
      -  "description": "Which templates to return, by archived state. \"active\" (the default) returns only active, non-archived templates; \"archived\" returns only archived templates; \"all\" returns both. Use \"all\" when the answer is meant to cover every template the account has; use \"archived\" only when the user asks specifically about archived templates. With \"all\" the response does not say which results are archived unless you also request include=[\"timestamps\"]: archived_at is set on an archived template and null on an active one. Requires permission to manage templates — other users may only request \"active\"",
      -  "enum": [
      -    "active",
      -    "archived",
      -    "all"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / filter_excluded_tags
      Removed value: -{
      -  "description": "A list of tag UUIDs. Templates with ANY of these tags will be excluded from the result",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedInput schema / properties / filter_expression
      Added value: +{
      +  "description": "The FQL filter expression, see the tool description. Omit it to list every template the user can access",
      +  "type": "string"
      +}
    • removedInput schema / properties / filter_locale
      Removed value: -{
      -  "description": "Locale code to filter by, e.g. \"de\" or \"de-AT\". Matches templates whose locale starts with the given value",
      -  "type": "string"
      -}
    • removedInput schema / properties / filter_query
      Removed value: -{
      -  "description": "Searches against the template's name",
      -  "maxLength": 255,
      -  "type": "string"
      -}
    • removedInput schema / properties / filter_status
      Removed value: -{
      -  "description": "Set to \"published\" to return only published templates, or \"draft\" to return only drafts",
      -  "enum": [
      -    "draft",
      -    "published"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / filter_tag_and
      Removed value: -{
      -  "description": "If true, changes filter_tags behavior to only match templates 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. The default behavior is to match templates that have ANY of the given tags",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / filter_team_unassigned
      Removed value: -{
      -  "description": "If true, finds templates that are not assigned to any team. May be combined with filter_teams to find templates 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. Matches templates that belong to any of the given teams",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedInput schema / properties / include / description
      Previous value: -"Optional sections to include for each template, on top of the default compact summary. Allowed values: parties (the contracting entities the template defines, in compact form), teams (the teams the template is assigned to), tags (the account's own classification labels on the template), details (the template's description), signing_settings (signature type and sequential signing), timestamps (created_at, updated_at and archived_at — the last of these tells an archived template from an active one). Only request the sections you actually need; use get-template-info for full information about a single template."New value: +"Optional sections to include for each template, on top of the default compact summary. Allowed values: parties (the contracting entities the template defines, in compact form), teams (the teams the template is assigned to), tags (the account's own classification labels on the template), details (the template's description), signing_settings (signature type and sequential signing), timestamps (created_at, updated_at and archived_at - the last of these tells an archived template from an active one). Only request the sections you actually need; use get-template-info for full information about a single template."
    • addedInput schema / properties / mode
      Added value: +{
      +  "description": "\"list\" returns matching templates. \"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"
      +}
    • 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 / 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 templates 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 template list in the fynk app"New value: +"A URL that opens the fynk app's templates list with the same filter, sorting and pagination applied; present only for mode=list, and absent for users who may not open that list. Give this to the user when they may want to view or work with this list of templates 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"
    • addedOutput schema / properties / templates / description
      Added value: +"The matching templates on this page; present only for mode=list"
    • changedOutput schema / properties / total / description
      Previous value: -"How many templates are available across all pages"New value: +"How many templates match across all pages; present only for mode=list"
  2. Changed1 schema field changed
    • changedOutput schema / properties / templates / items / properties / tags / description
      Previous value: -"The tags on the template. 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 template. 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-templates. Only present when the 'tags' section is requested via the include parameter."
  3. 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 this as a read-only, idempotent, non-destructive operation, but the description adds substantial behavioral context: no archive condition is applied automatically, archived templates are included unless filtered, totals count all matches while results are paginated, and edit permission is signaled by the presence or absence of a url field. It also warns that archiving is not deletion and that archived results should be identified with timestamps.

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?

The description is long but well organized into purpose, usage guidance, FQL syntax, examples, and archive rules, making it navigable. Some material is repeated, particularly around archived-template handling, so it is not maximally concise, but the length is largely justified by the complexity of the filter language.

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?

The tool has an output schema, so return values need not be explained in detail. Given the complex FQL filtering behavior, pagination, optional include sections, and archive semantics, the description provides everything an agent needs to call the tool correctly.

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%, but the description goes well beyond it by documenting the FQL expression language, operators, field syntax, metadata naming, date and duration semantics, and worked examples. It also clarifies the describe_fields mode and how include sections supplement the compact summary, which meaningfully improves correct parameter use.

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?

The first sentence states a specific verb and resource: a paginated list of templates available to the current user. It also distinguishes the tool from get-template-info for single-template detail and explains the describe_fields mode, so an agent can identify its role without opening the schema.

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?

The description gives explicit when-to-use criteria, including finding editable templates, matching conditions, and counting results. It names alternatives such as get-template-info, list-account-tags, list-account-teams, and list-account-document-types, and it explains the critical active-vs-archived and published-vs-draft defaults.

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