LeaderboardBack to leaderboard — loading return destination
Opening report…
Loading report overview
M
MCP server
server.example.com/mcp
Tools and resources for your MCP client, with a public quality report and detailed checks.
Protocol
MCP 2025-11-25
Server version
1.0.0
Website
server.example.com
Supports
Tools · Resources
Overall score
90 /100
How is this score calculated?
Server metadata
Loading server metadata
Reviewed90/100
Discoverability
Loading discoverability
Reviewed90/100
Protocol
Loading protocol
Reviewed90/100
Tools
Loading tools
Reviewed90/100
MCP Apps
Loading mcp apps
Reviewed90/100
Tool documentation quality
Loading tool documentation quality
Reviewed90/100
LeaderboardBack to leaderboard — loading return destination
Verified by the fynk team. This team proved they run the server, with an email on its domain or by deploying it on Manufact. It says who runs it, not that Manufact vouches for it.
F
fynk MCP Server
app.fynk.com/mcp
Draft, find, analyze, update and sign contracts in fynk from Claude, ChatGPT, Cursor or any AI tool.
Draft, find, update and sign contracts and other business documents in fynk.
## What lives in fynk
An account holds templates and documents, alongside the shared entities they draw on: saved parties,
tags, teams, document types, metadata definitions, playbooks and automations.
A template is a reusable blueprint; a document is one instance of an agreement, created from a
template or authored on its own, moving through the stages draft, approved_draft, review,
approved_review, signing and done.
Both hold their content in one of two forms. A template with prosemirror_data content has an editable
body, which get-template-html reads. A PDF template is a fixed file with no editable body, and that
tool refuses it. Documents work the same way, with one addition: a prosemirror_data document is
rendered to a fixed HTML snapshot once signing starts. Whichever form the content takes, a document's
parties, signatories, dynamic fields, metadata and tags remain editable.
Both are built from the same parts:
- Parties: the contracting entities, usually organisations. Their name and address are held on the party
record, and the content renders them from there rather than spelling them out.
- Signatories: the individual people who sign. A person usually signs on behalf of a party without
being one, so a question about who is involved has to consider both.
- Dynamic fields: the values that vary per document - dates, amounts, notice periods, deliverables.
- Signature blocks: the places in the body that get signed, bound to a party or to one signatory.
A document also has document users: everyone with access to it, each as owner, collaborator or viewer.
Signatories are always document users too.
## Creating a document and getting it signed
Call get-template-info first to discover a template's parties, signatories and dynamic fields, so that
create-document-from-template can pre-fill them in the same call.
Stage moves are gated. Read workflow_state.stage_transitions from get
Discoverability
2 pass · 2 partial2 passed · 2 partial50/100
Client listings and public setup information.
MCP Server Card
An MCP Server Card found through ai-catalog.json or the endpoint's /server-card that declares this endpoint passes. Earlier paths and mcp.json earn half credit.
Half credit: the card is only at a fallback path outside SEP-2127 discovery. For full credit, serve it at https://app.fynk.com/mcp/server-card or list it in /.well-known/ai-catalog.json. Found at https://fynk.com/mcp.json.
token_endpoint_auth_methods_supported does not include none, so public clients without a secret are not advertised
How to fix: With dynamic client registration Grok Build registers as a public client with no client secret. Advertise registration_endpoint and the none token endpoint auth method. Otherwise each user sets a static CLIENT_ID in mcp.json, and your OAuth app must allow both redirect URLs: https://www.cursor.com/agents/mcp/oauth/callback and http://localhost:8787/callback.
1 input constraint(s) are accepted but not guaranteed by Grok
How to fix: Grok generates arguments that strictly follow the input schema, except for these keywords, which it accepts without guaranteeing them. Validate them in the tool and return a clear error, or express the rule with enforced keywords such as enum, pattern, minimum and maximum.
The title clearly communicates the tool’s action and subject. Keep it concise.
Description97/100
Archives a document, hiding it from the account's default document lists.
Use this tool when:
- A document is no longer actively worked with and should be moved out of the way
- The user asks to archive, hide, or clean up a document
Archiving does not delete anything: the document keeps all its data and can be restored later with the restore-document tool. The document must not already be archived.
The description explains the capability, when to use it, and what to expect.
Inputs97/100
Input documentation gives an agent enough context to populate the arguments.
document_uuid
UUID of the document to archive. If you don't already have the document's UUID, use the list-documents tool to find it.
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
}
}
Original tool metadata
{
"name": "archive-document",
"title": "Archive document",
"description": "Archives a document, hiding it from the account's default document lists.\n\nUse this tool when:\n\n- A document is no longer actively worked with and should be moved out of the way\n- The user asks to archive, hide, or clean up a document\n\nArchiving does not delete anything: the document keeps all its data and can be restored later with the restore-document tool. The document must not already be archived.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"document_uuid": {
"type": "string",
"description": "UUID of the document to archive. If you don't already have the document's UUID, use the list-documents tool to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
}
},
"annotations": {
"title": "Archive document",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description95/100
Add one or more account users as members of a team.
Use this tool when:
- The user asks to add people to a team
Membership can give people access to the documents, templates, imports and automations assigned to the team, subject to their own permissions, so confirm who is being added when the user's request leaves room for doubt.
Existing members of the team are preserved. Use detach-account-users-from-team to remove members. Pass `account_user_uuids` from list-account-users, list-account-team-members (when copying members between teams), or the account-user uuids the user references.
The description explains the capability, when to use it, and what to expect.
Inputs87/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
team_uuid
UUID of the team to add members to
Clear enough to supply this argument.
account_user_uuids
UUIDs of the account users to add as members of the team
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"icon": {
"type": "string",
"description": "Icon identifier for the team (e.g. \"UserGroupIcon\")"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
Original tool metadata
{
"name": "attach-account-users-to-team",
"title": "Attach account users to team",
"description": "Add one or more account users as members of a team.\n\nUse this tool when:\n\n- The user asks to add people to a team\n\nMembership can give people access to the documents, templates, imports and automations assigned to the team, subject to their own permissions, so confirm who is being added when the user's request leaves room for doubt.\n\nExisting members of the team are preserved. Use detach-account-users-from-team to remove members. Pass `account_user_uuids` from list-account-users, list-account-team-members (when copying members between teams), or the account-user uuids the user references.",
"inputSchema": {
"type": "object",
"required": [
"team_uuid",
"account_user_uuids"
],
"properties": {
"team_uuid": {
"type": "string",
"description": "UUID of the team to add members to"
},
"account_user_uuids": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of the account users to add as members of the team"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"icon": {
"type": "string",
"description": "Icon identifier for the team (e.g. \"UserGroupIcon\")"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"annotations": {
"title": "Attach account users to team",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description89/100
Create a new custom document type for the account.
Use this tool when:
- The user asks for a new kind of document to be distinguished, e.g. "add a Framework Agreement document type"
- A document or template needs a document type that the account does not have yet
Call list-account-document-types first: fynk already provides system document types such as "Non-Disclosure
Agreement", "Rental Agreement" or "Service Agreement" to every account, and a custom type that duplicates one of
them splits the account's documents across two types. Create a new type only when none of the existing ones fits.
Write `name` in Title Case, the way fynk's own types are named ("Data Processing Agreement", "Letter of Intent"),
rather than copying the user's phrasing verbatim - a request for "a type for supplier framework contracts" should
produce "Supplier Framework Agreement".
`description` and `prompt` are how a new type is normally set up, so propose both from what the type is for rather
than leaving them out:
- `description` tells users what the type covers, in one sentence. fynk's "Rental Agreement" reads: "A contract
between a landlord and tenant defining the terms under which property is rented, including duration, payment
terms, and usage conditions."
- `prompt` is what fynk's AI analyses read when deciding whether a document is of this type - without one, they
rarely pick the type. Phrase it as a selection criterion, the way fynk's own types do. "Rental Agreement" reads:
"Select this type if the document defines the terms under which a tenant rents property from a landlord,
including rent amount, duration, deposit, and usage conditions."
`relevant_metadata_uuids` decides which metadata fields fynk's AI analyses look for in documents of this type,
besides the fields already relevant for every document type, which apply to the new type automatically. Call
list-account-metadata to find the candidates, and propose the fields that type's documents would carry, e.g. a
"Net Rent" field for a lease type. The fields chosen here are made relevant for the new type alongside the types they already have, and
list-account-metadata reports the result: each field there names the document types it is relevant for.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
name
Name of the document type, unique among the account's custom document types, in Title Case (max 255 characters), e.g. "Supplier Framework Agreement"
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
description
One sentence describing what the document type covers, shown to users (max 1024 characters)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
prompt
Selection criterion the AI analyses use to decide whether a document is of this type (max 1024 characters), phrased like "Select this type if the document ..."
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
relevant_metadata_uuids
Uuids from list-account-metadata of the fields to make relevant for this document type, on top of the fields already relevant for every document type. Only the account's own fields and system_reference fields are accepted
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document type"
},
"uuid": {
"type": "string",
"description": "Identifier for the document type. Do not show to the user unless they ask for it"
},
"prompt": {
"type": "string",
"description": "The selection criterion fynk's AI analyses use to decide whether a document is of this type. Absent when it has none, in which case the analyses rarely pick the type."
},
"customised": {
"type": "boolean",
"description": "Present, and true, only for a system document type that this account has customised. The customisation can be dropped again with update-account-document-type and `reset_to_fynk_default`"
},
"description": {
"type": "string",
"description": "What the document type covers, as shown to users configuring it. Absent when it has none."
},
"_entity_type": {
"enum": [
"document_type"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"provided_by_fynk": {
"type": "boolean",
"description": "Present, and true, only for one of fynk's built-in system document types. The account can customise or deactivate such a type but never delete it. Absent for a type the account created itself"
}
}
}
Original tool metadata
{
"name": "create-account-document-type",
"title": "Create account document type",
"description": "Create a new custom document type for the account.\n\nUse this tool when:\n\n- The user asks for a new kind of document to be distinguished, e.g. \"add a Framework Agreement document type\"\n- A document or template needs a document type that the account does not have yet\n\nCall list-account-document-types first: fynk already provides system document types such as \"Non-Disclosure\nAgreement\", \"Rental Agreement\" or \"Service Agreement\" to every account, and a custom type that duplicates one of\nthem splits the account's documents across two types. Create a new type only when none of the existing ones fits.\n\nWrite `name` in Title Case, the way fynk's own types are named (\"Data Processing Agreement\", \"Letter of Intent\"),\nrather than copying the user's phrasing verbatim - a request for \"a type for supplier framework contracts\" should\nproduce \"Supplier Framework Agreement\".\n\n`description` and `prompt` are how a new type is normally set up, so propose both from what the type is for rather\nthan leaving them out:\n\n- `description` tells users what the type covers, in one sentence. fynk's \"Rental Agreement\" reads: \"A contract\n between a landlord and tenant defining the terms under which property is rented, including duration, payment\n terms, and usage conditions.\"\n- `prompt` is what fynk's AI analyses read when deciding whether a document is of this type - without one, they\n rarely pick the type. Phrase it as a selection criterion, the way fynk's own types do. \"Rental Agreement\" reads:\n \"Select this type if the document defines the terms under which a tenant rents property from a landlord,\n including rent amount, duration, deposit, and usage conditions.\"\n\n`relevant_metadata_uuids` decides which metadata fields fynk's AI analyses look for in documents of this type,\nbesides the fields already relevant for every document type, which apply to the new type automatically. Call\nlist-account-metadata to find the candidates, and propose the fields that type's documents would carry, e.g. a\n\"Net Rent\" field for a lease type. The fields chosen here are made relevant for the new type alongside the types they already have, and\nlist-account-metadata reports the result: each field there names the document types it is relevant for.",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the document type, unique among the account's custom document types, in Title Case (max 255 characters), e.g. \"Supplier Framework Agreement\""
},
"prompt": {
"type": [
"string",
"null"
],
"description": "Selection criterion the AI analyses use to decide whether a document is of this type (max 1024 characters), phrased like \"Select this type if the document ...\""
},
"description": {
"type": [
"string",
"null"
],
"description": "One sentence describing what the document type covers, shown to users (max 1024 characters)"
},
"relevant_metadata_uuids": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Uuids from list-account-metadata of the fields to make relevant for this document type, on top of the fields already relevant for every document type. Only the account's own fields and system_reference fields are accepted"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document type"
},
"uuid": {
"type": "string",
"description": "Identifier for the document type. Do not show to the user unless they ask for it"
},
"prompt": {
"type": "string",
"description": "The selection criterion fynk's AI analyses use to decide whether a document is of this type. Absent when it has none, in which case the analyses rarely pick the type."
},
"customised": {
"type": "boolean",
"description": "Present, and true, only for a system document type that this account has customised. The customisation can be dropped again with update-account-document-type and `reset_to_fynk_default`"
},
"description": {
"type": "string",
"description": "What the document type covers, as shown to users configuring it. Absent when it has none."
},
"_entity_type": {
"enum": [
"document_type"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"provided_by_fynk": {
"type": "boolean",
"description": "Present, and true, only for one of fynk's built-in system document types. The account can customise or deactivate such a type but never delete it. Absent for a type the account created itself"
}
}
},
"annotations": {
"title": "Create account document type",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description86/100
Create a new account-level metadata field definition.
Use this tool when:
- The user asks for a new metadata field to track some piece of information on their documents
- You need a metadata field to exist before writing values to it with update-document-metadata-values
Call list-account-metadata first: the account may already have a field for what the user wants, and fynk provides a
range of system metadata fields that cannot be re-created under the same name.
`name` is the programmatic identifier (lowercase letters, digits and underscores only) and `display_name` is what
the user sees. Write `display_name` in Title Case, the way fynk's own fields are named ("Signing Date", "Contract
Value"), rather than copying the user's phrasing verbatim - a request for "a product colour metadata" should still
produce `product_colour` / "Product Colour".
`select` and `multi_select` fields require `select_values` (the allowed options); no other field type accepts them.
These strings are literally what the user picks from in the UI, so write them as presentable labels, capitalised
like `display_name`: "Red", "Green", "Blue", not the "red, green or blue" lifted out of the request.
`name` and `value_type` are fixed at creation and cannot be changed afterwards, and it is worth getting the rest
right first time rather than leaving a correction to make later. So confirm any detail the user has not spelled out
instead of guessing at it - in particular the exact `select_values` strings, since a request like "a colour field
with red, green or blue" names the options without settling how they should read.
`prompt` and `keywords` decide whether fynk's AI analyses fill this field in - a `prompt` puts the field into them,
`keywords` only assist it and do nothing on their own. This is how a new field is normally set up: fynk's own
creation form turns AI analysis on by default and requires both. So propose a `prompt` and `keywords` drawn from
what the field is for rather than silently leaving them out, and omit both only for a field the user wants to fill
in by hand. Set a `description` as well - it is what tells a user configuring the field what it holds.
The description explains the capability, when to use it, and what to expect.
Inputs81/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
value_type
Controls the kinds of values the field accepts (e.g. "text", "number", "currency", "date", "select"). Cannot be changed after creation
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
name
Programmatic name of the field, unique within the account (lowercase letters, digits and underscores only, max 255 characters), e.g. "discount_rate". Cannot be changed after creation
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
display_name
Human-readable name shown in the UI, in Title Case (max 255 characters), e.g. "Discount Rate"
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
select_values
Required for the "select" and "multi_select" value types, and rejected for every other type: the options a user picks from, written as presentable labels, e.g. ["Red", "Green", "Blue"]
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
description
What the field holds, shown to users configuring it (max 1024 characters)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
prompt
What the AI analyses should extract for this field, and what puts the field into them (max 1024 characters). Define what the value is, then qualify it the way fynk's own fields do - what counts, what does not, and what to do when the document is not explicit - over several sentences where that helps. The "Net Rent" field reads: "The net rent for the property, which is the rent excluding any taxes or costs e.g. VAT. It must be explicitly stated in the contract as net rent per month. Derive the currency unit from the parties to the contract if it is not explicitly stated." A single vague line extracts poorly
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
keywords
Comma-separated keywords that help the AI analyses locate the field in a document (max 1024 characters). List the terms as they would appear in a contract, including synonyms and the equivalents in other languages the account's documents are written in - the "Net Rent" field carries "net rent, netto miete, netto kaltmiete, kaltmiete, nettomiete pro monat". Send these alongside a `prompt`; they have no effect without one
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
is_contract_value
Whether the field counts towards a document's calculated contract value. Only allowed when value_type is "currency" or "currency_duration". Defaults to false
Clear enough to supply this argument.
relevant_document_type_uuids
The document types the field is meaningful for, as uuids from list-account-document-types. Omit to make the field relevant for every document type, which is the usual choice; send an empty list or null to make it relevant for none
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"type": {
"enum": [
"system_autofilled",
"system_computed",
"system",
"system_reference",
"account"
],
"type": "string",
"description": "The type of the metadata field, which defines where its value comes from.\n\naccount: Custom metadata fields that are specific to your account\nsystem_reference: Pre-defined useful metadata fields provided by fynk\nsystem_autofilled: Fields that are automatically filled by the system in response to events, like \"Signing completion date\"\nsystem_computed: Fields that are calculated by the system based on other metadata values. e.g. \"Signing duration\" is the difference between \"Signing date\" and \"Signed date\"\nsystem: Other system-provided metadata fields"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"settings": {
"type": "object",
"properties": {
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "The only currency codes this field's values may use, e.g. [\"EUR\", \"USD\"]"
}
},
"description": "Extra configuration for the field. Not present means there is nothing to restrict"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the kinds of values that can be assigned to the metadata"
},
"_entity_type": {
"enum": [
"metadata"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When value_type is \"select\" or \"multi_select\", defines the allowed values. For these types of metadata, ONLY these values are possible. Absent for every other value type"
},
"is_contract_value": {
"type": "boolean",
"description": "Whether this field counts towards a document's calculated contract value. Only meaningful when value_type is \"currency\" or \"currency_duration\""
},
"overridden_fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only for a \"system_reference\" field the account has configured differently to how fynk provides it, and absent otherwise: the update-account-metadata arguments it has changed, e.g. [\"display_name\", \"select_values\"]. Send reset_to_fynk_default to that tool to put all of them back"
},
"relevant_document_types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Names of the document types this field is meaningful for. Empty together with relevant_for_all_document_types false means the field is not in use for any document type, so charting it will likely produce no data"
},
"relevant_for_all_document_types": {
"type": "boolean",
"description": "When true, the field is meaningful for every document type and relevant_document_types is empty"
}
}
}
Original tool metadata
{
"name": "create-account-metadata",
"title": "Create account metadata",
"description": "Create a new account-level metadata field definition.\n\nUse this tool when:\n\n- The user asks for a new metadata field to track some piece of information on their documents\n- You need a metadata field to exist before writing values to it with update-document-metadata-values\n\nCall list-account-metadata first: the account may already have a field for what the user wants, and fynk provides a\nrange of system metadata fields that cannot be re-created under the same name.\n\n`name` is the programmatic identifier (lowercase letters, digits and underscores only) and `display_name` is what\nthe user sees. Write `display_name` in Title Case, the way fynk's own fields are named (\"Signing Date\", \"Contract\nValue\"), rather than copying the user's phrasing verbatim - a request for \"a product colour metadata\" should still\nproduce `product_colour` / \"Product Colour\".\n\n`select` and `multi_select` fields require `select_values` (the allowed options); no other field type accepts them.\nThese strings are literally what the user picks from in the UI, so write them as presentable labels, capitalised\nlike `display_name`: \"Red\", \"Green\", \"Blue\", not the \"red, green or blue\" lifted out of the request.\n\n`name` and `value_type` are fixed at creation and cannot be changed afterwards, and it is worth getting the rest\nright first time rather than leaving a correction to make later. So confirm any detail the user has not spelled out\ninstead of guessing at it - in particular the exact `select_values` strings, since a request like \"a colour field\nwith red, green or blue\" names the options without settling how they should read.\n\n`prompt` and `keywords` decide whether fynk's AI analyses fill this field in - a `prompt` puts the field into them,\n`keywords` only assist it and do nothing on their own. This is how a new field is normally set up: fynk's own\ncreation form turns AI analysis on by default and requires both. So propose a `prompt` and `keywords` drawn from\nwhat the field is for rather than silently leaving them out, and omit both only for a field the user wants to fill\nin by hand. Set a `description` as well - it is what tells a user configuring the field what it holds.",
"inputSchema": {
"type": "object",
"required": [
"value_type",
"name",
"display_name"
],
"properties": {
"name": {
"type": "string",
"description": "Programmatic name of the field, unique within the account (lowercase letters, digits and underscores only, max 255 characters), e.g. \"discount_rate\". Cannot be changed after creation"
},
"prompt": {
"type": [
"string",
"null"
],
"description": "What the AI analyses should extract for this field, and what puts the field into them (max 1024 characters). Define what the value is, then qualify it the way fynk's own fields do - what counts, what does not, and what to do when the document is not explicit - over several sentences where that helps. The \"Net Rent\" field reads: \"The net rent for the property, which is the rent excluding any taxes or costs e.g. VAT. It must be explicitly stated in the contract as net rent per month. Derive the currency unit from the parties to the contract if it is not explicitly stated.\" A single vague line extracts poorly"
},
"keywords": {
"type": [
"string",
"null"
],
"description": "Comma-separated keywords that help the AI analyses locate the field in a document (max 1024 characters). List the terms as they would appear in a contract, including synonyms and the equivalents in other languages the account's documents are written in - the \"Net Rent\" field carries \"net rent, netto miete, netto kaltmiete, kaltmiete, nettomiete pro monat\". Send these alongside a `prompt`; they have no effect without one"
},
"value_type": {
"enum": [
"bool",
"date",
"duration",
"email",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp"
],
"type": "string",
"description": "Controls the kinds of values the field accepts (e.g. \"text\", \"number\", \"currency\", \"date\", \"select\"). Cannot be changed after creation"
},
"description": {
"type": [
"string",
"null"
],
"description": "What the field holds, shown to users configuring it (max 1024 characters)"
},
"display_name": {
"type": "string",
"description": "Human-readable name shown in the UI, in Title Case (max 255 characters), e.g. \"Discount Rate\""
},
"select_values": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Required for the \"select\" and \"multi_select\" value types, and rejected for every other type: the options a user picks from, written as presentable labels, e.g. [\"Red\", \"Green\", \"Blue\"]"
},
"is_contract_value": {
"type": "boolean",
"description": "Whether the field counts towards a document's calculated contract value. Only allowed when value_type is \"currency\" or \"currency_duration\". Defaults to false"
},
"relevant_document_type_uuids": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "The document types the field is meaningful for, as uuids from list-account-document-types. Omit to make the field relevant for every document type, which is the usual choice; send an empty list or null to make it relevant for none"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"type": {
"enum": [
"system_autofilled",
"system_computed",
"system",
"system_reference",
"account"
],
"type": "string",
"description": "The type of the metadata field, which defines where its value comes from.\n\naccount: Custom metadata fields that are specific to your account\nsystem_reference: Pre-defined useful metadata fields provided by fynk\nsystem_autofilled: Fields that are automatically filled by the system in response to events, like \"Signing completion date\"\nsystem_computed: Fields that are calculated by the system based on other metadata values. e.g. \"Signing duration\" is the difference between \"Signing date\" and \"Signed date\"\nsystem: Other system-provided metadata fields"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"settings": {
"type": "object",
"properties": {
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "The only currency codes this field's values may use, e.g. [\"EUR\", \"USD\"]"
}
},
"description": "Extra configuration for the field. Not present means there is nothing to restrict"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the kinds of values that can be assigned to the metadata"
},
"_entity_type": {
"enum": [
"metadata"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When value_type is \"select\" or \"multi_select\", defines the allowed values. For these types of metadata, ONLY these values are possible. Absent for every other value type"
},
"is_contract_value": {
"type": "boolean",
"description": "Whether this field counts towards a document's calculated contract value. Only meaningful when value_type is \"currency\" or \"currency_duration\""
},
"overridden_fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only for a \"system_reference\" field the account has configured differently to how fynk provides it, and absent otherwise: the update-account-metadata arguments it has changed, e.g. [\"display_name\", \"select_values\"]. Send reset_to_fynk_default to that tool to put all of them back"
},
"relevant_document_types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Names of the document types this field is meaningful for. Empty together with relevant_for_all_document_types false means the field is not in use for any document type, so charting it will likely produce no data"
},
"relevant_for_all_document_types": {
"type": "boolean",
"description": "When true, the field is meaningful for every document type and relevant_document_types is empty"
}
}
},
"annotations": {
"title": "Create account metadata",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description90/100
Create one or more account parties saved in your account.
Use this tool when:
- The user asks to add their company, a subsidiary, a group company or a parent company as parties of the account
- A document or template needs an account party (account_party_uuid) that list-account-parties does not return yet
Account parties are the account's own entities — the user's company, subsidiaries, group companies or parent company. They are the internal side of an agreement and are reusable across multiple documents and templates. Never use this tool for counterparties. Add external parties to the relevant document or template with create-document-party or create-template-party.
Create up to 20 parties per call. Before calling this tool, call list-account-parties to check which parties already exist. Only include parties that are missing; do not create duplicates of existing account parties.
The parties are created together or not at all. Accounts whose plan does not include multiple account parties may only hold one; a call that would take such an account past one party is refused with a permission error and creates nothing.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
parties › items › entity_name
Legal name of the entity, e.g. "Acme GmbH"
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
parties › items › address
The entity's full postal address, e.g. "Hauptstraße 1,\n1010 Vienna,\nAustria"
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address"
},
"entity_name": {
"type": "string",
"description": "The name of the party"
},
"_entity_type": {
"enum": [
"account_party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The created parties, in the order they were sent"
}
}
}
Original tool metadata
{
"name": "create-account-parties",
"title": "Create account parties",
"description": "Create one or more account parties saved in your account.\n\nUse this tool when:\n\n- The user asks to add their company, a subsidiary, a group company or a parent company as parties of the account\n- A document or template needs an account party (account_party_uuid) that list-account-parties does not return yet\n\nAccount parties are the account's own entities — the user's company, subsidiaries, group companies or parent company. They are the internal side of an agreement and are reusable across multiple documents and templates. Never use this tool for counterparties. Add external parties to the relevant document or template with create-document-party or create-template-party.\n\nCreate up to 20 parties per call. Before calling this tool, call list-account-parties to check which parties already exist. Only include parties that are missing; do not create duplicates of existing account parties.\n\nThe parties are created together or not at all. Accounts whose plan does not include multiple account parties may only hold one; a call that would take such an account past one party is refused with a permission error and creates nothing.",
"inputSchema": {
"type": "object",
"required": [
"parties"
],
"properties": {
"parties": {
"type": "array",
"items": {
"type": "object",
"required": [
"entity_name",
"address"
],
"properties": {
"address": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "The entity's full postal address, e.g. \"Hauptstraße 1,\\n1010 Vienna,\\nAustria\""
},
"entity_name": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "Legal name of the entity, e.g. \"Acme GmbH\""
}
}
},
"description": "The parties to create (1 to 20)"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address"
},
"entity_name": {
"type": "string",
"description": "The name of the party"
},
"_entity_type": {
"enum": [
"account_party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The created parties, in the order they were sent"
}
}
},
"annotations": {
"title": "Create account parties",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description81/100
Create a new tag in the current account.
Use this tool when:
- The user asks to create a new tag
- You need a new tag to be available before attaching it to documents or templates
`name` (max 40 chars) and `color` (hex like "#FF0000") are required.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
name
Display name for the new tag (max 40 characters)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
color
Hex color code for the tag (e.g. "#FF0000")
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Identifier for the tag. Do not show to the user unless they ask for it"
},
"color": {
"type": "string",
"description": "Hex color code for the tag (e.g. \"#FF0000\")"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
Original tool metadata
{
"name": "create-account-tag",
"title": "Create account tag",
"description": "Create a new tag in the current account.\n\nUse this tool when:\n\n- The user asks to create a new tag\n- You need a new tag to be available before attaching it to documents or templates\n\n`name` (max 40 chars) and `color` (hex like \"#FF0000\") are required.",
"inputSchema": {
"type": "object",
"required": [
"name",
"color"
],
"properties": {
"name": {
"type": "string",
"description": "Display name for the new tag (max 40 characters)"
},
"color": {
"type": "string",
"description": "Hex color code for the tag (e.g. \"#FF0000\")"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Identifier for the tag. Do not show to the user unless they ask for it"
},
"color": {
"type": "string",
"description": "Hex color code for the tag (e.g. \"#FF0000\")"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"annotations": {
"title": "Create account tag",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description90/100
Create a new team in the current account.
Use this tool when:
- The user asks to create a new team
- You need a new team to be available before attaching it to documents or templates
The tool requires `name`. Do not ask the user about an icon — the team will use the default icon. Optionally pass `account_user_uuids` to add initial members. After creation, don't expose the UUID to the user.
The description explains the capability, when to use it, and what to expect.
Inputs83/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
name
Display name for the new team
Clear enough to supply this argument.
account_user_uuids
Optional list of account user UUIDs to add as initial members of the team
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"icon": {
"type": "string",
"description": "Icon identifier for the team (e.g. \"UserGroupIcon\")"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
Original tool metadata
{
"name": "create-account-team",
"title": "Create account team",
"description": "Create a new team in the current account.\n\nUse this tool when:\n\n- The user asks to create a new team\n- You need a new team to be available before attaching it to documents or templates\n\nThe tool requires `name`. Do not ask the user about an icon — the team will use the default icon. Optionally pass `account_user_uuids` to add initial members. After creation, don't expose the UUID to the user.",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Display name for the new team"
},
"account_user_uuids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional list of account user UUIDs to add as initial members of the team"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"icon": {
"type": "string",
"description": "Icon identifier for the team (e.g. \"UserGroupIcon\")"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"annotations": {
"title": "Create account team",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description95/100
Create a new document from a PDF previously uploaded via create-document-pdf-upload-url.
Use this tool when:
- The user wants to import an existing PDF into fynk as a draft document for further processing, OR
- The user wants to record an already-signed PDF in fynk by setting `initial_stage` to "done"
Call create-document-pdf-upload-url first to obtain `file_upload_uuid`, then upload the PDF to the URL it returns with a multipart/form-data POST, as that tool describes, and call this tool only once that upload has succeeded. Each `file_upload_uuid` is single-use: it is consumed by a successful call, or by a call refused because the file is not a valid PDF or exceeds the page limit. To create another document (or upload a replacement file), call create-document-pdf-upload-url again. If a call is refused over any other argument, the upload remains intact—fix the argument and retry with the same `file_upload_uuid`. `initial_stage` is required and must be either "draft" or "done"; ask the user which they want if it isn't clear from context. Depending on the account's settings, `template_uuid` may be required (it copies checkpoints, document type, metadata, parties, etc. from a template).
Only pass `auto_apply_ai_analysis` when the user has expressed whether AI analysis results should be applied to the document automatically; omit it to use the account's default setting. The AI analysis runs in the background after this tool returns; read its state from the ai_analysis section of get-document-info before relying on the parties, metadata or summary it fills in.
The `template_uuid`, `team_uuids`, `tag_uuids`, and `account_party_uuid` arguments expect UUIDs, which can be discovered via list-templates, list-account-teams, list-account-tags, and list-account-parties respectively.
The description explains the capability, when to use it, and what to expect.
Inputs94/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
file_upload_uuid
The `file_upload_uuid` returned by create-document-pdf-upload-url
Clear enough to supply this argument.
file_name
The name of the file being uploaded
Clear enough to supply this argument.
initial_stage
The new document will be created in this stage. Prompt the user for this if they don't supply it
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_name
The name of the new document. If omitted, the file_name will be used. Ask the user if they would like to give their own name for the document
Clear enough to supply this argument.
template_uuid
UUID of the template to copy Checkpoints, document type, metadata, parties, etc from. If present, must be one of the template UUIDs returned by list-templates. May be required depending on the account's settings.
Clear enough to supply this argument.
account_party_uuid
Optional UUID of the account party to add to the document as the internal party. UUID can be obtained from list-account-parties
Clear enough to supply this argument.
team_uuids
UUIDs of the teams to assign the document to. May be required depending on the account's settings. UUIDs can be obtained from list-account-teams
Clear enough to supply this argument.
tag_uuids
UUIDs of the tags to apply to the document. UUIDs can be obtained from list-account-tags
Clear enough to supply this argument.
auto_apply_ai_analysis
If true, results of the AI analysis of the document (metadata, parties, etc.) are applied to the document automatically instead of being left for manual review. If not sent, the account's auto_apply_ai_analysis_by_default setting from get-account-info is used.
Clear enough to supply this argument.
Annotations100/100
All four behavior hints are declared.
{
"title": "Create document from PDF upload",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
Output schema93/100
The output schema explains the structured result.
View output schema
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities on the document."
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The document's conditions: rules over its dynamic fields deciding whether a passage of the document applies, and whether each currently holds. Use them to explain why a clause is or is not part of the document, and what would have to change to flip it."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated."
},
"ai_analysis": {
"type": "object",
"properties": {
"status": {
"enum": [
"created",
"pending",
"executing",
"review",
"reviewed",
"applied",
"failed",
"failed_encrypted",
"failed_too_many_pages",
"expired",
"unprocessable",
"document_deleted"
],
"type": "string",
"description": "Where the analysis stands. created, pending, executing: still in progress. review: finished, but the proposed changes wait for a user to review and apply them in the app (with auto_apply true, the automatic apply could not run, e.g. because the document is locked). reviewed: reviewed by a user, not yet applied. applied: the results are on the document. failed, failed_encrypted (password-protected PDF), failed_too_many_pages, unprocessable, expired, document_deleted: no results. This is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'the analysis failed because the PDF is password protected' instead of mentioning 'failed_encrypted')."
},
"failed_at": {
"type": "string",
"format": "date-time",
"description": "When the analysis failed. Absent when it has not failed, and also for some failures such as failed_encrypted and failed_too_many_pages, so read status to tell whether it failed."
},
"applied_at": {
"type": "string",
"format": "date-time",
"description": "When the results were applied to the document. Absent when they have not been applied."
},
"auto_apply": {
"type": "boolean",
"description": "When true, the results are applied to the document automatically once the analysis finishes. When false, a user has to review and apply them in the app."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the analysis was started."
},
"completed_at": {
"type": "string",
"format": "date-time",
"description": "When the analysis finished and its proposed changes became available. Absent while the analysis is in progress and when it produced no results. Read status, not this field, to tell whether the analysis succeeded."
}
},
"description": "The state of the document's latest AI analysis, which reads a PDF to fill in the document's parties, metadata, summary, etc. Creating a document from a PDF starts one, and it runs asynchronously. Absent when the document has never been analysed."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the document. Attachments are part of the document itself and visible to external parties."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign the document. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the document's internal file storage, as opposed to its attachments. It includes files uploaded in the document's comments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\"."
},
"summary_text": {
"type": "string",
"description": "A summary of the document content. Absent when the document has no summary."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"document_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
},
"description": "Everyone with access to the document, each with their access level (role). Signatories are document users too, and appear here with is_signatory true."
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The document's dynamic fields and their values."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen."
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The document's metadata fields and their values."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the document that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Every signatory needs a block covering them before signing can be started."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template."
},
"external_reviewer_invitation_message": {
"type": "string",
"description": "Text fynk adds to the invitation email to a document user without a fynk user in this account, when the invitation is sent without an invitation_message of its own. Absent when no text is set."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set."
}
}
}
Original tool metadata
{
"name": "create-document-from-pdf-upload",
"title": "Create document from PDF upload",
"description": "Create a new document from a PDF previously uploaded via create-document-pdf-upload-url.\n\nUse this tool when:\n\n- The user wants to import an existing PDF into fynk as a draft document for further processing, OR\n- The user wants to record an already-signed PDF in fynk by setting `initial_stage` to \"done\"\n\nCall create-document-pdf-upload-url first to obtain `file_upload_uuid`, then upload the PDF to the URL it returns with a multipart/form-data POST, as that tool describes, and call this tool only once that upload has succeeded. Each `file_upload_uuid` is single-use: it is consumed by a successful call, or by a call refused because the file is not a valid PDF or exceeds the page limit. To create another document (or upload a replacement file), call create-document-pdf-upload-url again. If a call is refused over any other argument, the upload remains intact—fix the argument and retry with the same `file_upload_uuid`. `initial_stage` is required and must be either \"draft\" or \"done\"; ask the user which they want if it isn't clear from context. Depending on the account's settings, `template_uuid` may be required (it copies checkpoints, document type, metadata, parties, etc. from a template).\n\nOnly pass `auto_apply_ai_analysis` when the user has expressed whether AI analysis results should be applied to the document automatically; omit it to use the account's default setting. The AI analysis runs in the background after this tool returns; read its state from the ai_analysis section of get-document-info before relying on the parties, metadata or summary it fills in.\n\nThe `template_uuid`, `team_uuids`, `tag_uuids`, and `account_party_uuid` arguments expect UUIDs, which can be discovered via list-templates, list-account-teams, list-account-tags, and list-account-parties respectively.",
"inputSchema": {
"type": "object",
"required": [
"file_upload_uuid",
"file_name",
"initial_stage"
],
"properties": {
"file_name": {
"type": "string",
"description": "The name of the file being uploaded"
},
"tag_uuids": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of the tags to apply to the document. UUIDs can be obtained from list-account-tags"
},
"team_uuids": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of the teams to assign the document to. May be required depending on the account's settings. UUIDs can be obtained from list-account-teams"
},
"document_name": {
"type": "string",
"description": "The name of the new document. If omitted, the file_name will be used. Ask the user if they would like to give their own name for the document"
},
"initial_stage": {
"enum": [
"draft",
"done"
],
"type": "string",
"description": "The new document will be created in this stage. Prompt the user for this if they don't supply it"
},
"template_uuid": {
"type": "string",
"description": "UUID of the template to copy Checkpoints, document type, metadata, parties, etc from. If present, must be one of the template UUIDs returned by list-templates. May be required depending on the account's settings."
},
"file_upload_uuid": {
"type": "string",
"description": "The `file_upload_uuid` returned by create-document-pdf-upload-url"
},
"account_party_uuid": {
"type": "string",
"description": "Optional UUID of the account party to add to the document as the internal party. UUID can be obtained from list-account-parties"
},
"auto_apply_ai_analysis": {
"type": "boolean",
"description": "If true, results of the AI analysis of the document (metadata, parties, etc.) are applied to the document automatically instead of being left for manual review. If not sent, the account's auto_apply_ai_analysis_by_default setting from get-account-info is used."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities on the document."
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The document's conditions: rules over its dynamic fields deciding whether a passage of the document applies, and whether each currently holds. Use them to explain why a clause is or is not part of the document, and what would have to change to flip it."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated."
},
"ai_analysis": {
"type": "object",
"properties": {
"status": {
"enum": [
"created",
"pending",
"executing",
"review",
"reviewed",
"applied",
"failed",
"failed_encrypted",
"failed_too_many_pages",
"expired",
"unprocessable",
"document_deleted"
],
"type": "string",
"description": "Where the analysis stands. created, pending, executing: still in progress. review: finished, but the proposed changes wait for a user to review and apply them in the app (with auto_apply true, the automatic apply could not run, e.g. because the document is locked). reviewed: reviewed by a user, not yet applied. applied: the results are on the document. failed, failed_encrypted (password-protected PDF), failed_too_many_pages, unprocessable, expired, document_deleted: no results. This is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'the analysis failed because the PDF is password protected' instead of mentioning 'failed_encrypted')."
},
"failed_at": {
"type": "string",
"format": "date-time",
"description": "When the analysis failed. Absent when it has not failed, and also for some failures such as failed_encrypted and failed_too_many_pages, so read status to tell whether it failed."
},
"applied_at": {
"type": "string",
"format": "date-time",
"description": "When the results were applied to the document. Absent when they have not been applied."
},
"auto_apply": {
"type": "boolean",
"description": "When true, the results are applied to the document automatically once the analysis finishes. When false, a user has to review and apply them in the app."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the analysis was started."
},
"completed_at": {
"type": "string",
"format": "date-time",
"description": "When the analysis finished and its proposed changes became available. Absent while the analysis is in progress and when it produced no results. Read status, not this field, to tell whether the analysis succeeded."
}
},
"description": "The state of the document's latest AI analysis, which reads a PDF to fill in the document's parties, metadata, summary, etc. Creating a document from a PDF starts one, and it runs asynchronously. Absent when the document has never been analysed."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the document. Attachments are part of the document itself and visible to external parties."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign the document. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the document's internal file storage, as opposed to its attachments. It includes files uploaded in the document's comments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\"."
},
"summary_text": {
"type": "string",
"description": "A summary of the document content. Absent when the document has no summary."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"document_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
},
"description": "Everyone with access to the document, each with their access level (role). Signatories are document users too, and appear here with is_signatory true."
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The document's dynamic fields and their values."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen."
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The document's metadata fields and their values."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the document that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Every signatory needs a block covering them before signing can be started."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template."
},
"external_reviewer_invitation_message": {
"type": "string",
"description": "Text fynk adds to the invitation email to a document user without a fynk user in this account, when the invitation is sent without an invitation_message of its own. Absent when no text is set."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set."
}
}
},
"annotations": {
"title": "Create document from PDF upload",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description95/100
Create a new, empty document from scratch (not based on a template), optionally assigning teams, tags, and an account party.
Use this tool when:
- The user wants to start a new blank document that is not based on a template
The document is created in the draft stage with no content. To create a document based on a template instead, use create-document-from-template.
The `team_uuids`, `tag_uuids`, and `account_party_uuid` arguments expect UUIDs, which can be discovered via list-account-teams, list-account-tags, and list-account-parties respectively.
The description explains the capability, when to use it, and what to expect.
Inputs88/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
name
The name of the new document
Clear enough to supply this argument.
account_party_uuid
Optional UUID of the account party to add to the document as the internal party. UUID can be obtained from list-account-parties
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
team_uuids
UUIDs of the teams to assign the document to. May be required if the account enforces team assignment. UUIDs can be obtained from list-account-teams
Clear enough to supply this argument.
tag_uuids
Optional UUIDs of the tags to apply to the document. UUIDs can be obtained from list-account-tags
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities on the document."
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The document's conditions: rules over its dynamic fields deciding whether a passage of the document applies, and whether each currently holds. Use them to explain why a clause is or is not part of the document, and what would have to change to flip it."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the document. Attachments are part of the document itself and visible to external parties."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign the document. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the document's internal file storage, as opposed to its attachments. It includes files uploaded in the document's comments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\"."
},
"summary_text": {
"type": "string",
"description": "A summary of the document content. Absent when the document has no summary."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"document_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
},
"description": "Everyone with access to the document, each with their access level (role). Signatories are document users too, and appear here with is_signatory true."
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The document's dynamic fields and their values."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen."
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The document's metadata fields and their values."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the document that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Every signatory needs a block covering them before signing can be started."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template."
},
"external_reviewer_invitation_message": {
"type": "string",
"description": "Text fynk adds to the invitation email to a document user without a fynk user in this account, when the invitation is sent without an invitation_message of its own. Absent when no text is set."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set."
}
}
}
Original tool metadata
{
"name": "create-document-from-scratch",
"title": "Create document from scratch",
"description": "Create a new, empty document from scratch (not based on a template), optionally assigning teams, tags, and an account party.\n\nUse this tool when:\n\n- The user wants to start a new blank document that is not based on a template\n\nThe document is created in the draft stage with no content. To create a document based on a template instead, use create-document-from-template.\n\nThe `team_uuids`, `tag_uuids`, and `account_party_uuid` arguments expect UUIDs, which can be discovered via list-account-teams, list-account-tags, and list-account-parties respectively.",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the new document"
},
"tag_uuids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional UUIDs of the tags to apply to the document. UUIDs can be obtained from list-account-tags"
},
"team_uuids": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of the teams to assign the document to. May be required if the account enforces team assignment. UUIDs can be obtained from list-account-teams"
},
"account_party_uuid": {
"type": "string",
"description": "Optional UUID of the account party to add to the document as the internal party. UUID can be obtained from list-account-parties"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities on the document."
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The document's conditions: rules over its dynamic fields deciding whether a passage of the document applies, and whether each currently holds. Use them to explain why a clause is or is not part of the document, and what would have to change to flip it."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the document. Attachments are part of the document itself and visible to external parties."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign the document. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the document's internal file storage, as opposed to its attachments. It includes files uploaded in the document's comments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\"."
},
"summary_text": {
"type": "string",
"description": "A summary of the document content. Absent when the document has no summary."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"document_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
},
"description": "Everyone with access to the document, each with their access level (role). Signatories are document users too, and appear here with is_signatory true."
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The document's dynamic fields and their values."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen."
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The document's metadata fields and their values."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the document that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Every signatory needs a block covering them before signing can be started."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template."
},
"external_reviewer_invitation_message": {
"type": "string",
"description": "Text fynk adds to the invitation email to a document user without a fynk user in this account, when the invitation is sent without an invitation_message of its own. Absent when no text is set."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set."
}
}
},
"annotations": {
"title": "Create document from scratch",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description92/100
Create a new document from a template, optionally pre-filling parties, signatories, and dynamic fields, and optionally starting the signing process immediately.
Use this tool when:
- The user wants to generate a document based on an existing template
It is usually helpful to call get-template-info with include=["parties", "signatories", "dynamic_fields"] first to discover the template's parties, signatories, and dynamic fields so that the `parties`, `signatories`, and `dynamic_field_values` arguments can be populated correctly.
When completing dynamic fields, take note of the field's `type` when constructing the value. These are the rules to use when constructing the `value` string:
- number: the numeric value in a string, using '.' as the decimal separator -> "1234.56"
- currency: concatenate the ISO currency code and the numeric value with a ';' -> "EUR;1000.10" (for one thousand Euro and ten cents)
- currency_duration: same as currency, but append another ';' followed by either `monthly` or `yearly` -> "EUR;1000.10;monthly" / "USD;1000.10;yearly"
- select: one of the options from the field's `select_values` list -> "red"
- multi_select: an array of the selected values in the `values` field -> ["red", "blue"]
- bool: either of the strings "true" (displayed to the user as "Yes") or "false" (displayed to the user as "No") -> "true" / "false"
- duration: a PHP-compatible duration specification -> "P6D" (6 days), "P2W" (2 weeks), "PT12H" (12 hours)
- date: the date in the format "YYYY-MM-DD" -> "2026-12-31"
- email, text, textarea, or any type not listed above: a string -> "[email protected]"
Setting `start_signing=true` will move the new document straight into the signing stage and invite the signatories to sign it; this fails if any required information (party data, mandatory dynamic field values, signature blocks) is missing.
The description explains the capability, when to use it, and what to expect.
Inputs92/100
Explain the meaning of this value, not just its name.
template_uuid
UUID of the template to create the document from. Must be one of the template UUIDs returned by list-templates
Clear enough to supply this argument.
document_name
The name of the new document. If omitted, the name of the template will be used
Clear enough to supply this argument.
parties › items › identifier
The party's ref_uuid, reference, or entity_name from the template
Clear enough to supply this argument.
parties › items › entity_name
The actual name of this party. If this is not set in the party in the template, a value will be needed here before signing can be started
Clear enough to supply this argument.
parties › items › address
New address for this party
Explain the meaning of this value, not just its name.
signatories › items › party_identifier
The ref_uuid, reference, or entity_name from the template of the party that the signatory belongs to
Clear enough to supply this argument.
signatories › items › email
Signatory's email address
Clear enough to supply this argument.
signatories › items › first_name
Signatory's first name
Clear enough to supply this argument.
signatories › items › last_name
Signatory's last name
Clear enough to supply this argument.
signatories › items › mobile_phone
Mobile phone number in E.164 format. Depending on the template's signature_type, may be required before signing can be started
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
signatories › items › title
Optional job title
Clear enough to supply this argument.
dynamic_field_values › items › identifier
The dynamic field's ref_uuid, or name from the template
Clear enough to supply this argument.
dynamic_field_values › items › value
For none-multi_select-type fields, the value to set for the field in the new document
Clear enough to supply this argument.
dynamic_field_values › items › values
For multi_select-type fields, the value to set for the field in the new document
Explain the meaning of this value, not just its name.
start_signing
Whether to immediately start the signing process and invite the signatories to sign the document. This may fail if not all party or signatory data is completed, or mandatory dynamic fields do not have values
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities on the document."
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The document's conditions: rules over its dynamic fields deciding whether a passage of the document applies, and whether each currently holds. Use them to explain why a clause is or is not part of the document, and what would have to change to flip it."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the document. Attachments are part of the document itself and visible to external parties."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign the document. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the document's internal file storage, as opposed to its attachments. It includes files uploaded in the document's comments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\"."
},
"summary_text": {
"type": "string",
"description": "A summary of the document content. Absent when the document has no summary."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"document_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
},
"description": "Everyone with access to the document, each with their access level (role). Signatories are document users too, and appear here with is_signatory true."
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The document's dynamic fields and their values."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen."
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The document's metadata fields and their values."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the document that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Every signatory needs a block covering them before signing can be started."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template."
},
"external_reviewer_invitation_message": {
"type": "string",
"description": "Text fynk adds to the invitation email to a document user without a fynk user in this account, when the invitation is sent without an invitation_message of its own. Absent when no text is set."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set."
}
}
}
Original tool metadata
{
"name": "create-document-from-template",
"title": "Create document from template",
"description": "Create a new document from a template, optionally pre-filling parties, signatories, and dynamic fields, and optionally starting the signing process immediately.\n\nUse this tool when:\n\n- The user wants to generate a document based on an existing template\n\nIt is usually helpful to call get-template-info with include=[\"parties\", \"signatories\", \"dynamic_fields\"] first to discover the template's parties, signatories, and dynamic fields so that the `parties`, `signatories`, and `dynamic_field_values` arguments can be populated correctly.\n\nWhen completing dynamic fields, take note of the field's `type` when constructing the value. These are the rules to use when constructing the `value` string:\n\n- number: the numeric value in a string, using '.' as the decimal separator -> \"1234.56\"\n- currency: concatenate the ISO currency code and the numeric value with a ';' -> \"EUR;1000.10\" (for one thousand Euro and ten cents)\n- currency_duration: same as currency, but append another ';' followed by either `monthly` or `yearly` -> \"EUR;1000.10;monthly\" / \"USD;1000.10;yearly\"\n- select: one of the options from the field's `select_values` list -> \"red\"\n- multi_select: an array of the selected values in the `values` field -> [\"red\", \"blue\"]\n- bool: either of the strings \"true\" (displayed to the user as \"Yes\") or \"false\" (displayed to the user as \"No\") -> \"true\" / \"false\"\n- duration: a PHP-compatible duration specification -> \"P6D\" (6 days), \"P2W\" (2 weeks), \"PT12H\" (12 hours)\n- date: the date in the format \"YYYY-MM-DD\" -> \"2026-12-31\"\n- email, text, textarea, or any type not listed above: a string -> \"[email protected]\"\n\nSetting `start_signing=true` will move the new document straight into the signing stage and invite the signatories to sign it; this fails if any required information (party data, mandatory dynamic field values, signature blocks) is missing.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid"
],
"properties": {
"parties": {
"type": "array",
"items": {
"type": "object",
"required": [
"identifier"
],
"properties": {
"address": {
"type": [
"string",
"null"
],
"description": "New address for this party"
},
"identifier": {
"type": "string",
"description": "The party's ref_uuid, reference, or entity_name from the template"
},
"entity_name": {
"type": [
"string",
"null"
],
"description": "The actual name of this party. If this is not set in the party in the template, a value will be needed here before signing can be started"
}
}
},
"description": "Specifics of the parties involved in the document, additional to any information from the template."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"required": [
"party_identifier",
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Signatory's email address"
},
"title": {
"type": [
"string",
"null"
],
"description": "Optional job title"
},
"last_name": {
"type": [
"string",
"null"
],
"description": "Signatory's last name"
},
"first_name": {
"type": [
"string",
"null"
],
"description": "Signatory's first name"
},
"mobile_phone": {
"type": [
"string",
"null"
],
"description": "Mobile phone number in E.164 format. Depending on the template's signature_type, may be required before signing can be started"
},
"party_identifier": {
"type": "string",
"description": "The ref_uuid, reference, or entity_name from the template of the party that the signatory belongs to"
}
}
},
"description": "The specific people who will sign the document"
},
"document_name": {
"type": "string",
"description": "The name of the new document. If omitted, the name of the template will be used"
},
"start_signing": {
"type": "boolean",
"default": false,
"description": "Whether to immediately start the signing process and invite the signatories to sign the document. This may fail if not all party or signatory data is completed, or mandatory dynamic fields do not have values"
},
"template_uuid": {
"type": "string",
"description": "UUID of the template to create the document from. Must be one of the template UUIDs returned by list-templates"
},
"dynamic_field_values": {
"type": "array",
"items": {
"type": "object",
"required": [
"identifier"
],
"properties": {
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type fields, the value to set for the field in the new document"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "For multi_select-type fields, the value to set for the field in the new document"
},
"identifier": {
"type": "string",
"description": "The dynamic field's ref_uuid, or name from the template"
}
}
},
"description": "Values for the template's dynamic fields. Signing can only start when all mandatory dynamic fields from the template have values provided."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities on the document."
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The document's conditions: rules over its dynamic fields deciding whether a passage of the document applies, and whether each currently holds. Use them to explain why a clause is or is not part of the document, and what would have to change to flip it."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the document. Attachments are part of the document itself and visible to external parties."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign the document. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the document's internal file storage, as opposed to its attachments. It includes files uploaded in the document's comments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\"."
},
"summary_text": {
"type": "string",
"description": "A summary of the document content. Absent when the document has no summary."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"document_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
},
"description": "Everyone with access to the document, each with their access level (role). Signatories are document users too, and appear here with is_signatory true."
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The document's dynamic fields and their values."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen."
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The document's metadata fields and their values."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the document that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Every signatory needs a block covering them before signing can be started."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template."
},
"external_reviewer_invitation_message": {
"type": "string",
"description": "Text fynk adds to the invitation email to a document user without a fynk user in this account, when the invitation is sent without an invitation_message of its own. Absent when no text is set."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set."
}
}
},
"annotations": {
"title": "Create document from template",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description88/100
Links two existing documents, recording how they relate to each other, e.g. that one contract is a renewal of another.
Use this tool when:
- The user says how two contracts relate, e.g. "this is the renewal of the 2023 service agreement" or "link the amendment to its main contract"
- Documents migrated from another system belong together, e.g. a framework agreement and the order forms under it (parent_of / child_of)
relationship_type is read from document_uuid's side: renewal_of means document_uuid renews other_document_uuid, renewed_by means other_document_uuid renews document_uuid. Find both documents' UUIDs with list-documents first. Two documents can be linked only once with each kind of relationship.
The documents already linked to a document are returned by get-document-info with include linked_documents. To change a link's relationship type, remove the link with delete-document-link and create the right one.
The description explains the capability, when to use it, and what to expect.
Inputs92/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_uuid
UUID of the document whose side relationship_type is read from. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
other_document_uuid
UUID of the document to link document_uuid to. Must be a different document.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
relationship_type
How document_uuid relates to other_document_uuid, e.g. renewal_of when document_uuid is the renewal, amended_by when other_document_uuid is the amendment.
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier of the link itself, not of either document, as taken by delete-document-link. Do not show to the user unless they ask for it"
},
"document": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
},
"description": "The document given as document_uuid, from whose side relationship is read"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the documents were linked"
},
"relationship": {
"enum": [
"parent_of",
"child_of",
"amendment_to",
"amended_by",
"renewal_of",
"renewed_by",
"addition_to",
"added_to_by",
"replacement_of",
"replaced_by",
"termination_of",
"terminated_by"
],
"type": "string",
"description": "How the document the link is presented from relates to linked_document, e.g. renewal_of means it renews linked_document, renewed_by means linked_document renews it"
},
"linked_document": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk. Absent when the document is deleted"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"deleted_at": {
"type": "string",
"format": "date-time",
"description": "When the document was deleted. Absent when it is not deleted. A deleted document cannot be opened: tell the user it was deleted rather than offering to open it"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Absent when the document is deleted"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
},
"description": "The other document of the link"
}
}
}
Original tool metadata
{
"name": "create-document-link",
"title": "Create document link",
"description": "Links two existing documents, recording how they relate to each other, e.g. that one contract is a renewal of another.\n\nUse this tool when:\n\n- The user says how two contracts relate, e.g. \"this is the renewal of the 2023 service agreement\" or \"link the amendment to its main contract\"\n- Documents migrated from another system belong together, e.g. a framework agreement and the order forms under it (parent_of / child_of)\n\nrelationship_type is read from document_uuid's side: renewal_of means document_uuid renews other_document_uuid, renewed_by means other_document_uuid renews document_uuid. Find both documents' UUIDs with list-documents first. Two documents can be linked only once with each kind of relationship.\n\nThe documents already linked to a document are returned by get-document-info with include linked_documents. To change a link's relationship type, remove the link with delete-document-link and create the right one.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"other_document_uuid",
"relationship_type"
],
"properties": {
"document_uuid": {
"type": "string",
"description": "UUID of the document whose side relationship_type is read from. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"relationship_type": {
"enum": [
"parent_of",
"child_of",
"amendment_to",
"amended_by",
"renewal_of",
"renewed_by",
"addition_to",
"added_to_by",
"replacement_of",
"replaced_by",
"termination_of",
"terminated_by"
],
"type": "string",
"description": "How document_uuid relates to other_document_uuid, e.g. renewal_of when document_uuid is the renewal, amended_by when other_document_uuid is the amendment."
},
"other_document_uuid": {
"type": "string",
"description": "UUID of the document to link document_uuid to. Must be a different document."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier of the link itself, not of either document, as taken by delete-document-link. Do not show to the user unless they ask for it"
},
"document": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
},
"description": "The document given as document_uuid, from whose side relationship is read"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the documents were linked"
},
"relationship": {
"enum": [
"parent_of",
"child_of",
"amendment_to",
"amended_by",
"renewal_of",
"renewed_by",
"addition_to",
"added_to_by",
"replacement_of",
"replaced_by",
"termination_of",
"terminated_by"
],
"type": "string",
"description": "How the document the link is presented from relates to linked_document, e.g. renewal_of means it renews linked_document, renewed_by means linked_document renews it"
},
"linked_document": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk. Absent when the document is deleted"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"deleted_at": {
"type": "string",
"format": "date-time",
"description": "When the document was deleted. Absent when it is not deleted. A deleted document cannot be opened: tell the user it was deleted rather than offering to open it"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Absent when the document is deleted"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
},
"description": "The other document of the link"
}
}
},
"annotations": {
"title": "Create document link",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description89/100
Adds a party to a document, alongside any parties it already has.
Use this tool when:
- A contracting party is missing from a document, e.g. the counterparty of a contract created from scratch
- A signatory has to be added for a party the document does not have yet: create the party first, then add the signatory with create-document-signatory
Pass party_account_party_uuid to add one of the account's saved parties (list-account-parties), usually the user's own company. A saved party can be on a document only once, and is always internal. For any other party, give party_entity_name, party_address and party_scope instead.
Parties cannot be added while the document is archived, in the signing stage or an approved stage, going through an approval checkpoint, or bound by a preemptive signature.
The description explains the capability, when to use it, and what to expect.
Inputs88/100
Explain the meaning of this value, not just its name.
document_uuid
UUID of the document to add the party to. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
party_reference
Generic reference for the party. e.g. "Counterparty", "Customer", "Employee", etc
Clear enough to supply this argument.
party_account_party_uuid
To add a saved account party, the uuid of a party from the list-account-parties tool
Clear enough to supply this argument.
party_entity_name
Actual name of the party. Cannot be sent alongside party_account_party_uuid
Clear enough to supply this argument.
party_address
Party's address. Cannot be sent alongside party_account_party_uuid
Explain the meaning of this value, not just its name.
party_scope
When this is internal_and_external, collaborators from this party may change the party's information. Required when party_account_party_uuid is not sent
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
Original tool metadata
{
"name": "create-document-party",
"title": "Create document party",
"description": "Adds a party to a document, alongside any parties it already has.\n\nUse this tool when:\n\n- A contracting party is missing from a document, e.g. the counterparty of a contract created from scratch\n- A signatory has to be added for a party the document does not have yet: create the party first, then add the signatory with create-document-signatory\n\nPass party_account_party_uuid to add one of the account's saved parties (list-account-parties), usually the user's own company. A saved party can be on a document only once, and is always internal. For any other party, give party_entity_name, party_address and party_scope instead.\n\nParties cannot be added while the document is archived, in the signing stage or an approved stage, going through an approval checkpoint, or bound by a preemptive signature.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"party_reference"
],
"properties": {
"party_scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "When this is internal_and_external, collaborators from this party may change the party's information. Required when party_account_party_uuid is not sent"
},
"document_uuid": {
"type": "string",
"description": "UUID of the document to add the party to. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"party_address": {
"type": [
"string",
"null"
],
"description": "Party's address. Cannot be sent alongside party_account_party_uuid"
},
"party_reference": {
"type": "string",
"description": "Generic reference for the party. e.g. \"Counterparty\", \"Customer\", \"Employee\", etc"
},
"party_entity_name": {
"type": [
"string",
"null"
],
"description": "Actual name of the party. Cannot be sent alongside party_account_party_uuid"
},
"party_account_party_uuid": {
"type": "string",
"description": "To add a saved account party, the uuid of a party from the list-account-parties tool"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"annotations": {
"title": "Create document party",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description99/100
Create a signed URL that a single PDF can be POST-uploaded to, for later use with create-document-from-pdf-upload.
Use this tool when:
- The user wants to create a document from an existing PDF file and you need somewhere to upload it to first
The upload is an HTTP request you send yourself. If you cannot send HTTP requests with the file's contents, do not call this tool; ask the user to upload the PDF in the fynk app instead.
Call it once per PDF: each URL accepts exactly one file of up to 30 MB, and stops working at `expires_at`, a few minutes after it was issued.
Upload with a multipart/form-data POST to `url` that sends every entry of `fields` as a form field with its value unchanged, followed by the PDF as a final field named `file`; S3 ignores any field sent after the file. Only a 204 response means the upload succeeded, so check the status before calling create-document-from-pdf-upload, and request a new URL to retry a failed upload. With curl, send the `fields` with `--form-string`, since `-F` reads a value starting with `@` or `<` as a file reference:
curl -w "%{http_code}\n" -X POST "<url>" \
--form-string "key=<fields.key>" \
--form-string "<each other entry of fields>=<its value>" \
-F "file=@/path/to/contract.pdf;type=application/pdf"
curl reads `;` and `,` in that file path as separators, so wrap a path containing either in escaped double quotes (`-F "file=@\"/path/to/a;b.pdf\";type=application/pdf"`).
Then pass `file_upload_uuid` to create-document-from-pdf-upload.
The description explains the capability, when to use it, and what to expect.
Inputs100/100
This tool declares no inputs, so argument descriptions are not needed.
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Perform a multipart/form-data POST request to this URL to upload the PDF"
},
"fields": {
"type": "object",
"description": "Form fields to send unchanged in the POST body, before a final \"file\" field holding the PDF contents. Its `key` is a storage path, not the upload uuid"
},
"expires_at": {
"type": "string",
"format": "date-time",
"description": "When the URL stops being usable"
},
"file_upload_uuid": {
"type": "string",
"description": "Pass as `file_upload_uuid` to create-document-from-pdf-upload once the upload to `url` has succeeded"
}
}
}
Original tool metadata
{
"name": "create-document-pdf-upload-url",
"title": "Create document PDF upload URL",
"description": "Create a signed URL that a single PDF can be POST-uploaded to, for later use with create-document-from-pdf-upload.\n\nUse this tool when:\n\n- The user wants to create a document from an existing PDF file and you need somewhere to upload it to first\n\nThe upload is an HTTP request you send yourself. If you cannot send HTTP requests with the file's contents, do not call this tool; ask the user to upload the PDF in the fynk app instead.\n\nCall it once per PDF: each URL accepts exactly one file of up to 30 MB, and stops working at `expires_at`, a few minutes after it was issued.\n\nUpload with a multipart/form-data POST to `url` that sends every entry of `fields` as a form field with its value unchanged, followed by the PDF as a final field named `file`; S3 ignores any field sent after the file. Only a 204 response means the upload succeeded, so check the status before calling create-document-from-pdf-upload, and request a new URL to retry a failed upload. With curl, send the `fields` with `--form-string`, since `-F` reads a value starting with `@` or `<` as a file reference:\n\n curl -w \"%{http_code}\\n\" -X POST \"<url>\" \\\n --form-string \"key=<fields.key>\" \\\n --form-string \"<each other entry of fields>=<its value>\" \\\n -F \"file=@/path/to/contract.pdf;type=application/pdf\"\n\ncurl reads `;` and `,` in that file path as separators, so wrap a path containing either in escaped double quotes (`-F \"file=@\\\"/path/to/a;b.pdf\\\";type=application/pdf\"`).\n\nThen pass `file_upload_uuid` to create-document-from-pdf-upload.",
"inputSchema": {
"type": "object",
"properties": {}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Perform a multipart/form-data POST request to this URL to upload the PDF"
},
"fields": {
"type": "object",
"description": "Form fields to send unchanged in the POST body, before a final \"file\" field holding the PDF contents. Its `key` is a storage path, not the upload uuid"
},
"expires_at": {
"type": "string",
"format": "date-time",
"description": "When the URL stops being usable"
},
"file_upload_uuid": {
"type": "string",
"description": "Pass as `file_upload_uuid` to create-document-from-pdf-upload once the upload to `url` has succeeded"
}
}
},
"annotations": {
"title": "Create document PDF upload URL",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description95/100
Adds a signatory to a document.
Use this tool when:
- You have a document with one or more parties configured and want to add a signatory for one of the parties.
The signatory becomes a user of the document and is invited by email to sign it once the document moves to the signing stage, so confirm the email address with the user rather than inferring it. The email may belong to someone who is already a user of the document, e.g. one added with create-document-user; they become a signatory and keep their role.
When adding a signatory whose email corresponds to an existing user in the current fynk account, all of the optional arguments will be ignored and the signatory information will be populated from the existing user's profile.
The description explains the capability, when to use it, and what to expect.
Inputs79/100
Explain the meaning of this value, not just its name.
document_uuid
UUID of the document to add the signatory to. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
signatory_party_identifier
The ref_uuid, reference, or entity_name of the party in the document to add the signatory to
Clear enough to supply this argument.
signatory_email
Signatory's email address
Clear enough to supply this argument.
signatory_first_name
Signatory's first name
Clear enough to supply this argument.
signatory_last_name
Signatory's last name
Clear enough to supply this argument.
signatory_mobile_phone
Mobile phone number in E.164 format. Depending on the document's signature_type, may be required before signing can be started
Clear enough to supply this argument.
signatory_title
Optional job title
Explain the meaning of this value, not just its name.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
}
Original tool metadata
{
"name": "create-document-signatory",
"title": "Create document signatory",
"description": " Adds a signatory to a document.\n\n Use this tool when:\n\n - You have a document with one or more parties configured and want to add a signatory for one of the parties.\n\n The signatory becomes a user of the document and is invited by email to sign it once the document moves to the signing stage, so confirm the email address with the user rather than inferring it. The email may belong to someone who is already a user of the document, e.g. one added with create-document-user; they become a signatory and keep their role.\n\n When adding a signatory whose email corresponds to an existing user in the current fynk account, all of the optional arguments will be ignored and the signatory information will be populated from the existing user's profile.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"signatory_party_identifier",
"signatory_email"
],
"properties": {
"document_uuid": {
"type": "string",
"description": "UUID of the document to add the signatory to. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"signatory_email": {
"type": "string",
"description": "Signatory's email address"
},
"signatory_title": {
"type": "string",
"description": "Optional job title"
},
"signatory_last_name": {
"type": "string",
"description": "Signatory's last name"
},
"signatory_first_name": {
"type": "string",
"description": "Signatory's first name"
},
"signatory_mobile_phone": {
"type": "string",
"description": "Mobile phone number in E.164 format. Depending on the document's signature_type, may be required before signing can be started"
},
"signatory_party_identifier": {
"type": "string",
"description": "The ref_uuid, reference, or entity_name of the party in the document to add the signatory to"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"annotations": {
"title": "Create document signatory",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description93/100
Gives a person access to a document as an owner, collaborator or viewer, and by default emails them an invitation.
Use this tool when:
- Someone should be able to open, comment on or edit a document, e.g. a colleague who should review a draft or a counterparty's lawyer who should comment during review
- A colleague should become an owner of a document
Identify the person by exactly one of `email` or `account_user_uuid`. Someone who is to sign the document is added with create-document-signatory instead. An email address that already belongs to a user of the document is refused; change that user with update-document-user.
By default the person is emailed an invitation straight away. Before calling, always ask the user whether the person should receive that email now, rather than relying on the default, and confirm the email address with them rather than inferring it. With `invite_method` none the person is added without an email, and can be invited later via update-document-user with `mode` send_invitation. A person without a fynk account user in this account can open the document only once invited. When creating multiple users in succession, make sure to check with the user for each of them whether an email should be sent.
Whenever the document has a party on the person's side, `party_identifier` is required. Any of the document's parties is accepted, but the person usually belongs to one on their side: a party where is_internal is true for a person with a fynk account user in this account, one where is_internal is false for anyone else, typically the counterparty their company is. Ask the user which party if it is not clear.
A person without a fynk account user in this account (internal_user false) cannot be added while the document is in the draft or approved_draft stage, and cannot be an owner. For a person with a fynk account user in this account, the name and title come from their fynk profile, and `first_name`, `last_name` and `title` are ignored.
The description explains the capability, when to use it, and what to expect.
Inputs88/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_uuid
UUID of the document to give the person access to. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
email
Email address of the person to add. Send this or account_user_uuid, not both
Clear enough to supply this argument.
account_user_uuid
uuid of an account user to add, as returned by list-account-users. Send this or email, not both
Clear enough to supply this argument.
role
The person's access level on the document. Only people with a fynk account user in this account can be owners
Clear enough to supply this argument.
invite_method
"fynk_email" emails the person an invitation to the document. "none" adds them without an email
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
invitation_message
An extra note shown in the invitation email, up to 2000 characters and without links. The email presents it as a message from the user (or from the account, if it hides who sent an email), so write it in the user's voice. Only with invite_method fynk_email. Without it, a person without a fynk user in this account gets the document's external_reviewer_invitation_message (in the document_users section of get-document-info), if one is set: read it before writing your own
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
party_identifier
The party to add the person to, as the ref_uuid, reference, or entity_name of an existing party in the document. Required when the document has a party on the person's side, one where is_internal is true for a person with a fynk account user in this account and false for anyone else, which is usually the right party for them
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
first_name
First name. Ignored for a person with a fynk account in this account
Clear enough to supply this argument.
last_name
Last name. Ignored for a person with a fynk account in this account
Clear enough to supply this argument.
title
Job title. Ignored for a person with a fynk account in this account
Explain the meaning of this value, not just its name.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
}
Original tool metadata
{
"name": "create-document-user",
"title": "Create document user",
"description": "Gives a person access to a document as an owner, collaborator or viewer, and by default emails them an invitation.\n\nUse this tool when:\n\n- Someone should be able to open, comment on or edit a document, e.g. a colleague who should review a draft or a counterparty's lawyer who should comment during review\n- A colleague should become an owner of a document\n\nIdentify the person by exactly one of `email` or `account_user_uuid`. Someone who is to sign the document is added with create-document-signatory instead. An email address that already belongs to a user of the document is refused; change that user with update-document-user.\n\nBy default the person is emailed an invitation straight away. Before calling, always ask the user whether the person should receive that email now, rather than relying on the default, and confirm the email address with them rather than inferring it. With `invite_method` none the person is added without an email, and can be invited later via update-document-user with `mode` send_invitation. A person without a fynk account user in this account can open the document only once invited. When creating multiple users in succession, make sure to check with the user for each of them whether an email should be sent.\n\nWhenever the document has a party on the person's side, `party_identifier` is required. Any of the document's parties is accepted, but the person usually belongs to one on their side: a party where is_internal is true for a person with a fynk account user in this account, one where is_internal is false for anyone else, typically the counterparty their company is. Ask the user which party if it is not clear.\n\nA person without a fynk account user in this account (internal_user false) cannot be added while the document is in the draft or approved_draft stage, and cannot be an owner. For a person with a fynk account user in this account, the name and title come from their fynk profile, and `first_name`, `last_name` and `title` are ignored.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"role"
],
"properties": {
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The person's access level on the document. Only people with a fynk account user in this account can be owners"
},
"email": {
"type": "string",
"description": "Email address of the person to add. Send this or account_user_uuid, not both"
},
"title": {
"type": [
"string",
"null"
],
"description": "Job title. Ignored for a person with a fynk account in this account"
},
"last_name": {
"type": [
"string",
"null"
],
"description": "Last name. Ignored for a person with a fynk account in this account"
},
"first_name": {
"type": [
"string",
"null"
],
"description": "First name. Ignored for a person with a fynk account in this account"
},
"document_uuid": {
"type": "string",
"description": "UUID of the document to give the person access to. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"invite_method": {
"enum": [
"fynk_email",
"none"
],
"type": "string",
"default": "fynk_email",
"description": "\"fynk_email\" emails the person an invitation to the document. \"none\" adds them without an email"
},
"party_identifier": {
"type": "string",
"description": "The party to add the person to, as the ref_uuid, reference, or entity_name of an existing party in the document. Required when the document has a party on the person's side, one where is_internal is true for a person with a fynk account user in this account and false for anyone else, which is usually the right party for them"
},
"account_user_uuid": {
"type": "string",
"description": "uuid of an account user to add, as returned by list-account-users. Send this or email, not both"
},
"invitation_message": {
"type": [
"string",
"null"
],
"description": "An extra note shown in the invitation email, up to 2000 characters and without links. The email presents it as a message from the user (or from the account, if it hides who sent an email), so write it in the user's voice. Only with invite_method fynk_email. Without it, a person without a fynk user in this account gets the document's external_reviewer_invitation_message (in the document_users section of get-document-info), if one is set: read it before writing your own"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
},
"annotations": {
"title": "Create document user",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description99/100
Create a new dynamic field on a template.
Use this tool when:
- The user wants to add a variable / fill-in field (e.g. text, number, date, select) to a template
- You are building up a template and need a placeholder whose value is filled in per document
IMPORTANT: this is only the first of two steps. Creating the field does NOT place it in the template content, so on
its own the fill-in placeholder will not appear in the document text. To make it show up, reference the returned
`ref_uuid` in the template body (via replace-template-content) as:
<span data-dynamic-field data-ref-uuid="<dynamic field ref_uuid>"></span>
Until it is referenced in the content the field exists but is rendered nowhere. The same two-step pattern applies
to signature blocks (create-template-signature-block, then
`<div data-signatures><span data-signature-block data-ref-uuid="..."></span></div>`).
Dynamic fields define the variable data filled in when a template is used to create a document. Each field has a
`type` controlling what values it accepts, and a `scope` controlling who fills it in.
A party's name or address is never a dynamic field. Both live on the party record: add the party with
create-template-party and render its details in the content with
<span data-party data-ref-uuid="..." data-format="name"></span>, taking data-format="address" for the address as a
block and data-format="address:inline" for it on one line, as a preamble reads it. A document made from the
template then follows its own parties.
`select` and `multi_select` fields require `select_values` (the allowed options).
The optional default value is set via `value` (for non-multi_select fields) or `values` (for multi_select fields).
Construct the `value` string according to the field `type`:
- number: the numeric value in a string, using '.' as the decimal separator -> "1234.56"
- currency: concatenate the ISO currency code and the numeric value with a ';' -> "EUR;1000.10"
- currency_duration: same as currency, but append another ';' followed by either `monthly` or `yearly` -> "EUR;1000.10;monthly"
- select: one of the options from `select_values` -> "red"
- multi_select: an array of the selected options in the `values` field -> ["red", "blue"]
- bool: either of the strings "true" (shown as "Yes") or "false" (shown as "No")
- duration: a PHP-compatible duration specification -> "P6D" (6 days)
- date: the date in the format "YYYY-MM-DD" -> "2026-12-31"
- email, text, textarea, or any type not listed above: a string -> "[email protected]"
The description explains the capability, when to use it, and what to expect.
Inputs89/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
template_uuid
UUID of the template to add the dynamic field to
Clear enough to supply this argument.
type
Controls the type of values the field accepts (e.g. "text", "number", "date", "select")
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
name
Display name of the field (max 255 characters)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
scope
Who fills in the field: "internal" (only your team) or "internal_and_external" (also counterparties). Defaults to "internal_and_external".
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
select_values
Required for "select" and "multi_select" types: the allowed options for the field
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
is_mandatory
Whether the field must be filled in before the document can be signed. Defaults to false.
Clear enough to supply this argument.
question
Optional question or prompt shown to the user filling in this field
Clear enough to supply this argument.
value
Optional default value for non-multi_select fields. Format depends on type (see tool description).
Clear enough to supply this argument.
values
Optional default value for multi_select fields: an array of options from select_values
Align the output schema with the tool’s documented result.
View output schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
}
Original tool metadata
{
"name": "create-template-dynamic-field",
"title": "Create template dynamic field",
"description": "Create a new dynamic field on a template.\n\nUse this tool when:\n\n- The user wants to add a variable / fill-in field (e.g. text, number, date, select) to a template\n- You are building up a template and need a placeholder whose value is filled in per document\n\nIMPORTANT: this is only the first of two steps. Creating the field does NOT place it in the template content, so on\nits own the fill-in placeholder will not appear in the document text. To make it show up, reference the returned\n`ref_uuid` in the template body (via replace-template-content) as:\n\n <span data-dynamic-field data-ref-uuid=\"<dynamic field ref_uuid>\"></span>\n\nUntil it is referenced in the content the field exists but is rendered nowhere. The same two-step pattern applies\nto signature blocks (create-template-signature-block, then\n`<div data-signatures><span data-signature-block data-ref-uuid=\"...\"></span></div>`).\n\nDynamic fields define the variable data filled in when a template is used to create a document. Each field has a\n`type` controlling what values it accepts, and a `scope` controlling who fills it in.\n\nA party's name or address is never a dynamic field. Both live on the party record: add the party with\ncreate-template-party and render its details in the content with\n<span data-party data-ref-uuid=\"...\" data-format=\"name\"></span>, taking data-format=\"address\" for the address as a\nblock and data-format=\"address:inline\" for it on one line, as a preamble reads it. A document made from the\ntemplate then follows its own parties.\n\n`select` and `multi_select` fields require `select_values` (the allowed options).\n\nThe optional default value is set via `value` (for non-multi_select fields) or `values` (for multi_select fields).\nConstruct the `value` string according to the field `type`:\n\n- number: the numeric value in a string, using '.' as the decimal separator -> \"1234.56\"\n- currency: concatenate the ISO currency code and the numeric value with a ';' -> \"EUR;1000.10\"\n- currency_duration: same as currency, but append another ';' followed by either `monthly` or `yearly` -> \"EUR;1000.10;monthly\"\n- select: one of the options from `select_values` -> \"red\"\n- multi_select: an array of the selected options in the `values` field -> [\"red\", \"blue\"]\n- bool: either of the strings \"true\" (shown as \"Yes\") or \"false\" (shown as \"No\")\n- duration: a PHP-compatible duration specification -> \"P6D\" (6 days)\n- date: the date in the format \"YYYY-MM-DD\" -> \"2026-12-31\"\n- email, text, textarea, or any type not listed above: a string -> \"[email protected]\"",
"inputSchema": {
"type": "object",
"required": [
"template_uuid",
"type",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Display name of the field (max 255 characters)"
},
"type": {
"enum": [
"text",
"textarea",
"email",
"number",
"currency",
"currency_duration",
"select",
"multi_select",
"date",
"bool",
"duration"
],
"type": "string",
"description": "Controls the type of values the field accepts (e.g. \"text\", \"number\", \"date\", \"select\")"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties). Defaults to \"internal_and_external\"."
},
"value": {
"type": [
"string",
"null"
],
"description": "Optional default value for non-multi_select fields. Format depends on type (see tool description)."
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Optional default value for multi_select fields: an array of options from select_values"
},
"question": {
"type": [
"string",
"null"
],
"description": "Optional question or prompt shown to the user filling in this field"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether the field must be filled in before the document can be signed. Defaults to false."
},
"select_values": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Required for \"select\" and \"multi_select\" types: the allowed options for the field"
},
"template_uuid": {
"type": "string",
"description": "UUID of the template to add the dynamic field to"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"annotations": {
"title": "Create template dynamic field",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description96/100
Create a new empty template with editable ProseMirror content.
Use this tool when:
- The user wants to start building a new template from scratch (not from an existing PDF or template)
The new template is created empty and its content is authored in a later step. The body references parties,
dynamic fields and signature blocks by ref_uuid, so those have to exist before the content can point at them.
Build the template in this order:
1. create-template-party for each contracting party.
2. create-template-signature-block for each party that signs.
3. create-template-dynamic-field for every value that varies per document - dates, amounts, notice periods,
payment terms. A party's name or address is never one of them: both live on the party record and the content
renders them from there.
4. replace-template-content once, with a body that references all of them by their ref_uuids and wraps each
clause in an ordered list node so fynk numbers it.
Authoring the content first and adding the parties, fields and signature blocks afterwards forces a second,
destructive rewrite of the whole body to weave the references in, so plan them up front. This applies just as
much when the content is derived from a source document such as a PDF: every filled-in blank in the source is a
dynamic field unless it holds party identity, and its signature lines are signature blocks.
The `locale` defines the template's content language and default number formats. Never ask the user for it - a
BCP 47 tag is not something they can be expected to know. Infer it from the conversation, e.g. the language the
content is to be written in or a country or jurisdiction the user names, and otherwise omit it, which falls back to
the account's locale.
The description explains the capability, when to use it, and what to expect.
Inputs94/100
Input documentation gives an agent enough context to populate the arguments.
name
The name of the new template
Clear enough to supply this argument.
locale
BCP 47 locale tag defining the template content language and default number formats (e.g. "de-AT"). Never ask the user for this tag: infer it from the conversation, or omit it to use the account locale.
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the template in fynk. Only present when your user has template editing permission"
},
"name": {
"type": "string",
"description": "Name of the template"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the template. Do not show to the user unless they ask for it"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the template is assigned to. Only present when the 'teams' section is requested via the include parameter."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities the template defines. Only present when the 'parties' section is requested via the include parameter."
},
"published": {
"type": "boolean",
"description": "Indicates if the template is published (true) or a draft (false). Only published templates can be used by users without template management permission"
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The template's conditions: rules over its dynamic fields deciding whether a passage of the template applies, and whether each currently holds. Use them to explain why a clause is or is not part of the template, and what would have to change to flip it. Only present when the 'conditions' section is requested via the include parameter."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the template was created. Only present when the 'timestamps' section is requested via the include parameter."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the template was last updated. Only present when the 'timestamps' section is requested via the include parameter."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the template was archived. Absent when the template is not archived. Only present when the 'timestamps' section is requested via the include parameter."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the template. Attachments are part of the template itself and visible to external parties. Absent when the requesting user may not view the template's files. Only present when the 'attachments' section is requested via the include parameter."
},
"description": {
"type": "string",
"description": "Description of the template. Absent when the template has none. Only present when the 'details' section is requested via the include parameter."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign documents created from this template. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party. Only present when the 'signatories' section is requested via the include parameter."
},
"_entity_type": {
"enum": [
"template"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the template's internal file storage, as opposed to its attachments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\". Absent when the requesting user may not view the template's files. Only present when the 'stored_files' section is requested via the include parameter."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this template creates. Absent when the template has no type assigned"
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The template's dynamic fields and their values. Only present when the 'dynamic_fields' section is requested via the include parameter."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "The eIDAS assurance level that will be used when signing documents created from this template. Absent when none has been chosen. Only present when the 'signing_settings' section is requested via the include parameter."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The template's metadata fields and their values. Only present when the 'metadata_values' section is requested via the include parameter."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the template that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Only present when the 'signature_blocks' section is requested via the include parameter."
},
"sequential_signing": {
"type": "boolean",
"description": "Whether signatories must sign in a specific order. Only present when the 'signing_settings' section is requested via the include parameter."
}
}
}
Original tool metadata
{
"name": "create-template-from-scratch",
"title": "Create template from scratch",
"description": "Create a new empty template with editable ProseMirror content.\n\nUse this tool when:\n\n- The user wants to start building a new template from scratch (not from an existing PDF or template)\n\nThe new template is created empty and its content is authored in a later step. The body references parties,\ndynamic fields and signature blocks by ref_uuid, so those have to exist before the content can point at them.\nBuild the template in this order:\n\n1. create-template-party for each contracting party.\n2. create-template-signature-block for each party that signs.\n3. create-template-dynamic-field for every value that varies per document - dates, amounts, notice periods,\n payment terms. A party's name or address is never one of them: both live on the party record and the content\n renders them from there.\n4. replace-template-content once, with a body that references all of them by their ref_uuids and wraps each\n clause in an ordered list node so fynk numbers it.\n\nAuthoring the content first and adding the parties, fields and signature blocks afterwards forces a second,\ndestructive rewrite of the whole body to weave the references in, so plan them up front. This applies just as\nmuch when the content is derived from a source document such as a PDF: every filled-in blank in the source is a\ndynamic field unless it holds party identity, and its signature lines are signature blocks.\n\nThe `locale` defines the template's content language and default number formats. Never ask the user for it - a\nBCP 47 tag is not something they can be expected to know. Infer it from the conversation, e.g. the language the\ncontent is to be written in or a country or jurisdiction the user names, and otherwise omit it, which falls back to\nthe account's locale.",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the new template"
},
"locale": {
"type": "string",
"description": "BCP 47 locale tag defining the template content language and default number formats (e.g. \"de-AT\"). Never ask the user for this tag: infer it from the conversation, or omit it to use the account locale."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the template in fynk. Only present when your user has template editing permission"
},
"name": {
"type": "string",
"description": "Name of the template"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the template. Do not show to the user unless they ask for it"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the template is assigned to. Only present when the 'teams' section is requested via the include parameter."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities the template defines. Only present when the 'parties' section is requested via the include parameter."
},
"published": {
"type": "boolean",
"description": "Indicates if the template is published (true) or a draft (false). Only published templates can be used by users without template management permission"
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The template's conditions: rules over its dynamic fields deciding whether a passage of the template applies, and whether each currently holds. Use them to explain why a clause is or is not part of the template, and what would have to change to flip it. Only present when the 'conditions' section is requested via the include parameter."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the template was created. Only present when the 'timestamps' section is requested via the include parameter."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the template was last updated. Only present when the 'timestamps' section is requested via the include parameter."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the template was archived. Absent when the template is not archived. Only present when the 'timestamps' section is requested via the include parameter."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the template. Attachments are part of the template itself and visible to external parties. Absent when the requesting user may not view the template's files. Only present when the 'attachments' section is requested via the include parameter."
},
"description": {
"type": "string",
"description": "Description of the template. Absent when the template has none. Only present when the 'details' section is requested via the include parameter."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign documents created from this template. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party. Only present when the 'signatories' section is requested via the include parameter."
},
"_entity_type": {
"enum": [
"template"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the template's internal file storage, as opposed to its attachments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\". Absent when the requesting user may not view the template's files. Only present when the 'stored_files' section is requested via the include parameter."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this template creates. Absent when the template has no type assigned"
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The template's dynamic fields and their values. Only present when the 'dynamic_fields' section is requested via the include parameter."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "The eIDAS assurance level that will be used when signing documents created from this template. Absent when none has been chosen. Only present when the 'signing_settings' section is requested via the include parameter."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The template's metadata fields and their values. Only present when the 'metadata_values' section is requested via the include parameter."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the template that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Only present when the 'signature_blocks' section is requested via the include parameter."
},
"sequential_signing": {
"type": "boolean",
"description": "Whether signatories must sign in a specific order. Only present when the 'signing_settings' section is requested via the include parameter."
}
}
},
"annotations": {
"title": "Create template from scratch",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description97/100
Add a party to a template.
Use this tool when:
- The user wants to add a party (e.g. a counterparty, customer, or employer) to a template
- You are building up a template and need parties before adding signatories or signature blocks
There are two ways to add a party:
- Internal (saved) party: send `account_party_uuid` (from list-account-parties) together with `reference`. No other
fields may be sent in this case.
- External party: send `reference` and `scope`, and optionally `entity_name` and `address`.
The two names on a party say different things:
- `reference` is the generic label for the party's role on the template (e.g. "Employer", "Customer"), and stays
the same for every document made from it.
- `entity_name` is the name of the legal entity itself: a company's name ("Acme GmbH") or, when the party is an
individual rather than an organisation, that person's name. On a template it is usually only known for the
account's own side; a counterparty's is filled in per document, so leave it out rather than inventing one.
To render the party's details inline in the template text, reference the returned `ref_uuid` in the body
(via replace-template-content) as:
<span data-party data-ref-uuid="<party ref_uuid>" data-format="name"></span>
where `data-format` selects what is rendered: "name" (the party's entity/company name), "reference" (its
reference label), "address", or "address:inline". A data-format is required.
Note: adding a party does not, by itself, give that party anywhere to sign. If the party is meant to sign documents
created from the template, follow up with create-template-signature-block for the party — and remember that the
signature block must in turn be placed in the template content (via replace-template-content) inside a signature
container, `<div data-signatures><span data-signature-block data-ref-uuid="..."></span></div>`, before it will appear on any
document.
The description explains the capability, when to use it, and what to expect.
Inputs79/100
Clarify units, where to obtain this value, or conventions not already expressed in the schema.
template_uuid
UUID of the template to add the party to
Clarify units, where to obtain this value, or conventions not already expressed in the schema.
reference
Generic reference for the party's role on the template. e.g. "Counterparty", "Customer", "Employer"
Clear enough to supply this argument.
account_party_uuid
To add a saved account party, the uuid of a party from the list-account-parties tool. When provided, only reference may accompany it.
Clear enough to supply this argument.
entity_name
Name of the legal entity that is party to the contract - a company's name, or a person's name when the party is an individual. Cannot be sent alongside account_party_uuid
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
address
Party's address. Cannot be sent alongside account_party_uuid
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
scope
When internal_and_external, collaborators from this party may change the party's information. Required when account_party_uuid is not sent.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
Original tool metadata
{
"name": "create-template-party",
"title": "Create template party",
"description": "Add a party to a template.\n\nUse this tool when:\n\n- The user wants to add a party (e.g. a counterparty, customer, or employer) to a template\n- You are building up a template and need parties before adding signatories or signature blocks\n\nThere are two ways to add a party:\n\n- Internal (saved) party: send `account_party_uuid` (from list-account-parties) together with `reference`. No other\n fields may be sent in this case.\n- External party: send `reference` and `scope`, and optionally `entity_name` and `address`.\n\nThe two names on a party say different things:\n\n- `reference` is the generic label for the party's role on the template (e.g. \"Employer\", \"Customer\"), and stays\n the same for every document made from it.\n- `entity_name` is the name of the legal entity itself: a company's name (\"Acme GmbH\") or, when the party is an\n individual rather than an organisation, that person's name. On a template it is usually only known for the\n account's own side; a counterparty's is filled in per document, so leave it out rather than inventing one.\n\nTo render the party's details inline in the template text, reference the returned `ref_uuid` in the body\n(via replace-template-content) as:\n\n <span data-party data-ref-uuid=\"<party ref_uuid>\" data-format=\"name\"></span>\n\nwhere `data-format` selects what is rendered: \"name\" (the party's entity/company name), \"reference\" (its\nreference label), \"address\", or \"address:inline\". A data-format is required.\n\nNote: adding a party does not, by itself, give that party anywhere to sign. If the party is meant to sign documents\ncreated from the template, follow up with create-template-signature-block for the party — and remember that the\nsignature block must in turn be placed in the template content (via replace-template-content) inside a signature\ncontainer, `<div data-signatures><span data-signature-block data-ref-uuid=\"...\"></span></div>`, before it will appear on any\ndocument.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid",
"reference"
],
"properties": {
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "When internal_and_external, collaborators from this party may change the party's information. Required when account_party_uuid is not sent."
},
"address": {
"type": [
"string",
"null"
],
"description": "Party's address. Cannot be sent alongside account_party_uuid"
},
"reference": {
"type": "string",
"description": "Generic reference for the party's role on the template. e.g. \"Counterparty\", \"Customer\", \"Employer\""
},
"entity_name": {
"type": [
"string",
"null"
],
"description": "Name of the legal entity that is party to the contract - a company's name, or a person's name when the party is an individual. Cannot be sent alongside account_party_uuid"
},
"template_uuid": {
"type": "string",
"description": "UUID of the template to add the party to"
},
"account_party_uuid": {
"type": "string",
"description": "To add a saved account party, the uuid of a party from the list-account-parties tool. When provided, only reference may accompany it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"annotations": {
"title": "Create template party",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description99/100
Add a signature block to a template, bound either to one of its parties or to a single signatory.
Use this tool when:
- The user wants a party to have a place to sign on documents created from the template
- The user wants one specific signatory to have their own place to sign
- You are building up a template and need to add signing slots
Pass exactly one of `party_uuid` or `document_user_uuid`. A party-bound block is signed by every signatory of that
party, whoever they turn out to be on a document created from the template; a user-bound block is signed only by
the signatory it names. Use get-template-info with include=["parties", "signatories"] to discover the available
parties and signatories and their UUIDs.
A user-bound block requires a signatory that belongs to a party, because the block records that party alongside
the signatory.
IMPORTANT: this is only the first of two steps. Creating the signature block does NOT place it in the template
content, so on its own it will not appear on any document. To make it show up, reference the returned `ref_uuid`
in the template body (via replace-template-content) from a signature container, which houses one or more blocks:
<div data-signatures data-align="left"><span data-signature-block data-ref-uuid="<signature block ref_uuid>"></span></div>
A block is always placed inside such a container, even when it is the only one.
Until it is referenced in the content the block exists but is rendered nowhere. The same two-step pattern applies
to dynamic fields (create-template-dynamic-field, then `<span data-dynamic-field data-ref-uuid="...">`).
`style` (regular or minimal) and `scale` (50–150, percent) are optional and default to "regular" and 100.
The description explains the capability, when to use it, and what to expect.
Inputs70/100
Clarify units, where to obtain this value, or conventions not already expressed in the schema.
template_uuid
UUID of the template to add the signature block to
Clarify units, where to obtain this value, or conventions not already expressed in the schema.
party_uuid
UUID of the party this signature block belongs to, so that every signatory of that party signs it. Must be a party already on the template (use get-template-info to find it). Provide either this or document_user_uuid, not both.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_user_uuid
UUID of the single signatory this signature block is bound to. Must be a signatory already on the template and belonging to a party (use get-template-info with include=["signatories"] to find it). Provide either this or party_uuid, not both.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
style
Visual style of the signature block. Defaults to "regular".
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
scale
Scale percentage of the signature block (50–150). Defaults to 100.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
}
Original tool metadata
{
"name": "create-template-signature-block",
"title": "Create template signature block",
"description": "Add a signature block to a template, bound either to one of its parties or to a single signatory.\n\nUse this tool when:\n\n- The user wants a party to have a place to sign on documents created from the template\n- The user wants one specific signatory to have their own place to sign\n- You are building up a template and need to add signing slots\n\nPass exactly one of `party_uuid` or `document_user_uuid`. A party-bound block is signed by every signatory of that\nparty, whoever they turn out to be on a document created from the template; a user-bound block is signed only by\nthe signatory it names. Use get-template-info with include=[\"parties\", \"signatories\"] to discover the available\nparties and signatories and their UUIDs.\n\nA user-bound block requires a signatory that belongs to a party, because the block records that party alongside\nthe signatory.\n\nIMPORTANT: this is only the first of two steps. Creating the signature block does NOT place it in the template\ncontent, so on its own it will not appear on any document. To make it show up, reference the returned `ref_uuid`\nin the template body (via replace-template-content) from a signature container, which houses one or more blocks:\n\n <div data-signatures data-align=\"left\"><span data-signature-block data-ref-uuid=\"<signature block ref_uuid>\"></span></div>\n\nA block is always placed inside such a container, even when it is the only one.\n\nUntil it is referenced in the content the block exists but is rendered nowhere. The same two-step pattern applies\nto dynamic fields (create-template-dynamic-field, then `<span data-dynamic-field data-ref-uuid=\"...\">`).\n\n`style` (regular or minimal) and `scale` (50–150, percent) are optional and default to \"regular\" and 100.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid"
],
"properties": {
"scale": {
"type": "integer",
"maximum": 150,
"minimum": 50,
"description": "Scale percentage of the signature block (50–150). Defaults to 100."
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block. Defaults to \"regular\"."
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to, so that every signatory of that party signs it. Must be a party already on the template (use get-template-info to find it). Provide either this or document_user_uuid, not both."
},
"template_uuid": {
"type": "string",
"description": "UUID of the template to add the signature block to"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Must be a signatory already on the template and belonging to a party (use get-template-info with include=[\"signatories\"] to find it). Provide either this or party_uuid, not both."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"annotations": {
"title": "Create template signature block",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description96/100
Remove a document type from the account, whether it is one of the account's own types or one of fynk's system
document types.
Use this tool when:
- The user explicitly asks to delete or remove a document type
`document_type_uuid` comes from list-account-document-types, and the user must have made clear which type they
mean - either by naming it, or because it is the type this conversation has been about. Ask which one they mean
when that is not clear, offering the candidates by name.
What removing a type does depends on what list-account-document-types reports for it. A type the account created
itself, without `provided_by_fynk`, is deleted for good. One of fynk's own types, with `provided_by_fynk`, is
deactivated instead: it disappears from the account but can be brought back as fynk provides it with
update-account-document-type and `reactivate: true`. A `customised` type loses its customisation either way, so
tell the user so before going ahead with one.
A type that documents or templates still use cannot be removed. The refusal says how many use it.
The description explains the capability, when to use it, and what to expect.
Inputs95/100
Input documentation gives an agent enough context to populate the arguments.
document_type_uuid
Uuid of the document type to remove, from list-account-document-types
Align the output schema with the tool’s documented result.
View output schema
{
"type": "object",
"properties": {
"deleted_document_type": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document type"
},
"uuid": {
"type": "string",
"description": "Identifier for the document type. Do not show to the user unless they ask for it"
},
"customised": {
"type": "boolean",
"description": "Present, and true, only for a system document type that this account has customised. The customisation can be dropped again with update-account-document-type and `reset_to_fynk_default`"
},
"_entity_type": {
"enum": [
"document_type"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"provided_by_fynk": {
"type": "boolean",
"description": "Present, and true, only for one of fynk's built-in system document types. The account can customise or deactivate such a type but never delete it. Absent for a type the account created itself"
}
},
"description": "The account's own document type, as it was before it was deleted for good. Present only when one of the account's own types was removed"
},
"deactivated_document_type": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document type"
},
"uuid": {
"type": "string",
"description": "Identifier for the document type. Do not show to the user unless they ask for it"
},
"customised": {
"type": "boolean",
"description": "Present, and true, only for a system document type that this account has customised. The customisation can be dropped again with update-account-document-type and `reset_to_fynk_default`"
},
"_entity_type": {
"enum": [
"document_type"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"provided_by_fynk": {
"type": "boolean",
"description": "Present, and true, only for one of fynk's built-in system document types. The account can customise or deactivate such a type but never delete it. Absent for a type the account created itself"
}
},
"description": "One of fynk's document types, now deactivated for this account. Present only when one of fynk's types was removed"
}
}
}
Original tool metadata
{
"name": "delete-account-document-type",
"title": "Delete account document type",
"description": "Remove a document type from the account, whether it is one of the account's own types or one of fynk's system\ndocument types.\n\nUse this tool when:\n\n- The user explicitly asks to delete or remove a document type\n\n`document_type_uuid` comes from list-account-document-types, and the user must have made clear which type they\nmean - either by naming it, or because it is the type this conversation has been about. Ask which one they mean\nwhen that is not clear, offering the candidates by name.\n\nWhat removing a type does depends on what list-account-document-types reports for it. A type the account created\nitself, without `provided_by_fynk`, is deleted for good. One of fynk's own types, with `provided_by_fynk`, is\ndeactivated instead: it disappears from the account but can be brought back as fynk provides it with\nupdate-account-document-type and `reactivate: true`. A `customised` type loses its customisation either way, so\ntell the user so before going ahead with one.\n\nA type that documents or templates still use cannot be removed. The refusal says how many use it.",
"inputSchema": {
"type": "object",
"required": [
"document_type_uuid"
],
"properties": {
"document_type_uuid": {
"type": "string",
"description": "Uuid of the document type to remove, from list-account-document-types"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"deleted_document_type": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document type"
},
"uuid": {
"type": "string",
"description": "Identifier for the document type. Do not show to the user unless they ask for it"
},
"customised": {
"type": "boolean",
"description": "Present, and true, only for a system document type that this account has customised. The customisation can be dropped again with update-account-document-type and `reset_to_fynk_default`"
},
"_entity_type": {
"enum": [
"document_type"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"provided_by_fynk": {
"type": "boolean",
"description": "Present, and true, only for one of fynk's built-in system document types. The account can customise or deactivate such a type but never delete it. Absent for a type the account created itself"
}
},
"description": "The account's own document type, as it was before it was deleted for good. Present only when one of the account's own types was removed"
},
"deactivated_document_type": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document type"
},
"uuid": {
"type": "string",
"description": "Identifier for the document type. Do not show to the user unless they ask for it"
},
"customised": {
"type": "boolean",
"description": "Present, and true, only for a system document type that this account has customised. The customisation can be dropped again with update-account-document-type and `reset_to_fynk_default`"
},
"_entity_type": {
"enum": [
"document_type"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"provided_by_fynk": {
"type": "boolean",
"description": "Present, and true, only for one of fynk's built-in system document types. The account can customise or deactivate such a type but never delete it. Absent for a type the account created itself"
}
},
"description": "One of fynk's document types, now deactivated for this account. Present only when one of fynk's types was removed"
}
}
},
"annotations": {
"title": "Delete account document type",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description95/100
Delete one of the account's own metadata field definitions.
Use this tool when:
- The user explicitly asks to delete a metadata field
`metadata_uuid` comes from list-account-metadata, and the user must have made clear which field they mean - either
by naming it, or because it is the field this conversation has been about. Ask which one they mean when that is not
clear, offering the candidates by their display name.
Deleting a field also removes every value recorded for it, on every document and template in the account, and none
of that can be brought back. So deleting a field the account has recorded values for is refused until the user has
confirmed it: the refusal names the field and how many documents and templates hold a value for it - then repeat
the call with `confirmed_deleting_values_in_use: true` once they have confirmed it. Send that only in answer to
such a refusal, never as a matter of course.
Put the effect to the user in their own terms and ask before going ahead - "deleting Discount Rate would also
remove the value 12 documents hold for it, shall I go ahead?" - rather than quoting the refusal back at them. Name
the field you are about to delete either way, and never delete more than the user asked for.
Where the user wants a field to stop being filled in rather than to lose what it already holds, clear its `prompt`
with update-account-metadata instead: that takes the field out of fynk's AI analyses and leaves the values on their
documents alone.
Only the account's own fields can be deleted. fynk's system fields are provided to every account and cannot be
removed, `system_reference` fields included - use update-account-metadata to change how one of those is configured
for this account.
Deletion is refused while a bulk metadata operation is still running for the field.
The description explains the capability, when to use it, and what to expect.
Inputs97/100
Input documentation gives an agent enough context to populate the arguments.
metadata_uuid
UUID of the metadata field to delete, as returned by list-account-metadata
Clear enough to supply this argument.
confirmed_deleting_values_in_use
Only in answer to a refusal naming how many documents and templates hold a value for the field: true states that the user has been told what the deletion takes with it and has confirmed it. Leave it out otherwise
{
"type": "object",
"properties": {
"removed_values": {
"type": "object",
"properties": {
"documents": {
"type": "integer",
"description": "How many of the account's documents lost a value for this field with it"
},
"templates": {
"type": "integer",
"description": "How many of the account's templates lost a value for this field with it"
}
},
"description": "What the deletion took with the field, to report back to the user"
},
"deleted_metadata": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"type": {
"enum": [
"system_autofilled",
"system_computed",
"system",
"system_reference",
"account"
],
"type": "string",
"description": "The type of the metadata field, which defines where its value comes from.\n\naccount: Custom metadata fields that are specific to your account\nsystem_reference: Pre-defined useful metadata fields provided by fynk\nsystem_autofilled: Fields that are automatically filled by the system in response to events, like \"Signing completion date\"\nsystem_computed: Fields that are calculated by the system based on other metadata values. e.g. \"Signing duration\" is the difference between \"Signing date\" and \"Signed date\"\nsystem: Other system-provided metadata fields"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"settings": {
"type": "object",
"properties": {
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "The only currency codes this field's values may use, e.g. [\"EUR\", \"USD\"]"
}
},
"description": "Extra configuration for the field. Not present means there is nothing to restrict"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the kinds of values that can be assigned to the metadata"
},
"_entity_type": {
"enum": [
"metadata"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When value_type is \"select\" or \"multi_select\", defines the allowed values. For these types of metadata, ONLY these values are possible. Absent for every other value type"
},
"is_contract_value": {
"type": "boolean",
"description": "Whether this field counts towards a document's calculated contract value. Only meaningful when value_type is \"currency\" or \"currency_duration\""
},
"overridden_fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only for a \"system_reference\" field the account has configured differently to how fynk provides it, and absent otherwise: the update-account-metadata arguments it has changed, e.g. [\"display_name\", \"select_values\"]. Send reset_to_fynk_default to that tool to put all of them back"
},
"relevant_document_types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Names of the document types this field is meaningful for. Empty together with relevant_for_all_document_types false means the field is not in use for any document type, so charting it will likely produce no data"
},
"relevant_for_all_document_types": {
"type": "boolean",
"description": "When true, the field is meaningful for every document type and relevant_document_types is empty"
}
}
}
}
}
Original tool metadata
{
"name": "delete-account-metadata",
"title": "Delete account metadata",
"description": "Delete one of the account's own metadata field definitions.\n\nUse this tool when:\n\n- The user explicitly asks to delete a metadata field\n\n`metadata_uuid` comes from list-account-metadata, and the user must have made clear which field they mean - either\nby naming it, or because it is the field this conversation has been about. Ask which one they mean when that is not\nclear, offering the candidates by their display name.\n\nDeleting a field also removes every value recorded for it, on every document and template in the account, and none\nof that can be brought back. So deleting a field the account has recorded values for is refused until the user has\nconfirmed it: the refusal names the field and how many documents and templates hold a value for it - then repeat\nthe call with `confirmed_deleting_values_in_use: true` once they have confirmed it. Send that only in answer to\nsuch a refusal, never as a matter of course.\n\nPut the effect to the user in their own terms and ask before going ahead - \"deleting Discount Rate would also\nremove the value 12 documents hold for it, shall I go ahead?\" - rather than quoting the refusal back at them. Name\nthe field you are about to delete either way, and never delete more than the user asked for.\n\nWhere the user wants a field to stop being filled in rather than to lose what it already holds, clear its `prompt`\nwith update-account-metadata instead: that takes the field out of fynk's AI analyses and leaves the values on their\ndocuments alone.\n\nOnly the account's own fields can be deleted. fynk's system fields are provided to every account and cannot be\nremoved, `system_reference` fields included - use update-account-metadata to change how one of those is configured\nfor this account.\n\nDeletion is refused while a bulk metadata operation is still running for the field.",
"inputSchema": {
"type": "object",
"required": [
"metadata_uuid"
],
"properties": {
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field to delete, as returned by list-account-metadata"
},
"confirmed_deleting_values_in_use": {
"type": "boolean",
"description": "Only in answer to a refusal naming how many documents and templates hold a value for the field: true states that the user has been told what the deletion takes with it and has confirmed it. Leave it out otherwise"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"removed_values": {
"type": "object",
"properties": {
"documents": {
"type": "integer",
"description": "How many of the account's documents lost a value for this field with it"
},
"templates": {
"type": "integer",
"description": "How many of the account's templates lost a value for this field with it"
}
},
"description": "What the deletion took with the field, to report back to the user"
},
"deleted_metadata": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"type": {
"enum": [
"system_autofilled",
"system_computed",
"system",
"system_reference",
"account"
],
"type": "string",
"description": "The type of the metadata field, which defines where its value comes from.\n\naccount: Custom metadata fields that are specific to your account\nsystem_reference: Pre-defined useful metadata fields provided by fynk\nsystem_autofilled: Fields that are automatically filled by the system in response to events, like \"Signing completion date\"\nsystem_computed: Fields that are calculated by the system based on other metadata values. e.g. \"Signing duration\" is the difference between \"Signing date\" and \"Signed date\"\nsystem: Other system-provided metadata fields"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"settings": {
"type": "object",
"properties": {
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "The only currency codes this field's values may use, e.g. [\"EUR\", \"USD\"]"
}
},
"description": "Extra configuration for the field. Not present means there is nothing to restrict"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the kinds of values that can be assigned to the metadata"
},
"_entity_type": {
"enum": [
"metadata"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When value_type is \"select\" or \"multi_select\", defines the allowed values. For these types of metadata, ONLY these values are possible. Absent for every other value type"
},
"is_contract_value": {
"type": "boolean",
"description": "Whether this field counts towards a document's calculated contract value. Only meaningful when value_type is \"currency\" or \"currency_duration\""
},
"overridden_fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only for a \"system_reference\" field the account has configured differently to how fynk provides it, and absent otherwise: the update-account-metadata arguments it has changed, e.g. [\"display_name\", \"select_values\"]. Send reset_to_fynk_default to that tool to put all of them back"
},
"relevant_document_types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Names of the document types this field is meaningful for. Empty together with relevant_for_all_document_types false means the field is not in use for any document type, so charting it will likely produce no data"
},
"relevant_for_all_document_types": {
"type": "boolean",
"description": "When true, the field is meaningful for every document type and relevant_document_types is empty"
}
}
}
}
},
"annotations": {
"title": "Delete account metadata",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description95/100
Delete an existing tag.
Use this tool when:
- The user explicitly asks to delete a tag
The specified tag is deleted and detached from documents and templates automatically.
The description explains the capability, when to use it, and what to expect.
Inputs90/100
Input documentation gives an agent enough context to populate the arguments.
{
"type": "object",
"properties": {
"deleted_tag": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Identifier for the tag. Do not show to the user unless they ask for it"
},
"color": {
"type": "string",
"description": "Hex color code for the tag (e.g. \"#FF0000\")"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
Original tool metadata
{
"name": "delete-account-tag",
"title": "Delete account tag",
"description": "Delete an existing tag.\n\nUse this tool when:\n\n- The user explicitly asks to delete a tag\n\nThe specified tag is deleted and detached from documents and templates automatically.",
"inputSchema": {
"type": "object",
"required": [
"tag_uuid"
],
"properties": {
"tag_uuid": {
"type": "string",
"description": "UUID of the tag to delete"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"deleted_tag": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Identifier for the tag. Do not show to the user unless they ask for it"
},
"color": {
"type": "string",
"description": "Hex color code for the tag (e.g. \"#FF0000\")"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
},
"annotations": {
"title": "Delete account tag",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description96/100
Delete an existing team.
Use this tool when:
- The user explicitly asks to delete a team
The specified team is deleted and detached from documents and templates automatically. Deletion will fail if the team is assigned as an approver on any template.
The description explains the capability, when to use it, and what to expect.
Inputs88/100
Input documentation gives an agent enough context to populate the arguments.
{
"type": "object",
"properties": {
"deleted_team": {
"type": "object",
"properties": {
"icon": {
"type": "string",
"description": "Icon identifier for the team (e.g. \"UserGroupIcon\")"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
Original tool metadata
{
"name": "delete-account-team",
"title": "Delete account team",
"description": "Delete an existing team.\n\nUse this tool when:\n\n- The user explicitly asks to delete a team\n\nThe specified team is deleted and detached from documents and templates automatically. Deletion will fail if the team is assigned as an approver on any template.",
"inputSchema": {
"type": "object",
"required": [
"team_uuid"
],
"properties": {
"team_uuid": {
"type": "string",
"description": "UUID of the team to delete"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"deleted_team": {
"type": "object",
"properties": {
"icon": {
"type": "string",
"description": "Icon identifier for the team (e.g. \"UserGroupIcon\")"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
},
"annotations": {
"title": "Delete account team",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description97/100
Removes a link between two documents. Both documents stay as they are; only the recorded relationship between them goes.
Use this tool when:
- A link was made in error, e.g. the wrong contract was marked as the one renewed, or the relationship type was wrong (remove it, then create the right one with create-document-link)
- The user says two documents no longer belong together
Take link_uuid from the linked_documents section of get-document-info for document_uuid.
The description explains the capability, when to use it, and what to expect.
Inputs97/100
Input documentation gives an agent enough context to populate the arguments.
document_uuid
UUID of either of the two linked documents. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
link_uuid
The uuid of the link to remove, from the linked_documents section of get-document-info. Not the uuid of either document.
{
"type": "object",
"properties": {
"document": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
},
"description": "The document given as document_uuid, from whose side removed_link is presented"
},
"removed_link": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier of the link itself, not of either document, as taken by delete-document-link. Do not show to the user unless they ask for it"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the documents were linked"
},
"relationship": {
"enum": [
"parent_of",
"child_of",
"amendment_to",
"amended_by",
"renewal_of",
"renewed_by",
"addition_to",
"added_to_by",
"replacement_of",
"replaced_by",
"termination_of",
"terminated_by"
],
"type": "string",
"description": "How the document the link is presented from relates to linked_document, e.g. renewal_of means it renews linked_document, renewed_by means linked_document renews it"
},
"linked_document": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk. Absent when the document is deleted"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"deleted_at": {
"type": "string",
"format": "date-time",
"description": "When the document was deleted. Absent when it is not deleted. A deleted document cannot be opened: tell the user it was deleted rather than offering to open it"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Absent when the document is deleted"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
},
"description": "The other document of the link"
}
},
"description": "The link that was removed"
}
}
}
Original tool metadata
{
"name": "delete-document-link",
"title": "Delete document link",
"description": "Removes a link between two documents. Both documents stay as they are; only the recorded relationship between them goes.\n\nUse this tool when:\n\n- A link was made in error, e.g. the wrong contract was marked as the one renewed, or the relationship type was wrong (remove it, then create the right one with create-document-link)\n- The user says two documents no longer belong together\n\nTake link_uuid from the linked_documents section of get-document-info for document_uuid.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"link_uuid"
],
"properties": {
"link_uuid": {
"type": "string",
"description": "The uuid of the link to remove, from the linked_documents section of get-document-info. Not the uuid of either document."
},
"document_uuid": {
"type": "string",
"description": "UUID of either of the two linked documents. If you don't already have the document's UUID, use the list-documents tool to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"document": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
},
"description": "The document given as document_uuid, from whose side removed_link is presented"
},
"removed_link": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier of the link itself, not of either document, as taken by delete-document-link. Do not show to the user unless they ask for it"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the documents were linked"
},
"relationship": {
"enum": [
"parent_of",
"child_of",
"amendment_to",
"amended_by",
"renewal_of",
"renewed_by",
"addition_to",
"added_to_by",
"replacement_of",
"replaced_by",
"termination_of",
"terminated_by"
],
"type": "string",
"description": "How the document the link is presented from relates to linked_document, e.g. renewal_of means it renews linked_document, renewed_by means linked_document renews it"
},
"linked_document": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk. Absent when the document is deleted"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"deleted_at": {
"type": "string",
"format": "date-time",
"description": "When the document was deleted. Absent when it is not deleted. A deleted document cannot be opened: tell the user it was deleted rather than offering to open it"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Absent when the document is deleted"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
},
"description": "The other document of the link"
}
},
"description": "The link that was removed"
}
}
},
"annotations": {
"title": "Delete document link",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description96/100
Remove a signatory from a document.
Use this tool when:
- A signatory was added in error or should no longer sign and the document has not yet been signed by them
Identify the signatory to remove by `document_uuid` plus `signatory_email`. Removal may fail if the document's stage no longer permits signatory changes.
A signatory who is also an owner or collaborator (their role in the document_users section of get-document-info) keeps that access and only stops being a signatory. A signatory whose role is viewer is removed from the document entirely and loses access to it; tell the user this before removing them.
The description explains the capability, when to use it, and what to expect.
Inputs94/100
Input documentation gives an agent enough context to populate the arguments.
document_uuid
UUID of the document to remove the signatory from. If you don't already have the document's UUID, use the list-documents tool to find it.
{
"type": "object",
"properties": {
"removed_signatory": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
}
}
}
Original tool metadata
{
"name": "delete-document-signatory",
"title": "Delete document signatory",
"description": "Remove a signatory from a document.\n\nUse this tool when:\n\n- A signatory was added in error or should no longer sign and the document has not yet been signed by them\n\nIdentify the signatory to remove by `document_uuid` plus `signatory_email`. Removal may fail if the document's stage no longer permits signatory changes.\n\nA signatory who is also an owner or collaborator (their role in the document_users section of get-document-info) keeps that access and only stops being a signatory. A signatory whose role is viewer is removed from the document entirely and loses access to it; tell the user this before removing them.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"signatory_email"
],
"properties": {
"document_uuid": {
"type": "string",
"description": "UUID of the document to remove the signatory from. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"signatory_email": {
"type": "string",
"description": "Email address of the signatory to remove"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"removed_signatory": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
}
}
},
"annotations": {
"title": "Delete document signatory",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description97/100
Removes a user from a document entirely, revoking their access to it.
Use this tool when:
- Someone should no longer have access to a document, e.g. a collaborator who has left the project
- A user was added to a document by mistake
Identify the user by `document_uuid` plus `email`; the document_users section of get-document-info lists everyone with access.
This also removes the user as a signatory, if they are one. To only stop an owner or collaborator from signing, use delete-document-signatory instead. A document always keeps at least one owner, so removing its last owner is refused. Removing yourself ends your own access to the document.
The description explains the capability, when to use it, and what to expect.
Inputs94/100
Input documentation gives an agent enough context to populate the arguments.
document_uuid
UUID of the document to remove the user from. If you don't already have the document's UUID, use the list-documents tool to find it.
{
"type": "object",
"properties": {
"removed_document_user": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
}
}
}
}
}
Original tool metadata
{
"name": "delete-document-user",
"title": "Delete document user",
"description": "Removes a user from a document entirely, revoking their access to it.\n\nUse this tool when:\n\n- Someone should no longer have access to a document, e.g. a collaborator who has left the project\n- A user was added to a document by mistake\n\nIdentify the user by `document_uuid` plus `email`; the document_users section of get-document-info lists everyone with access.\n\nThis also removes the user as a signatory, if they are one. To only stop an owner or collaborator from signing, use delete-document-signatory instead. A document always keeps at least one owner, so removing its last owner is refused. Removing yourself ends your own access to the document.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Email address of the document user to remove"
},
"document_uuid": {
"type": "string",
"description": "UUID of the document to remove the user from. If you don't already have the document's UUID, use the list-documents tool to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"removed_document_user": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
}
}
}
}
},
"annotations": {
"title": "Delete document user",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description86/100
Delete a dynamic field from a template.
Use this tool when:
- The user explicitly asks to remove a dynamic field (a variable / fill-in field) from a template
A dynamic field cannot be deleted while it is referenced by a condition or a metadata value on the template; remove
those references first. Use get-template-info with include=["dynamic_fields"] to discover the dynamic fields on a
template and their UUIDs.
The description explains the capability, when to use it, and what to expect.
Inputs88/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
template_uuid
UUID of the template the dynamic field belongs to
Clear enough to supply this argument.
dynamic_field_uuid
UUID of the dynamic field to delete (use get-template-info with include=["dynamic_fields"] to find it)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"deleted_dynamic_field": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
}
}
}
Original tool metadata
{
"name": "delete-template-dynamic-field",
"title": "Delete template dynamic field",
"description": "Delete a dynamic field from a template.\n\nUse this tool when:\n\n- The user explicitly asks to remove a dynamic field (a variable / fill-in field) from a template\n\nA dynamic field cannot be deleted while it is referenced by a condition or a metadata value on the template; remove\nthose references first. Use get-template-info with include=[\"dynamic_fields\"] to discover the dynamic fields on a\ntemplate and their UUIDs.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid",
"dynamic_field_uuid"
],
"properties": {
"template_uuid": {
"type": "string",
"description": "UUID of the template the dynamic field belongs to"
},
"dynamic_field_uuid": {
"type": "string",
"description": "UUID of the dynamic field to delete (use get-template-info with include=[\"dynamic_fields\"] to find it)"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"deleted_dynamic_field": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
}
}
},
"annotations": {
"title": "Delete template dynamic field",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description88/100
Delete a party from a template.
Use this tool when:
- The user explicitly asks to remove a party from a template
A party cannot be deleted while it still has signature blocks bound to it. Delete
those signature blocks first with delete-template-signature-block. Use get-template-info to discover the parties on
a template and their UUIDs.
The description explains the capability, when to use it, and what to expect.
Inputs90/100
Input documentation gives an agent enough context to populate the arguments.
template_uuid
UUID of the template the party belongs to
Clear enough to supply this argument.
party_uuid
UUID of the party to delete (use get-template-info to find it)
{
"type": "object",
"properties": {
"deleted_party": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
Original tool metadata
{
"name": "delete-template-party",
"title": "Delete template party",
"description": "Delete a party from a template.\n\nUse this tool when:\n\n- The user explicitly asks to remove a party from a template\n\nA party cannot be deleted while it still has signature blocks bound to it. Delete\nthose signature blocks first with delete-template-signature-block. Use get-template-info to discover the parties on\na template and their UUIDs.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid",
"party_uuid"
],
"properties": {
"party_uuid": {
"type": "string",
"description": "UUID of the party to delete (use get-template-info to find it)"
},
"template_uuid": {
"type": "string",
"description": "UUID of the template the party belongs to"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"deleted_party": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
},
"annotations": {
"title": "Delete template party",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Delete a signature block from a template.
Use this tool when:
- The user explicitly asks to remove a signature block (a party's signing slot) from a template
The party the signature block belonged to remains on the template; only the signing slot is removed. Use
get-template-info with include=["signature_blocks"] to discover the signature blocks on a template and their
UUIDs.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
template_uuid
UUID of the template the signature block belongs to
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
signature_block_uuid
UUID of the signature block to delete (use get-template-info with include=["signature_blocks"] to find it)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"deleted_signature_block": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
}
}
}
Original tool metadata
{
"name": "delete-template-signature-block",
"title": "Delete template signature block",
"description": "Delete a signature block from a template.\n\nUse this tool when:\n\n- The user explicitly asks to remove a signature block (a party's signing slot) from a template\n\nThe party the signature block belonged to remains on the template; only the signing slot is removed. Use\nget-template-info with include=[\"signature_blocks\"] to discover the signature blocks on a template and their\nUUIDs.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid",
"signature_block_uuid"
],
"properties": {
"template_uuid": {
"type": "string",
"description": "UUID of the template the signature block belongs to"
},
"signature_block_uuid": {
"type": "string",
"description": "UUID of the signature block to delete (use get-template-info with include=[\"signature_blocks\"] to find it)"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"deleted_signature_block": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
}
}
},
"annotations": {
"title": "Delete template signature block",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description94/100
Remove one or more account users from a team.
Use this tool when:
- The user asks to remove people from a team
Only the account users listed in `account_user_uuids` are removed; other team members stay attached. Passing a user that is not on the team is a no-op.
The description explains the capability, when to use it, and what to expect.
Inputs88/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
team_uuid
UUID of the team to remove members from
Clear enough to supply this argument.
account_user_uuids
UUIDs of the account users to remove from the team
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"icon": {
"type": "string",
"description": "Icon identifier for the team (e.g. \"UserGroupIcon\")"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
Original tool metadata
{
"name": "detach-account-users-from-team",
"title": "Detach account users from team",
"description": "Remove one or more account users from a team.\n\nUse this tool when:\n\n- The user asks to remove people from a team\n\nOnly the account users listed in `account_user_uuids` are removed; other team members stay attached. Passing a user that is not on the team is a no-op.",
"inputSchema": {
"type": "object",
"required": [
"team_uuid",
"account_user_uuids"
],
"properties": {
"team_uuid": {
"type": "string",
"description": "UUID of the team to remove members from"
},
"account_user_uuids": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of the account users to remove from the team"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"icon": {
"type": "string",
"description": "Icon identifier for the team (e.g. \"UserGroupIcon\")"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"annotations": {
"title": "Detach account users from team",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Create a new draft document as a copy of an existing document.
Use this tool when:
- The user wants to duplicate or copy a document, e.g. to reuse a previous contract as the starting point for a new one with a different counterparty
- A new agreement should start from an existing document rather than from a template
The copy takes over the source document's content, parties, signatories, dynamic field values, metadata values, attachments, teams, tags, document type and template link. The new document always starts in the draft stage, whatever stage the source document is in, and a source document that is in signing or done is copied with its content as it was before signing started.
Change what differs in the new document afterwards with the update-* tools, e.g. update-document-party for the counterparty or update-document-dynamic-fields for amounts and dates.
The description explains the capability, when to use it, and what to expect.
Inputs98/100
Input documentation gives an agent enough context to populate the arguments.
document_uuid
UUID of the document to duplicate. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
name
The name of the new document. If omitted, the source document's name followed by " (copy)" is used
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities on the document."
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The document's conditions: rules over its dynamic fields deciding whether a passage of the document applies, and whether each currently holds. Use them to explain why a clause is or is not part of the document, and what would have to change to flip it."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the document. Attachments are part of the document itself and visible to external parties."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign the document. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the document's internal file storage, as opposed to its attachments. It includes files uploaded in the document's comments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\"."
},
"summary_text": {
"type": "string",
"description": "A summary of the document content. Absent when the document has no summary."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"document_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
},
"description": "Everyone with access to the document, each with their access level (role). Signatories are document users too, and appear here with is_signatory true."
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The document's dynamic fields and their values."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen."
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The document's metadata fields and their values."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the document that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Every signatory needs a block covering them before signing can be started."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template."
},
"external_reviewer_invitation_message": {
"type": "string",
"description": "Text fynk adds to the invitation email to a document user without a fynk user in this account, when the invitation is sent without an invitation_message of its own. Absent when no text is set."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set."
}
}
}
Original tool metadata
{
"name": "duplicate-document",
"title": "Duplicate document",
"description": "Create a new draft document as a copy of an existing document.\n\nUse this tool when:\n\n- The user wants to duplicate or copy a document, e.g. to reuse a previous contract as the starting point for a new one with a different counterparty\n- A new agreement should start from an existing document rather than from a template\n\nThe copy takes over the source document's content, parties, signatories, dynamic field values, metadata values, attachments, teams, tags, document type and template link. The new document always starts in the draft stage, whatever stage the source document is in, and a source document that is in signing or done is copied with its content as it was before signing started.\n\nChange what differs in the new document afterwards with the update-* tools, e.g. update-document-party for the counterparty or update-document-dynamic-fields for amounts and dates.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the new document. If omitted, the source document's name followed by \" (copy)\" is used"
},
"document_uuid": {
"type": "string",
"description": "UUID of the document to duplicate. If you don't already have the document's UUID, use the list-documents tool to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities on the document."
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The document's conditions: rules over its dynamic fields deciding whether a passage of the document applies, and whether each currently holds. Use them to explain why a clause is or is not part of the document, and what would have to change to flip it."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the document. Attachments are part of the document itself and visible to external parties."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign the document. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the document's internal file storage, as opposed to its attachments. It includes files uploaded in the document's comments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\"."
},
"summary_text": {
"type": "string",
"description": "A summary of the document content. Absent when the document has no summary."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"document_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
},
"description": "Everyone with access to the document, each with their access level (role). Signatories are document users too, and appear here with is_signatory true."
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The document's dynamic fields and their values."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen."
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The document's metadata fields and their values."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the document that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Every signatory needs a block covering them before signing can be started."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template."
},
"external_reviewer_invitation_message": {
"type": "string",
"description": "Text fynk adds to the invitation email to a document user without a fynk user in this account, when the invitation is sent without an invitation_message of its own. Absent when no text is set."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set."
}
}
},
"annotations": {
"title": "Duplicate document",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description97/100
Create a new template as a copy of an existing template.
Use this tool when:
- The user wants to duplicate or copy a template, e.g. to build a variant of an existing contract for another jurisdiction or business line
- A new template should start from an existing one rather than from scratch
The copy takes over the source template's content, parties, signatories, signature blocks, dynamic fields, conditions, metadata values, attachments, teams, tags, document type, locale and published state. Documents already created from the source template stay linked to the source.
Change what differs in the new template afterwards with the template tools, e.g. update-template-party, update-template-dynamic-field or replace-template-content. replace-template-content only writes a draft, so a copy of a published template has to be unpublished with set-template-published-state before its body can be rewritten.
The description explains the capability, when to use it, and what to expect.
Inputs98/100
Input documentation gives an agent enough context to populate the arguments.
template_uuid
UUID of the template to duplicate. Use list-templates to find it.
Clear enough to supply this argument.
name
The name of the new template. If omitted, the source template's name followed by " (copy)" is used
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the template in fynk. Only present when your user has template editing permission"
},
"name": {
"type": "string",
"description": "Name of the template"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the template. Do not show to the user unless they ask for it"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the template is assigned to."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities the template defines."
},
"published": {
"type": "boolean",
"description": "Indicates if the template is published (true) or a draft (false). Only published templates can be used by users without template management permission"
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The template's conditions: rules over its dynamic fields deciding whether a passage of the template applies, and whether each currently holds. Use them to explain why a clause is or is not part of the template, and what would have to change to flip it."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the template was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the template was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the template was archived. Absent when the template is not archived."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the template. Attachments are part of the template itself and visible to external parties. Absent when the requesting user may not view the template's files."
},
"description": {
"type": "string",
"description": "Description of the template. Absent when the template has none."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign documents created from this template. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party."
},
"_entity_type": {
"enum": [
"template"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the template's internal file storage, as opposed to its attachments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\". Absent when the requesting user may not view the template's files."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this template creates. Absent when the template has no type assigned"
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The template's dynamic fields and their values."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "The eIDAS assurance level that will be used when signing documents created from this template. Absent when none has been chosen."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The template's metadata fields and their values."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the template that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it."
},
"sequential_signing": {
"type": "boolean",
"description": "Whether signatories must sign in a specific order."
}
}
}
Original tool metadata
{
"name": "duplicate-template",
"title": "Duplicate template",
"description": "Create a new template as a copy of an existing template.\n\nUse this tool when:\n\n- The user wants to duplicate or copy a template, e.g. to build a variant of an existing contract for another jurisdiction or business line\n- A new template should start from an existing one rather than from scratch\n\nThe copy takes over the source template's content, parties, signatories, signature blocks, dynamic fields, conditions, metadata values, attachments, teams, tags, document type, locale and published state. Documents already created from the source template stay linked to the source.\n\nChange what differs in the new template afterwards with the template tools, e.g. update-template-party, update-template-dynamic-field or replace-template-content. replace-template-content only writes a draft, so a copy of a published template has to be unpublished with set-template-published-state before its body can be rewritten.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the new template. If omitted, the source template's name followed by \" (copy)\" is used"
},
"template_uuid": {
"type": "string",
"description": "UUID of the template to duplicate. Use list-templates to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the template in fynk. Only present when your user has template editing permission"
},
"name": {
"type": "string",
"description": "Name of the template"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the template. Do not show to the user unless they ask for it"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the template is assigned to."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities the template defines."
},
"published": {
"type": "boolean",
"description": "Indicates if the template is published (true) or a draft (false). Only published templates can be used by users without template management permission"
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The template's conditions: rules over its dynamic fields deciding whether a passage of the template applies, and whether each currently holds. Use them to explain why a clause is or is not part of the template, and what would have to change to flip it."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the template was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the template was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the template was archived. Absent when the template is not archived."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the template. Attachments are part of the template itself and visible to external parties. Absent when the requesting user may not view the template's files."
},
"description": {
"type": "string",
"description": "Description of the template. Absent when the template has none."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign documents created from this template. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party."
},
"_entity_type": {
"enum": [
"template"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the template's internal file storage, as opposed to its attachments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\". Absent when the requesting user may not view the template's files."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this template creates. Absent when the template has no type assigned"
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The template's dynamic fields and their values."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "The eIDAS assurance level that will be used when signing documents created from this template. Absent when none has been chosen."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The template's metadata fields and their values."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the template that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it."
},
"sequential_signing": {
"type": "boolean",
"description": "Whether signatories must sign in a specific order."
}
}
},
"annotations": {
"title": "Duplicate template",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description87/100
Get information about the current fynk account.
Use this tool when:
- You need details about the active account (e.g. default document locale, signature settings) before tailoring a response
- You are tailoring guidance to the account's business, and need what it reported about itself when signing up (industry, company size, the department the person who signed up works in)
For information about the current user, use get-user-info
The description explains the capability, when to use it, and what to expect.
Inputs100/100
This tool declares no inputs, so argument descriptions are not needed.
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"locale": {
"type": "string",
"description": "Default account language, e.g. en-GB, de-AT. This language will be preselected for newly created documents/templates. fynk will generate AI summaries in this language. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"status": {
"enum": [
"free",
"incomplete",
"internal",
"paid",
"suspended",
"trial"
],
"type": "string",
"description": "The account's subscription status. May fence access to certain app features"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the account was created"
},
"_entity_type": {
"enum": [
"account"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"sso_enforced": {
"type": "boolean",
"description": "If true, account users must authenticate via SSO rather than logging in with a password"
},
"trial_ends_at": {
"type": "string",
"format": "date-time",
"description": "If the account is in 'trial' status, when the trial ends and the account reverts to 'free'"
},
"onboarding_profile": {
"type": "object",
"properties": {
"origin": {
"type": "string",
"description": "How the account came into existence (e.g. self-service registration, via the HubSpot marketplace). Records the signup channel and cannot be changed"
},
"industry": {
"type": "string",
"description": "Industry the account reported operating in"
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When any of this information was last changed"
},
"_entity_type": {
"enum": [
"account_profile"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"company_size": {
"type": "string",
"description": "Headcount bracket the account reported for its company"
},
"sub_industry": {
"type": "string",
"description": "More specific sector within `industry`, e.g. \"law_practice\" under \"legal\""
},
"signup_department": {
"type": "string",
"description": "Department the person who signed the account up works in, e.g. legal, sales"
}
},
"description": "What the account told us about its company when signing up. Self-reported and unverified - use it to tailor guidance, not as authoritative facts about the company. Fields that are not set are omitted"
},
"default_comment_scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Controls the default visibility of comments and proposals in documents"
},
"default_signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "The default eIDAS assurance level to use when signing documents. May be overridden on individual documents"
},
"finished_onboarding_at": {
"type": "string",
"format": "date-time",
"description": "When the account completed the initial onboarding flow. Absent if onboarding has not yet been finished"
},
"require_team_assignment": {
"type": "boolean",
"description": "When true, all documents, imports, and automations must have at least one team assigned"
},
"auto_apply_ai_analysis_by_default": {
"type": "boolean",
"description": "When true, AI analysis results will be automatically applied when importing documents"
},
"two_factor_authentication_enabled": {
"type": "boolean",
"description": "If true, users in the account must enable 2FA and use it when logging in"
},
"require_template_for_document_creation": {
"type": "boolean",
"description": "When true, a template must be selected when creating a document from scratch or uploading a PDF to sign"
}
}
}
Original tool metadata
{
"name": "get-account-info",
"title": "Get account info",
"description": "Get information about the current fynk account.\n\nUse this tool when:\n\n- You need details about the active account (e.g. default document locale, signature settings) before tailoring a response\n- You are tailoring guidance to the account's business, and need what it reported about itself when signing up (industry, company size, the department the person who signed up works in)\n\nFor information about the current user, use get-user-info",
"inputSchema": {
"type": "object",
"properties": {}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"locale": {
"type": "string",
"description": "Default account language, e.g. en-GB, de-AT. This language will be preselected for newly created documents/templates. fynk will generate AI summaries in this language. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"status": {
"enum": [
"free",
"incomplete",
"internal",
"paid",
"suspended",
"trial"
],
"type": "string",
"description": "The account's subscription status. May fence access to certain app features"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the account was created"
},
"_entity_type": {
"enum": [
"account"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"sso_enforced": {
"type": "boolean",
"description": "If true, account users must authenticate via SSO rather than logging in with a password"
},
"trial_ends_at": {
"type": "string",
"format": "date-time",
"description": "If the account is in 'trial' status, when the trial ends and the account reverts to 'free'"
},
"onboarding_profile": {
"type": "object",
"properties": {
"origin": {
"type": "string",
"description": "How the account came into existence (e.g. self-service registration, via the HubSpot marketplace). Records the signup channel and cannot be changed"
},
"industry": {
"type": "string",
"description": "Industry the account reported operating in"
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When any of this information was last changed"
},
"_entity_type": {
"enum": [
"account_profile"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"company_size": {
"type": "string",
"description": "Headcount bracket the account reported for its company"
},
"sub_industry": {
"type": "string",
"description": "More specific sector within `industry`, e.g. \"law_practice\" under \"legal\""
},
"signup_department": {
"type": "string",
"description": "Department the person who signed the account up works in, e.g. legal, sales"
}
},
"description": "What the account told us about its company when signing up. Self-reported and unverified - use it to tailor guidance, not as authoritative facts about the company. Fields that are not set are omitted"
},
"default_comment_scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Controls the default visibility of comments and proposals in documents"
},
"default_signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "The default eIDAS assurance level to use when signing documents. May be overridden on individual documents"
},
"finished_onboarding_at": {
"type": "string",
"format": "date-time",
"description": "When the account completed the initial onboarding flow. Absent if onboarding has not yet been finished"
},
"require_team_assignment": {
"type": "boolean",
"description": "When true, all documents, imports, and automations must have at least one team assigned"
},
"auto_apply_ai_analysis_by_default": {
"type": "boolean",
"description": "When true, AI analysis results will be automatically applied when importing documents"
},
"two_factor_authentication_enabled": {
"type": "boolean",
"description": "If true, users in the account must enable 2FA and use it when logging in"
},
"require_template_for_document_creation": {
"type": "boolean",
"description": "When true, a template must be selected when creating a document from scratch or uploading a PDF to sign"
}
}
},
"annotations": {
"title": "Get account info",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Gets information about a document.
Use this tool when:
- You have a document's UUID and want to know more details about it. e.g. who is signing it, what values its dynamic fields or metadata have, etc
- You need the documents linked to a document, e.g. the contract it renews or the amendments made to it (include linked_documents)
Called with no include parameter, returns the document's parties, teams, details, signatories, signing settings and workflow state. Use include to name the sections you want instead - among them dynamic_fields, conditions, linked_documents, metadata_values, signature_blocks, summary_text, tags, timestamps, attachments, stored_files, document_users and ai_analysis - and the response carries exactly those, so a question about one aspect of a document costs one section rather than the whole document.
The document_users section lists everyone with access to the document, signatories included, each with their access level (owner, collaborator or viewer) and whether they have been invited, plus the text fynk adds to invitation emails to people outside the account. Use it to answer questions like "who has access to this document?" or "has Emily been invited yet?".
The stored_files section holds what the app shows as "Internal file storage", separate from attachments: call them that when talking to the user, never "stored files".
The ai_analysis section reports the state of the AI analysis that creating a document from a PDF starts in the background. Request it after creating a document from a PDF and before relying on the document's parties, metadata or summary: until its status is applied, they do not carry the analysis results.
This tool covers a single document. Whenever possible avoid calling it once per document to gather the same information about several documents: list-documents returns parties, teams, tags and timestamps for a whole list via its include parameter, and specific metadata values for a whole list via its include_metadata parameter. It can be restricted to the UUIDs you already have, to get exactly the documents you are interested in.
The default response lists both the document's parties (the contracting entities, frequently organizations) and its signatories (the individual people who sign). These are distinct: a person often signs on behalf of a party (e.g. a business) without appearing as a party, so consider the signatories — not just the parties — when answering whether a specific named person is involved in or signs a document.
The dynamic_field_visibility argument narrows the dynamic_fields section to the fields that appear in the document itself, or to the ones that do not. A field belonging to a document is not necessarily written into it: fields get added and then never placed in the text, or the passage that referred to one gets rewritten, leaving a value no reader ever sees. Not every not_visible field is idle, though. Some exist only to drive a condition deciding which clauses the document shows, so they shape the contract without appearing in it (you can use the "conditions" include option to see which fields drive which conditions). Others sit inside a passage that a currently inactive condition removes, so they would appear if that condition flipped. Use "visible" when the question is about what the contract currently says. dynamic_field_visibility has no effect unless dynamic_fields is among the returned sections.
The workflow_state object - in the response by default, and requestable via include alongside other sections - describes what can currently be done with the document: whether the signing process can be started at all, which stages the document can be moved on to and everything standing in the way of each of them (stage_transitions, whose blockers say why), whether the requesting user can start signing, and — when a checkpoint blocks progress — who still needs to approve. Use it to answer questions like "why can't I sign this yet?", "what is blocking this document?" or "who still has to sign?", answering with the full list rather than one problem at a time. It is technical state, not display content: relay it to the user as natural-language prose and never echo raw field names or snake_case values.
The description explains the capability, when to use it, and what to expect.
Inputs98/100
Input documentation gives an agent enough context to populate the arguments.
document_uuid
UUID of the document to get information about. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
include
The sections the response carries, on top of the document's identity (uuid, name, stage, document type, url) which it always carries. Naming sections means exactly those: ask for one section and you pay for one, rather than for the whole document. If omitted, these are returned: parties, teams, details, signatories, signing_settings, workflow_state.
Clear enough to supply this argument.
dynamic_field_visibility
Narrows the dynamic_fields section to the fields that appear in the document's content ("visible") or to the ones that do not ("not_visible"). Defaults to "all", which returns every field. Only has an effect when dynamic_fields is among the returned sections.
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to. Only present when the 'teams' section is requested via the include parameter."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code. Only present when the 'details' section is requested via the include parameter."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created. Only present when the 'details' section is requested via the include parameter."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities on the document. Only present when the 'parties' section is requested via the include parameter."
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The document's conditions: rules over its dynamic fields deciding whether a passage of the document applies, and whether each currently holds. Use them to explain why a clause is or is not part of the document, and what would have to change to flip it. Only present when the 'conditions' section is requested via the include parameter."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created. Only present when the 'timestamps' section is requested via the include parameter."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated. Only present when the 'timestamps' section is requested via the include parameter."
},
"ai_analysis": {
"type": "object",
"properties": {
"status": {
"enum": [
"created",
"pending",
"executing",
"review",
"reviewed",
"applied",
"failed",
"failed_encrypted",
"failed_too_many_pages",
"expired",
"unprocessable",
"document_deleted"
],
"type": "string",
"description": "Where the analysis stands. created, pending, executing: still in progress. review: finished, but the proposed changes wait for a user to review and apply them in the app (with auto_apply true, the automatic apply could not run, e.g. because the document is locked). reviewed: reviewed by a user, not yet applied. applied: the results are on the document. failed, failed_encrypted (password-protected PDF), failed_too_many_pages, unprocessable, expired, document_deleted: no results. This is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'the analysis failed because the PDF is password protected' instead of mentioning 'failed_encrypted')."
},
"failed_at": {
"type": "string",
"format": "date-time",
"description": "When the analysis failed. Absent when it has not failed, and also for some failures such as failed_encrypted and failed_too_many_pages, so read status to tell whether it failed."
},
"applied_at": {
"type": "string",
"format": "date-time",
"description": "When the results were applied to the document. Absent when they have not been applied."
},
"auto_apply": {
"type": "boolean",
"description": "When true, the results are applied to the document automatically once the analysis finishes. When false, a user has to review and apply them in the app."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the analysis was started."
},
"completed_at": {
"type": "string",
"format": "date-time",
"description": "When the analysis finished and its proposed changes became available. Absent while the analysis is in progress and when it produced no results. Read status, not this field, to tell whether the analysis succeeded."
}
},
"description": "The state of the document's latest AI analysis, which reads a PDF to fill in the document's parties, metadata, summary, etc. Creating a document from a PDF starts one, and it runs asynchronously. Absent when the document has never been analysed. Only present when the 'ai_analysis' section is requested via the include parameter."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived. Only present when the 'timestamps' section is requested via the include parameter."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the document. Attachments are part of the document itself and visible to external parties. Only present when the 'attachments' section is requested via the include parameter."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign the document. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party. Only present when the 'signatories' section is requested via the include parameter."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the document's internal file storage, as opposed to its attachments. It includes files uploaded in the document's comments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\". Only present when the 'stored_files' section is requested via the include parameter."
},
"summary_text": {
"type": "string",
"description": "A summary of the document content. Absent when the document has no summary. Only present when the 'summary_text' section is requested via the include parameter."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"document_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
},
"description": "Everyone with access to the document, each with their access level (role). Signatories are document users too, and appear here with is_signatory true. Only present when the 'document_users' section is requested via the include parameter."
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The document's dynamic fields and their values. Only present when the 'dynamic_fields' section is requested via the include parameter."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen. Only present when the 'signing_settings' section is requested via the include parameter."
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory'). Only present when the 'workflow_state' section is requested via the include parameter."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The document's metadata fields and their values. Only present when the 'metadata_values' section is requested via the include parameter."
},
"linked_documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier of the link itself, not of either document, as taken by delete-document-link. Do not show to the user unless they ask for it"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the documents were linked"
},
"relationship": {
"enum": [
"parent_of",
"child_of",
"amendment_to",
"amended_by",
"renewal_of",
"renewed_by",
"addition_to",
"added_to_by",
"replacement_of",
"replaced_by",
"termination_of",
"terminated_by"
],
"type": "string",
"description": "How the document the link is presented from relates to linked_document, e.g. renewal_of means it renews linked_document, renewed_by means linked_document renews it"
},
"linked_document": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk. Absent when the document is deleted"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"deleted_at": {
"type": "string",
"format": "date-time",
"description": "When the document was deleted. Absent when it is not deleted. A deleted document cannot be opened: tell the user it was deleted rather than offering to open it"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Absent when the document is deleted"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
},
"description": "The other document of the link"
}
}
},
"description": "Other documents this document is linked to, e.g. the contract it renews or the amendments made to it, each with the relationship read from this document's side. Leaves out linked documents the user cannot access. Only present when the 'linked_documents' section is requested via the include parameter."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the document that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Every signatory needs a block covering them before signing can be started. Only present when the 'signature_blocks' section is requested via the include parameter."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order. Only present when the 'signing_settings' section is requested via the include parameter."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template. Only present when the 'details' section is requested via the include parameter."
},
"external_reviewer_invitation_message": {
"type": "string",
"description": "Text fynk adds to the invitation email to a document user without a fynk user in this account, when the invitation is sent without an invitation_message of its own. Absent when no text is set. Only present when the 'document_users' section is requested via the include parameter."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set. Only present when the 'signing_settings' section is requested via the include parameter."
}
}
}
Original tool metadata
{
"name": "get-document-info",
"title": "Get document info",
"description": "Gets information about a document.\n\nUse this tool when:\n\n- You have a document's UUID and want to know more details about it. e.g. who is signing it, what values its dynamic fields or metadata have, etc\n- You need the documents linked to a document, e.g. the contract it renews or the amendments made to it (include linked_documents)\n\nCalled with no include parameter, returns the document's parties, teams, details, signatories, signing settings and workflow state. Use include to name the sections you want instead - among them dynamic_fields, conditions, linked_documents, metadata_values, signature_blocks, summary_text, tags, timestamps, attachments, stored_files, document_users and ai_analysis - and the response carries exactly those, so a question about one aspect of a document costs one section rather than the whole document.\n\nThe document_users section lists everyone with access to the document, signatories included, each with their access level (owner, collaborator or viewer) and whether they have been invited, plus the text fynk adds to invitation emails to people outside the account. Use it to answer questions like \"who has access to this document?\" or \"has Emily been invited yet?\".\n\nThe stored_files section holds what the app shows as \"Internal file storage\", separate from attachments: call them that when talking to the user, never \"stored files\".\n\nThe ai_analysis section reports the state of the AI analysis that creating a document from a PDF starts in the background. Request it after creating a document from a PDF and before relying on the document's parties, metadata or summary: until its status is applied, they do not carry the analysis results.\n\nThis tool covers a single document. Whenever possible avoid calling it once per document to gather the same information about several documents: list-documents returns parties, teams, tags and timestamps for a whole list via its include parameter, and specific metadata values for a whole list via its include_metadata parameter. It can be restricted to the UUIDs you already have, to get exactly the documents you are interested in.\n\nThe default response lists both the document's parties (the contracting entities, frequently organizations) and its signatories (the individual people who sign). These are distinct: a person often signs on behalf of a party (e.g. a business) without appearing as a party, so consider the signatories — not just the parties — when answering whether a specific named person is involved in or signs a document.\n\nThe dynamic_field_visibility argument narrows the dynamic_fields section to the fields that appear in the document itself, or to the ones that do not. A field belonging to a document is not necessarily written into it: fields get added and then never placed in the text, or the passage that referred to one gets rewritten, leaving a value no reader ever sees. Not every not_visible field is idle, though. Some exist only to drive a condition deciding which clauses the document shows, so they shape the contract without appearing in it (you can use the \"conditions\" include option to see which fields drive which conditions). Others sit inside a passage that a currently inactive condition removes, so they would appear if that condition flipped. Use \"visible\" when the question is about what the contract currently says. dynamic_field_visibility has no effect unless dynamic_fields is among the returned sections.\n\nThe workflow_state object - in the response by default, and requestable via include alongside other sections - describes what can currently be done with the document: whether the signing process can be started at all, which stages the document can be moved on to and everything standing in the way of each of them (stage_transitions, whose blockers say why), whether the requesting user can start signing, and — when a checkpoint blocks progress — who still needs to approve. Use it to answer questions like \"why can't I sign this yet?\", \"what is blocking this document?\" or \"who still has to sign?\", answering with the full list rather than one problem at a time. It is technical state, not display content: relay it to the user as natural-language prose and never echo raw field names or snake_case values.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"include": {
"type": "array",
"items": {
"enum": [
"parties",
"teams",
"tags",
"details",
"signing_settings",
"timestamps",
"ai_analysis",
"attachments",
"conditions",
"document_users",
"dynamic_fields",
"linked_documents",
"metadata_values",
"signatories",
"signature_blocks",
"stored_files",
"summary_text",
"workflow_state"
],
"type": "string"
},
"description": "The sections the response carries, on top of the document's identity (uuid, name, stage, document type, url) which it always carries. Naming sections means exactly those: ask for one section and you pay for one, rather than for the whole document. If omitted, these are returned: parties, teams, details, signatories, signing_settings, workflow_state."
},
"document_uuid": {
"type": "string",
"description": "UUID of the document to get information about. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"dynamic_field_visibility": {
"enum": [
"all",
"visible",
"not_visible"
],
"type": "string",
"description": "Narrows the dynamic_fields section to the fields that appear in the document's content (\"visible\") or to the ones that do not (\"not_visible\"). Defaults to \"all\", which returns every field. Only has an effect when dynamic_fields is among the returned sections."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to. Only present when the 'teams' section is requested via the include parameter."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code. Only present when the 'details' section is requested via the include parameter."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created. Only present when the 'details' section is requested via the include parameter."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities on the document. Only present when the 'parties' section is requested via the include parameter."
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The document's conditions: rules over its dynamic fields deciding whether a passage of the document applies, and whether each currently holds. Use them to explain why a clause is or is not part of the document, and what would have to change to flip it. Only present when the 'conditions' section is requested via the include parameter."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created. Only present when the 'timestamps' section is requested via the include parameter."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated. Only present when the 'timestamps' section is requested via the include parameter."
},
"ai_analysis": {
"type": "object",
"properties": {
"status": {
"enum": [
"created",
"pending",
"executing",
"review",
"reviewed",
"applied",
"failed",
"failed_encrypted",
"failed_too_many_pages",
"expired",
"unprocessable",
"document_deleted"
],
"type": "string",
"description": "Where the analysis stands. created, pending, executing: still in progress. review: finished, but the proposed changes wait for a user to review and apply them in the app (with auto_apply true, the automatic apply could not run, e.g. because the document is locked). reviewed: reviewed by a user, not yet applied. applied: the results are on the document. failed, failed_encrypted (password-protected PDF), failed_too_many_pages, unprocessable, expired, document_deleted: no results. This is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'the analysis failed because the PDF is password protected' instead of mentioning 'failed_encrypted')."
},
"failed_at": {
"type": "string",
"format": "date-time",
"description": "When the analysis failed. Absent when it has not failed, and also for some failures such as failed_encrypted and failed_too_many_pages, so read status to tell whether it failed."
},
"applied_at": {
"type": "string",
"format": "date-time",
"description": "When the results were applied to the document. Absent when they have not been applied."
},
"auto_apply": {
"type": "boolean",
"description": "When true, the results are applied to the document automatically once the analysis finishes. When false, a user has to review and apply them in the app."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the analysis was started."
},
"completed_at": {
"type": "string",
"format": "date-time",
"description": "When the analysis finished and its proposed changes became available. Absent while the analysis is in progress and when it produced no results. Read status, not this field, to tell whether the analysis succeeded."
}
},
"description": "The state of the document's latest AI analysis, which reads a PDF to fill in the document's parties, metadata, summary, etc. Creating a document from a PDF starts one, and it runs asynchronously. Absent when the document has never been analysed. Only present when the 'ai_analysis' section is requested via the include parameter."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived. Only present when the 'timestamps' section is requested via the include parameter."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the document. Attachments are part of the document itself and visible to external parties. Only present when the 'attachments' section is requested via the include parameter."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign the document. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party. Only present when the 'signatories' section is requested via the include parameter."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the document's internal file storage, as opposed to its attachments. It includes files uploaded in the document's comments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\". Only present when the 'stored_files' section is requested via the include parameter."
},
"summary_text": {
"type": "string",
"description": "A summary of the document content. Absent when the document has no summary. Only present when the 'summary_text' section is requested via the include parameter."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"document_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
},
"description": "Everyone with access to the document, each with their access level (role). Signatories are document users too, and appear here with is_signatory true. Only present when the 'document_users' section is requested via the include parameter."
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The document's dynamic fields and their values. Only present when the 'dynamic_fields' section is requested via the include parameter."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen. Only present when the 'signing_settings' section is requested via the include parameter."
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory'). Only present when the 'workflow_state' section is requested via the include parameter."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The document's metadata fields and their values. Only present when the 'metadata_values' section is requested via the include parameter."
},
"linked_documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier of the link itself, not of either document, as taken by delete-document-link. Do not show to the user unless they ask for it"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the documents were linked"
},
"relationship": {
"enum": [
"parent_of",
"child_of",
"amendment_to",
"amended_by",
"renewal_of",
"renewed_by",
"addition_to",
"added_to_by",
"replacement_of",
"replaced_by",
"termination_of",
"terminated_by"
],
"type": "string",
"description": "How the document the link is presented from relates to linked_document, e.g. renewal_of means it renews linked_document, renewed_by means linked_document renews it"
},
"linked_document": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk. Absent when the document is deleted"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"deleted_at": {
"type": "string",
"format": "date-time",
"description": "When the document was deleted. Absent when it is not deleted. A deleted document cannot be opened: tell the user it was deleted rather than offering to open it"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Absent when the document is deleted"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
},
"description": "The other document of the link"
}
}
},
"description": "Other documents this document is linked to, e.g. the contract it renews or the amendments made to it, each with the relationship read from this document's side. Leaves out linked documents the user cannot access. Only present when the 'linked_documents' section is requested via the include parameter."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the document that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Every signatory needs a block covering them before signing can be started. Only present when the 'signature_blocks' section is requested via the include parameter."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order. Only present when the 'signing_settings' section is requested via the include parameter."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template. Only present when the 'details' section is requested via the include parameter."
},
"external_reviewer_invitation_message": {
"type": "string",
"description": "Text fynk adds to the invitation email to a document user without a fynk user in this account, when the invitation is sent without an invitation_message of its own. Absent when no text is set. Only present when the 'document_users' section is requested via the include parameter."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set. Only present when the 'signing_settings' section is requested via the include parameter."
}
}
},
"annotations": {
"title": "Get document info",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Reads a document's plain text in character-based chunks.
Use this tool when:
- You need to read a full document (e.g., to summarize, review, or compare wording).
- You want to read more context around a match found by search-document-text.
For a specific clause or term, call search-document-text first—it is much cheaper than reading the whole document. Then pass an offset slightly before the match (e.g., 1,000 characters earlier, or 0 if the match is nearer the start) and a max_chars of a few thousand.
Works for all documents: authored in fynk, signed, or uploaded as a PDF, whose text comes from OCR with one line per paragraph.
Chunking & pagination:
- Chunks are character slices and do not correspond to printed or PDF pages. Never cite page numbers; quote the passage or name its clause instead.
- Each response includes total_chars, the returned range (offset to end_offset), and next_offset if more text remains. Pass next_offset as offset to continue.
- Chunks break at paragraph or word boundaries, so a response may be shorter than max_chars.
- Check total_chars on the first chunk before paging through the rest; only read an entire document when the task requires it.
Consistency & errors:
- When paging or following up on search-document-text, pass the previous text_hash. If the document changed in between, the call fails instead of returning mismatched text; start again without text_hash: search again if the offset came from a search, otherwise read from offset 0.
- If there is no text to read yet (text recognition of a PDF still running, or a new document's text not yet prepared) or none at all (password-protected PDF, unreadable scan), the call fails with a message giving the cause and whether retrying later can help.
- The text follows an edit within a few seconds, so right after changing a document it may still show the previous wording.
The description explains the capability, when to use it, and what to expect.
Inputs81/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_uuid
UUID of the document to read. If you don't have it, call list-documents to find it.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
offset
Character offset to start reading at: 0 for the start, next_offset from a previous chunk, or an offset near a match from search-document-text.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
max_chars
Maximum characters to return (may return fewer to end on a paragraph or word boundary).
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
text_hash
The text_hash from a previous get-document-text or search-document-text response. Fails if the document's text has changed since.
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The text of this chunk."
},
"offset": {
"type": "integer",
"description": "The character offset this chunk starts at."
},
"text_hash": {
"type": "string",
"description": "Identifies the version of the text this chunk came from. Pass it back when reading on."
},
"end_offset": {
"type": "integer",
"description": "The character offset this chunk ends at (exclusive)."
},
"next_offset": {
"type": "integer",
"description": "The offset to read the next chunk from. Absent when this chunk reaches the end of the text."
},
"total_chars": {
"type": "integer",
"description": "The length of the document's whole text, in characters."
}
}
}
Original tool metadata
{
"name": "get-document-text",
"title": "Get document text",
"description": "Reads a document's plain text in character-based chunks.\n\nUse this tool when:\n\n- You need to read a full document (e.g., to summarize, review, or compare wording).\n- You want to read more context around a match found by search-document-text.\n\nFor a specific clause or term, call search-document-text first—it is much cheaper than reading the whole document. Then pass an offset slightly before the match (e.g., 1,000 characters earlier, or 0 if the match is nearer the start) and a max_chars of a few thousand.\n\nWorks for all documents: authored in fynk, signed, or uploaded as a PDF, whose text comes from OCR with one line per paragraph.\n\nChunking & pagination:\n\n- Chunks are character slices and do not correspond to printed or PDF pages. Never cite page numbers; quote the passage or name its clause instead.\n- Each response includes total_chars, the returned range (offset to end_offset), and next_offset if more text remains. Pass next_offset as offset to continue.\n- Chunks break at paragraph or word boundaries, so a response may be shorter than max_chars.\n- Check total_chars on the first chunk before paging through the rest; only read an entire document when the task requires it.\n\nConsistency & errors:\n\n- When paging or following up on search-document-text, pass the previous text_hash. If the document changed in between, the call fails instead of returning mismatched text; start again without text_hash: search again if the offset came from a search, otherwise read from offset 0.\n- If there is no text to read yet (text recognition of a PDF still running, or a new document's text not yet prepared) or none at all (password-protected PDF, unreadable scan), the call fails with a message giving the cause and whether retrying later can help.\n- The text follows an edit within a few seconds, so right after changing a document it may still show the previous wording.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"offset": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "Character offset to start reading at: 0 for the start, next_offset from a previous chunk, or an offset near a match from search-document-text."
},
"max_chars": {
"type": "integer",
"default": 40000,
"maximum": 80000,
"minimum": 1000,
"description": "Maximum characters to return (may return fewer to end on a paragraph or word boundary)."
},
"text_hash": {
"type": "string",
"description": "The text_hash from a previous get-document-text or search-document-text response. Fails if the document's text has changed since."
},
"document_uuid": {
"type": "string",
"format": "uuid",
"description": "UUID of the document to read. If you don't have it, call list-documents to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The text of this chunk."
},
"offset": {
"type": "integer",
"description": "The character offset this chunk starts at."
},
"text_hash": {
"type": "string",
"description": "Identifies the version of the text this chunk came from. Pass it back when reading on."
},
"end_offset": {
"type": "integer",
"description": "The character offset this chunk ends at (exclusive)."
},
"next_offset": {
"type": "integer",
"description": "The offset to read the next chunk from. Absent when this chunk reaches the end of the text."
},
"total_chars": {
"type": "integer",
"description": "The length of the document's whole text, in characters."
}
}
},
"annotations": {
"title": "Get document text",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Get a download URL for the latest revision of a document as a PDF.
Use this tool when:
- The user wants to download the current state of a document as a PDF
- You need a PDF link to share with the user for review
Returns the URL as plain text. The URL is short-lived; fetch a new one if it expires before download.
The description explains the capability, when to use it, and what to expect.
Inputs97/100
Input documentation gives an agent enough context to populate the arguments.
document_uuid
UUID of the document to fetch the PDF for. If you don't already have the document's UUID, use the list-documents tool to find it.
No output schema is declared. Add one for structured results so clients can interpret returned fields.
Not declared
Original tool metadata
{
"name": "get-latest-document-pdf-url",
"title": "Get latest document PDF URL",
"description": "Get a download URL for the latest revision of a document as a PDF.\n\nUse this tool when:\n\n- The user wants to download the current state of a document as a PDF\n- You need a PDF link to share with the user for review\n\nReturns the URL as plain text. The URL is short-lived; fetch a new one if it expires before download.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"document_uuid": {
"type": "string",
"description": "UUID of the document to fetch the PDF for. If you don't already have the document's UUID, use the list-documents tool to find it."
}
}
},
"annotations": {
"title": "Get latest document PDF URL",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Returns the content of a template serialised as HTML.
Use this tool when:
- You want to read or navigate the content of a template
- You want to understand the structure of a template before editing it
The HTML uses semantic data-* attributes for fynk-specific nodes. Addressable nodes (paragraphs,
headings, etc.) carry a data-uuid attribute that can be used to target them in subsequent operations.
- Numbered clauses are ordered list nodes, `<div data-list data-kind="ordered">`, holding the clause
text and any nested sub-clauses. Their computed number is shown read-only in `data-number` (e.g.
"1.1."); numbers are never part of the text.
- `<span data-section-ref data-uuid="...">` is a cross-reference to the list node with that data-uuid,
rendering its computed number.
- `<span data-dynamic-field data-ref-uuid="...">` is a dynamic field (fill-in placeholder).
- `<span data-party data-ref-uuid="..." data-format="...">` renders a party's name, reference name or
address, as data-format says.
- `<div data-signatures>` is a signature container, holding one
`<span data-signature-block data-ref-uuid="...">` per signature block.
- Images, dynamic tables and signing vote blocks appear as empty reference tags; their contents are
held outside the HTML.
- Text formatting is stated inline as style. Block alignment is stated as `data-text-align`; a block's
margins, indent and line height are not in the HTML.
get-template-info resolves the ref_uuids of dynamic fields, parties and signature blocks.
Only available for templates with a prosemirror_data content type. Returns an error for PDF templates.
For the full format, e.g. when interpreting clause numbering or preparing a rewrite, read the fynk://articles/working-with-template-content resource.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
template_uuid
UUID of the template to render as HTML
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"html": {
"type": "string",
"description": "The template content serialised as HTML. Fynk-specific nodes use data-* attributes (e.g. data-dynamic-field, data-party, data-signatures). Addressable nodes carry a data-uuid attribute."
}
}
}
Original tool metadata
{
"name": "get-template-html",
"title": "Get template HTML",
"description": "Returns the content of a template serialised as HTML.\n\nUse this tool when:\n\n- You want to read or navigate the content of a template\n- You want to understand the structure of a template before editing it\n\nThe HTML uses semantic data-* attributes for fynk-specific nodes. Addressable nodes (paragraphs,\nheadings, etc.) carry a data-uuid attribute that can be used to target them in subsequent operations.\n\n- Numbered clauses are ordered list nodes, `<div data-list data-kind=\"ordered\">`, holding the clause\n text and any nested sub-clauses. Their computed number is shown read-only in `data-number` (e.g.\n \"1.1.\"); numbers are never part of the text.\n- `<span data-section-ref data-uuid=\"...\">` is a cross-reference to the list node with that data-uuid,\n rendering its computed number.\n- `<span data-dynamic-field data-ref-uuid=\"...\">` is a dynamic field (fill-in placeholder).\n- `<span data-party data-ref-uuid=\"...\" data-format=\"...\">` renders a party's name, reference name or\n address, as data-format says.\n- `<div data-signatures>` is a signature container, holding one\n `<span data-signature-block data-ref-uuid=\"...\">` per signature block.\n- Images, dynamic tables and signing vote blocks appear as empty reference tags; their contents are\n held outside the HTML.\n- Text formatting is stated inline as style. Block alignment is stated as `data-text-align`; a block's\n margins, indent and line height are not in the HTML.\n\nget-template-info resolves the ref_uuids of dynamic fields, parties and signature blocks.\n\nOnly available for templates with a prosemirror_data content type. Returns an error for PDF templates.\n\nFor the full format, e.g. when interpreting clause numbering or preparing a rewrite, read the fynk://articles/working-with-template-content resource.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid"
],
"properties": {
"template_uuid": {
"type": "string",
"description": "UUID of the template to render as HTML"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"html": {
"type": "string",
"description": "The template content serialised as HTML. Fynk-specific nodes use data-* attributes (e.g. data-dynamic-field, data-party, data-signatures). Addressable nodes carry a data-uuid attribute."
}
}
},
"annotations": {
"title": "Get template HTML",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description97/100
Gets information about a template.
Use this tool when:
- You have a template's UUID and want to know more details about it.
- e.g. when you want to create a document from the template and need to know which parties, dynamic fields, etc are available in the template.
Called with no include parameter, returns the template's identity, its parties, its teams, its description and its signing settings. Use include to name the sections you want instead - among them signatories, signature_blocks, dynamic_fields, conditions, metadata_values, tags, timestamps, attachments and stored_files - and the response carries exactly those, so a question about one aspect of a template costs one section rather than the whole template.
The stored_files section holds what the app shows as "Internal file storage", separate from attachments: call them that when talking to the user, never "stored files".
The description explains the capability, when to use it, and what to expect.
Inputs96/100
Input documentation gives an agent enough context to populate the arguments.
template_uuid
UUID of the template to get information about
Clear enough to supply this argument.
include
The sections the response carries, on top of the template's identity (uuid, name, locale, document type, published, url), which it always carries. Naming sections means exactly those: ask for one section and you pay for one, rather than for the whole template. If omitted, these are returned: parties, teams, details, signing_settings.
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the template in fynk. Only present when your user has template editing permission"
},
"name": {
"type": "string",
"description": "Name of the template"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the template. Do not show to the user unless they ask for it"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the template is assigned to. Only present when the 'teams' section is requested via the include parameter."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities the template defines. Only present when the 'parties' section is requested via the include parameter."
},
"published": {
"type": "boolean",
"description": "Indicates if the template is published (true) or a draft (false). Only published templates can be used by users without template management permission"
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The template's conditions: rules over its dynamic fields deciding whether a passage of the template applies, and whether each currently holds. Use them to explain why a clause is or is not part of the template, and what would have to change to flip it. Only present when the 'conditions' section is requested via the include parameter."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the template was created. Only present when the 'timestamps' section is requested via the include parameter."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the template was last updated. Only present when the 'timestamps' section is requested via the include parameter."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the template was archived. Absent when the template is not archived. Only present when the 'timestamps' section is requested via the include parameter."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the template. Attachments are part of the template itself and visible to external parties. Absent when the requesting user may not view the template's files. Only present when the 'attachments' section is requested via the include parameter."
},
"description": {
"type": "string",
"description": "Description of the template. Absent when the template has none. Only present when the 'details' section is requested via the include parameter."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign documents created from this template. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party. Only present when the 'signatories' section is requested via the include parameter."
},
"_entity_type": {
"enum": [
"template"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the template's internal file storage, as opposed to its attachments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\". Absent when the requesting user may not view the template's files. Only present when the 'stored_files' section is requested via the include parameter."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this template creates. Absent when the template has no type assigned"
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The template's dynamic fields and their values. Only present when the 'dynamic_fields' section is requested via the include parameter."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "The eIDAS assurance level that will be used when signing documents created from this template. Absent when none has been chosen. Only present when the 'signing_settings' section is requested via the include parameter."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The template's metadata fields and their values. Only present when the 'metadata_values' section is requested via the include parameter."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the template that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Only present when the 'signature_blocks' section is requested via the include parameter."
},
"sequential_signing": {
"type": "boolean",
"description": "Whether signatories must sign in a specific order. Only present when the 'signing_settings' section is requested via the include parameter."
}
}
}
Original tool metadata
{
"name": "get-template-info",
"title": "Get template info",
"description": "Gets information about a template.\n\nUse this tool when:\n\n- You have a template's UUID and want to know more details about it.\n- e.g. when you want to create a document from the template and need to know which parties, dynamic fields, etc are available in the template.\n\nCalled with no include parameter, returns the template's identity, its parties, its teams, its description and its signing settings. Use include to name the sections you want instead - among them signatories, signature_blocks, dynamic_fields, conditions, metadata_values, tags, timestamps, attachments and stored_files - and the response carries exactly those, so a question about one aspect of a template costs one section rather than the whole template.\n\nThe stored_files section holds what the app shows as \"Internal file storage\", separate from attachments: call them that when talking to the user, never \"stored files\".",
"inputSchema": {
"type": "object",
"required": [
"template_uuid"
],
"properties": {
"include": {
"type": "array",
"items": {
"enum": [
"parties",
"teams",
"tags",
"details",
"signing_settings",
"timestamps",
"attachments",
"conditions",
"dynamic_fields",
"metadata_values",
"signatories",
"signature_blocks",
"stored_files"
],
"type": "string"
},
"description": "The sections the response carries, on top of the template's identity (uuid, name, locale, document type, published, url), which it always carries. Naming sections means exactly those: ask for one section and you pay for one, rather than for the whole template. If omitted, these are returned: parties, teams, details, signing_settings."
},
"template_uuid": {
"type": "string",
"description": "UUID of the template to get information about"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the template in fynk. Only present when your user has template editing permission"
},
"name": {
"type": "string",
"description": "Name of the template"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the template. Do not show to the user unless they ask for it"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the template is assigned to. Only present when the 'teams' section is requested via the include parameter."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The contracting entities the template defines. Only present when the 'parties' section is requested via the include parameter."
},
"published": {
"type": "boolean",
"description": "Indicates if the template is published (true) or a draft (false). Only published templates can be used by users without template management permission"
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name the condition was given in the fynk editor"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"is_active": {
"type": "boolean",
"description": "Whether the condition currently holds, and with it whether the content it guards is part of the document as it stands. This is the evaluated result and is authoritative: where your own reading of `expression` disagrees with it, this value is the correct one."
},
"expression": {
"type": "string",
"description": "The rule deciding whether the condition holds, as `multifield_compare(\"<operator>\", dynamic_field[\"<ref_uuid>\"], \"<value>\")` terms combined with `and`, `or`, `not` and parentheses. The operator is one of: empty, not_empty, starts_with, ends_with, contains, not_contains, equal, not_equal, greater_than, less_than, greater_than_or_equal, less_than_or_equal - each meaning exactly what it says, applied to the field's value. Read it to explain why a condition does or does not hold, and what would have to change for it to flip; never invent an operator or guess at semantics beyond this list. The expression is technical information for you the model, not display content: relay it to the user as natural-language prose when necessary"
},
"_entity_type": {
"enum": [
"condition"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"referenced_dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"value": {
"type": "string",
"description": "The field's current value, as the expression compares it. Absent when the field has no value"
},
"ref_uuid": {
"type": "string",
"description": "Matches a `dynamic_field[\"...\"]` reference inside `expression`, and the `ref_uuid` of the field in the dynamic_fields section"
}
}
},
"description": "The dynamic fields the expression reads, resolved from the ref_uuids inside it, so that the expression can be understood without also requesting the dynamic_fields section."
}
}
},
"description": "The template's conditions: rules over its dynamic fields deciding whether a passage of the template applies, and whether each currently holds. Use them to explain why a clause is or is not part of the template, and what would have to change to flip it. Only present when the 'conditions' section is requested via the include parameter."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the template was created. Only present when the 'timestamps' section is requested via the include parameter."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the template was last updated. Only present when the 'timestamps' section is requested via the include parameter."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the template was archived. Absent when the template is not archived. Only present when the 'timestamps' section is requested via the include parameter."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the attachment. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"attachment"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files attached to the template. Attachments are part of the template itself and visible to external parties. Absent when the requesting user may not view the template's files. Only present when the 'attachments' section is requested via the include parameter."
},
"description": {
"type": "string",
"description": "Description of the template. Absent when the template has none. Only present when the 'details' section is requested via the include parameter."
},
"signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"description": "The individual people who sign documents created from this template. Distinct from parties: a signatory often signs on behalf of a party (e.g. a business), so a person may be a signatory without appearing as a party. Only present when the 'signatories' section is requested via the include parameter."
},
"_entity_type": {
"enum": [
"template"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"stored_files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the stored file. Do not show to the user unless they ask for it"
},
"sha256": {
"type": "string",
"description": "SHA-256 digest of the file's bytes, as lowercase hex. Equal digests mean byte-identical files. Do not show to the user unless they ask for it"
},
"filename": {
"type": "string",
"description": "Name of the file"
},
"file_size": {
"type": "integer",
"description": "Size of the file in bytes. Use file_size_display when telling the user the size"
},
"_entity_type": {
"enum": [
"stored_file"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"file_size_display": {
"type": "string",
"description": "Size of the file formatted for display, e.g. \"2.4 MB\""
}
}
},
"description": "The files in the template's internal file storage, as opposed to its attachments. The app shows these files as \"Internal file storage\": call them that when talking to the user, never \"stored files\". Absent when the requesting user may not view the template's files. Only present when the 'stored_files' section is requested via the include parameter."
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this template creates. Absent when the template has no type assigned"
},
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The template's dynamic fields and their values. Only present when the 'dynamic_fields' section is requested via the include parameter."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "The eIDAS assurance level that will be used when signing documents created from this template. Absent when none has been chosen. Only present when the 'signing_settings' section is requested via the include parameter."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The template's metadata fields and their values. Only present when the 'metadata_values' section is requested via the include parameter."
},
"signature_blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"description": "The places in the template that are signed. A block is bound either to a single signatory or to a party, in which case every signatory of that party signs it. Only present when the 'signature_blocks' section is requested via the include parameter."
},
"sequential_signing": {
"type": "boolean",
"description": "Whether signatories must sign in a specific order. Only present when the 'signing_settings' section is requested via the include parameter."
}
}
},
"annotations": {
"title": "Get template info",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description87/100
Get information about the current user.
Use this tool when:
- You need to know who the current user is (email, locale, roles) before tailoring a response
For information about the current fynk account, use get-account-info
The description explains the capability, when to use it, and what to expect.
Inputs100/100
This tool declares no inputs, so argument descriptions are not needed.
{
"type": "object",
"properties": {
"email": {
"type": "string"
},
"roles": {
"type": "array",
"items": {
"type": "string"
},
"description": "The roles the user has in the current account"
},
"locale": {
"type": "string",
"description": "Code for the user's selected locale, e.g. en-GB, de-AT. Prefer describing the locale in natural language (e.g. \\'British English\\') rather than showing the raw code."
},
"_entity_type": {
"enum": [
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"current_account": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"description": "The fynk account that the user is currently logged in to"
},
"current_account_user": {
"type": "object",
"properties": {
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams that the user is a member of"
},
"title": {
"type": "string",
"description": "User's job title. Absent when the user has none set"
},
"last_name": {
"type": "string",
"description": "User's last name. Absent when the user has none set"
},
"first_name": {
"type": "string",
"description": "User's first name. Absent when the user has none set"
}
},
"description": "Details about the user that are specific to the fynk account they are currently logged in to"
}
}
}
Original tool metadata
{
"name": "get-user-info",
"title": "Get user info",
"description": "Get information about the current user.\n\nUse this tool when:\n\n- You need to know who the current user is (email, locale, roles) before tailoring a response\n\nFor information about the current fynk account, use get-account-info",
"inputSchema": {
"type": "object",
"properties": {}
},
"outputSchema": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"roles": {
"type": "array",
"items": {
"type": "string"
},
"description": "The roles the user has in the current account"
},
"locale": {
"type": "string",
"description": "Code for the user's selected locale, e.g. en-GB, de-AT. Prefer describing the locale in natural language (e.g. \\'British English\\') rather than showing the raw code."
},
"_entity_type": {
"enum": [
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"current_account": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"description": "The fynk account that the user is currently logged in to"
},
"current_account_user": {
"type": "object",
"properties": {
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams that the user is a member of"
},
"title": {
"type": "string",
"description": "User's job title. Absent when the user has none set"
},
"last_name": {
"type": "string",
"description": "User's last name. Absent when the user has none set"
},
"first_name": {
"type": "string",
"description": "User's first name. Absent when the user has none set"
}
},
"description": "Details about the user that are specific to the fynk account they are currently logged in to"
}
}
},
"annotations": {
"title": "Get user info",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Invite one or more people by email to join the current account as account users, or reactivate account users who were removed from the account, without sending an email.
Use this tool when:
- The user asks to invite colleagues, add new users or give people access to fynk
- The user asks to resend an invitation to someone who has not accepted it yet, including one that has expired or was declined
list-account-users with include ["invitations"] lists the invitations that have not been accepted or canceled, so check it when the user asks to resend invitations without naming the addresses.
Batch invitations into one call for up to 25 people: inviting five colleagues is one call with five entries. The limit is 25 invitation entries per minute per calling user, across calls and including invitations the user sends from fynk's account settings. For more than 25 people, split the list into batches and wait for the rate limit to reset between batches. Ask the user which role to give when they have not said so.
Resending an invitation also replaces its role and team assignment with the supplied values. Reactivation likewise replaces the previously removed account user's role and team membership. Omitting `team_uuids` or passing [] assigns no teams, clearing any previous assignment on resend or reactivation.
Every entry is validated before processing begins, so one validation failure rejects the whole call and nothing is sent. An address that already belongs to an active account user is normally rejected during validation, and so is any invitation once the account has as many users as its plan includes.
An invitation takes a seat only when it is accepted, so a call can send more invitations than the account has free seats; once the seats are taken, the remaining people cannot join until more seats are bought or someone is removed. Reactivating a removed account user takes a seat straight away, and a call reactivating more of them than there are free seats is rejected. list-account-users with include ["invitations"] returns the number of free seats as free_seats; when you invite more people than that, tell the user that not all of them will be able to join yet.
The response lists one `outcome` per input entry, in input order: a sentence saying what was done for that address, e.g. "The existing account user was reactivated with the given role and teams. No email was sent." Tell the user what it says, since it is not always that an invitation was sent.
The description explains the capability, when to use it, and what to expect.
Inputs81/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
invitations › items › email
Email address of the person to invite. Must be unique within this batch, ignoring case.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
invitations › items › role
Role the person gets in the account, from most to least access: account-owner, account-admin, account-editor, account-manager, account-limited-manager. Replaces the previous role on resend or reactivation. Only account owners may invite another owner.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
invitations › items › team_uuids
Team UUIDs from list-account-teams. On resend or reactivation, this replaces the previous team assignment. Omit or pass [] to assign no teams.
Clear enough to supply this argument.
invitations › items › message
Optional personal note included in the invitation email; must be nonblank if supplied.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"invitations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "The email address supplied for this entry"
},
"outcome": {
"type": "string",
"description": "A sentence saying what the call did for this address, to pass on to the user"
}
}
},
"description": "One result per input entry, in input order"
}
}
}
Original tool metadata
{
"name": "invite-account-users",
"title": "Invite account users",
"description": "Invite one or more people by email to join the current account as account users, or reactivate account users who were removed from the account, without sending an email.\n\nUse this tool when:\n\n- The user asks to invite colleagues, add new users or give people access to fynk\n- The user asks to resend an invitation to someone who has not accepted it yet, including one that has expired or was declined\n\nlist-account-users with include [\"invitations\"] lists the invitations that have not been accepted or canceled, so check it when the user asks to resend invitations without naming the addresses.\n\nBatch invitations into one call for up to 25 people: inviting five colleagues is one call with five entries. The limit is 25 invitation entries per minute per calling user, across calls and including invitations the user sends from fynk's account settings. For more than 25 people, split the list into batches and wait for the rate limit to reset between batches. Ask the user which role to give when they have not said so.\n\nResending an invitation also replaces its role and team assignment with the supplied values. Reactivation likewise replaces the previously removed account user's role and team membership. Omitting `team_uuids` or passing [] assigns no teams, clearing any previous assignment on resend or reactivation.\n\nEvery entry is validated before processing begins, so one validation failure rejects the whole call and nothing is sent. An address that already belongs to an active account user is normally rejected during validation, and so is any invitation once the account has as many users as its plan includes.\n\nAn invitation takes a seat only when it is accepted, so a call can send more invitations than the account has free seats; once the seats are taken, the remaining people cannot join until more seats are bought or someone is removed. Reactivating a removed account user takes a seat straight away, and a call reactivating more of them than there are free seats is rejected. list-account-users with include [\"invitations\"] returns the number of free seats as free_seats; when you invite more people than that, tell the user that not all of them will be able to join yet.\n\nThe response lists one `outcome` per input entry, in input order: a sentence saying what was done for that address, e.g. \"The existing account user was reactivated with the given role and teams. No email was sent.\" Tell the user what it says, since it is not always that an invitation was sent.",
"inputSchema": {
"type": "object",
"required": [
"invitations"
],
"properties": {
"invitations": {
"type": "array",
"items": {
"type": "object",
"required": [
"email",
"role"
],
"properties": {
"role": {
"enum": [
"account-owner",
"account-admin",
"account-editor",
"account-manager",
"account-limited-manager"
],
"type": "string",
"description": "Role the person gets in the account, from most to least access: account-owner, account-admin, account-editor, account-manager, account-limited-manager. Replaces the previous role on resend or reactivation. Only account owners may invite another owner."
},
"email": {
"type": "string",
"description": "Email address of the person to invite. Must be unique within this batch, ignoring case."
},
"message": {
"type": "string",
"maxLength": 2000,
"description": "Optional personal note included in the invitation email; must be nonblank if supplied."
},
"team_uuids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Team UUIDs from list-account-teams. On resend or reactivation, this replaces the previous team assignment. Omit or pass [] to assign no teams."
}
}
},
"description": "Batch of invitations, one entry per person (1 to 25). Batch people into one call within the limit; the same limit applies per minute per calling user across calls."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"invitations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "The email address supplied for this entry"
},
"outcome": {
"type": "string",
"description": "A sentence saying what the call did for this address, to pass on to the user"
}
}
},
"description": "One result per input entry, in input order"
}
}
},
"annotations": {
"title": "Invite account users",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description95/100
Joins a document as a collaborator. If the current user is already an owner or collaborator on the document, they have already joined it: the tool returns their existing document user unchanged.
Use this tool when:
- You need to make changes to a document, but do not have a 'document user' in the document yet.
- You need to make changes to a document, but your existing 'document user' does not yet have permission to change it.
To join every document matching some conditions, find the ones you have not joined yet with list-documents; its description shows how to leave out the documents you have already joined.
The description explains the capability, when to use it, and what to expect.
Inputs96/100
Input documentation gives an agent enough context to populate the arguments.
document_uuid
UUID of the document to join. If you don't already have the document's UUID, use the list-documents tool to find it.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
}
}
}
Original tool metadata
{
"name": "join-document",
"title": "Join document",
"description": "Joins a document as a collaborator. If the current user is already an owner or collaborator on the document, they have already joined it: the tool returns their existing document user unchanged.\n\nUse this tool when:\n\n- You need to make changes to a document, but do not have a 'document user' in the document yet.\n- You need to make changes to a document, but your existing 'document user' does not yet have permission to change it.\n\nTo join every document matching some conditions, find the ones you have not joined yet with list-documents; its description shows how to leave out the documents you have already joined.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"document_uuid": {
"type": "string",
"description": "UUID of the document to join. If you don't already have the document's UUID, use the list-documents tool to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
}
}
},
"annotations": {
"title": "Join document",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Get a list of the document types available in the account (fynk's system-provided types plus any custom types
defined for the account).
Use this tool when:
- You need a document type's UUID to filter list-documents by document type
- You want to know which document types exist before referring to them by name in a response
- You need to know what a document type covers, or how fynk's AI analyses recognise it (include=["details"])
Each document type is returned as its uuid and name by default. Request include=["details"] for its description
and the prompt the AI analyses use to recognise it. Which metadata fields a document type has is reported from the
other side, by list-account-metadata: each field there names the document types it is relevant for.
By default, only the types the account currently offers are returned. Removing one of fynk's system types
deactivates it rather than deleting it: set filter_state to "deactivated" to list those types (e.g. when the user
wants to reactivate one) or to "all" to list them alongside the rest.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
include
Optional sections to include for each document type, on top of its uuid and name. Allowed values: details (the description, and the prompt fynk's AI analyses use to recognise documents of the type). Only request it when you need it
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
filter_state
Which document types to return. "active" (the default) returns the types in use for the account; "deactivated" returns only fynk's types that are deactivated for it; "all" returns both, with deactivated ones flagged
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"document_types": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document type"
},
"uuid": {
"type": "string",
"description": "Identifier for the document type. Do not show to the user unless they ask for it"
},
"prompt": {
"type": "string",
"description": "The selection criterion fynk's AI analyses use to decide whether a document is of this type. Absent when it has none, in which case the analyses rarely pick the type. Only present when the 'details' section is requested via the include parameter."
},
"customised": {
"type": "boolean",
"description": "Present, and true, only for a system document type that this account has customised. The customisation can be dropped again with update-account-document-type and `reset_to_fynk_default`"
},
"deactivated": {
"type": "boolean",
"description": "Present, and true, only for one of fynk's document types that is deactivated for this account: it is not offered for documents or templates until it is reactivated with update-account-document-type"
},
"description": {
"type": "string",
"description": "What the document type covers, as shown to users configuring it. Absent when it has none. Only present when the 'details' section is requested via the include parameter."
},
"_entity_type": {
"enum": [
"document_type"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"provided_by_fynk": {
"type": "boolean",
"description": "Present, and true, only for one of fynk's built-in system document types. The account can customise or deactivate such a type but never delete it. Absent for a type the account created itself"
}
}
}
}
}
}
Original tool metadata
{
"name": "list-account-document-types",
"title": "List account document types",
"description": "Get a list of the document types available in the account (fynk's system-provided types plus any custom types\ndefined for the account).\n\nUse this tool when:\n\n- You need a document type's UUID to filter list-documents by document type\n- You want to know which document types exist before referring to them by name in a response\n- You need to know what a document type covers, or how fynk's AI analyses recognise it (include=[\"details\"])\n\nEach document type is returned as its uuid and name by default. Request include=[\"details\"] for its description\nand the prompt the AI analyses use to recognise it. Which metadata fields a document type has is reported from the\nother side, by list-account-metadata: each field there names the document types it is relevant for.\n\nBy default, only the types the account currently offers are returned. Removing one of fynk's system types\ndeactivates it rather than deleting it: set filter_state to \"deactivated\" to list those types (e.g. when the user\nwants to reactivate one) or to \"all\" to list them alongside the rest.",
"inputSchema": {
"type": "object",
"properties": {
"include": {
"type": "array",
"items": {
"enum": [
"details"
],
"type": "string"
},
"description": "Optional sections to include for each document type, on top of its uuid and name. Allowed values: details (the description, and the prompt fynk's AI analyses use to recognise documents of the type). Only request it when you need it"
},
"filter_state": {
"enum": [
"active",
"deactivated",
"all"
],
"type": "string",
"description": "Which document types to return. \"active\" (the default) returns the types in use for the account; \"deactivated\" returns only fynk's types that are deactivated for it; \"all\" returns both, with deactivated ones flagged"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"document_types": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document type"
},
"uuid": {
"type": "string",
"description": "Identifier for the document type. Do not show to the user unless they ask for it"
},
"prompt": {
"type": "string",
"description": "The selection criterion fynk's AI analyses use to decide whether a document is of this type. Absent when it has none, in which case the analyses rarely pick the type. Only present when the 'details' section is requested via the include parameter."
},
"customised": {
"type": "boolean",
"description": "Present, and true, only for a system document type that this account has customised. The customisation can be dropped again with update-account-document-type and `reset_to_fynk_default`"
},
"deactivated": {
"type": "boolean",
"description": "Present, and true, only for one of fynk's document types that is deactivated for this account: it is not offered for documents or templates until it is reactivated with update-account-document-type"
},
"description": {
"type": "string",
"description": "What the document type covers, as shown to users configuring it. Absent when it has none. Only present when the 'details' section is requested via the include parameter."
},
"_entity_type": {
"enum": [
"document_type"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"provided_by_fynk": {
"type": "boolean",
"description": "Present, and true, only for one of fynk's built-in system document types. The account can customise or deactivate such a type but never delete it. Absent for a type the account created itself"
}
}
}
}
}
},
"annotations": {
"title": "List account document types",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description91/100
Get a list of the metadata fields available in the account to be associated with documents & templates.
Use this tool when:
- You need to know which metadata names exist before referencing them in get-document-info / list-documents
- You want to know the type, allowed values, or other configuration of an account's metadata fields
The description explains the capability, when to use it, and what to expect.
Inputs100/100
This tool declares no inputs, so argument descriptions are not needed.
{
"type": "object",
"properties": {
"metadata": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"type": {
"enum": [
"system_autofilled",
"system_computed",
"system",
"system_reference",
"account"
],
"type": "string",
"description": "The type of the metadata field, which defines where its value comes from.\n\naccount: Custom metadata fields that are specific to your account\nsystem_reference: Pre-defined useful metadata fields provided by fynk\nsystem_autofilled: Fields that are automatically filled by the system in response to events, like \"Signing completion date\"\nsystem_computed: Fields that are calculated by the system based on other metadata values. e.g. \"Signing duration\" is the difference between \"Signing date\" and \"Signed date\"\nsystem: Other system-provided metadata fields"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"settings": {
"type": "object",
"properties": {
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "The only currency codes this field's values may use, e.g. [\"EUR\", \"USD\"]"
}
},
"description": "Extra configuration for the field. Not present means there is nothing to restrict"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the kinds of values that can be assigned to the metadata"
},
"_entity_type": {
"enum": [
"metadata"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When value_type is \"select\" or \"multi_select\", defines the allowed values. For these types of metadata, ONLY these values are possible. Absent for every other value type"
},
"is_contract_value": {
"type": "boolean",
"description": "Whether this field counts towards a document's calculated contract value. Only meaningful when value_type is \"currency\" or \"currency_duration\""
},
"overridden_fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only for a \"system_reference\" field the account has configured differently to how fynk provides it, and absent otherwise: the update-account-metadata arguments it has changed, e.g. [\"display_name\", \"select_values\"]. Send reset_to_fynk_default to that tool to put all of them back"
},
"relevant_document_types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Names of the document types this field is meaningful for. Empty together with relevant_for_all_document_types false means the field is not in use for any document type, so charting it will likely produce no data"
},
"relevant_for_all_document_types": {
"type": "boolean",
"description": "When true, the field is meaningful for every document type and relevant_document_types is empty"
}
}
}
}
}
}
Original tool metadata
{
"name": "list-account-metadata",
"title": "List account metadata",
"description": "Get a list of the metadata fields available in the account to be associated with documents & templates.\n\nUse this tool when:\n\n- You need to know which metadata names exist before referencing them in get-document-info / list-documents\n- You want to know the type, allowed values, or other configuration of an account's metadata fields",
"inputSchema": {
"type": "object",
"properties": {}
},
"outputSchema": {
"type": "object",
"properties": {
"metadata": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"type": {
"enum": [
"system_autofilled",
"system_computed",
"system",
"system_reference",
"account"
],
"type": "string",
"description": "The type of the metadata field, which defines where its value comes from.\n\naccount: Custom metadata fields that are specific to your account\nsystem_reference: Pre-defined useful metadata fields provided by fynk\nsystem_autofilled: Fields that are automatically filled by the system in response to events, like \"Signing completion date\"\nsystem_computed: Fields that are calculated by the system based on other metadata values. e.g. \"Signing duration\" is the difference between \"Signing date\" and \"Signed date\"\nsystem: Other system-provided metadata fields"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"settings": {
"type": "object",
"properties": {
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "The only currency codes this field's values may use, e.g. [\"EUR\", \"USD\"]"
}
},
"description": "Extra configuration for the field. Not present means there is nothing to restrict"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the kinds of values that can be assigned to the metadata"
},
"_entity_type": {
"enum": [
"metadata"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When value_type is \"select\" or \"multi_select\", defines the allowed values. For these types of metadata, ONLY these values are possible. Absent for every other value type"
},
"is_contract_value": {
"type": "boolean",
"description": "Whether this field counts towards a document's calculated contract value. Only meaningful when value_type is \"currency\" or \"currency_duration\""
},
"overridden_fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only for a \"system_reference\" field the account has configured differently to how fynk provides it, and absent otherwise: the update-account-metadata arguments it has changed, e.g. [\"display_name\", \"select_values\"]. Send reset_to_fynk_default to that tool to put all of them back"
},
"relevant_document_types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Names of the document types this field is meaningful for. Empty together with relevant_for_all_document_types false means the field is not in use for any document type, so charting it will likely produce no data"
},
"relevant_for_all_document_types": {
"type": "boolean",
"description": "When true, the field is meaningful for every document type and relevant_document_types is empty"
}
}
}
}
}
},
"annotations": {
"title": "List account metadata",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description93/100
Get a list of the account parties saved on your account.
Account parties are the account's own entities — the user's company, subsidiaries, group companies or parent company. Phrasing like "our", "we", "us", "my company" or "our subsidiary" refers to an account party. These are the internal side of an agreement, as opposed to external parties (the counterparties on the other side), which you find with search-external-parties.
Use this tool when:
- You need to know which pre-defined parties are available for use in documents or templates
- You need to provide an account_party_uuid (use a uuid from this tool's response)
- You need an account party's UUID to filter list-documents by account party — e.g. to find documents involving "our" company or one of its subsidiaries
If the entity is one of the account's own companies and is missing, use create-account-parties when available and needed for the user's request. If it is a counterparty, use search-external-parties. Absence from this list alone does not determine whether an entity is internal or external.
The description explains the capability, when to use it, and what to expect.
Inputs100/100
This tool declares no inputs, so argument descriptions are not needed.
{
"type": "object",
"properties": {
"account_parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address"
},
"entity_name": {
"type": "string",
"description": "The name of the party"
},
"_entity_type": {
"enum": [
"account_party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
}
Original tool metadata
{
"name": "list-account-parties",
"title": "List account parties",
"description": "Get a list of the account parties saved on your account.\n\nAccount parties are the account's own entities — the user's company, subsidiaries, group companies or parent company. Phrasing like \"our\", \"we\", \"us\", \"my company\" or \"our subsidiary\" refers to an account party. These are the internal side of an agreement, as opposed to external parties (the counterparties on the other side), which you find with search-external-parties.\n\nUse this tool when:\n\n- You need to know which pre-defined parties are available for use in documents or templates\n- You need to provide an account_party_uuid (use a uuid from this tool's response)\n- You need an account party's UUID to filter list-documents by account party — e.g. to find documents involving \"our\" company or one of its subsidiaries\n\nIf the entity is one of the account's own companies and is missing, use create-account-parties when available and needed for the user's request. If it is a counterparty, use search-external-parties. Absence from this list alone does not determine whether an entity is internal or external.",
"inputSchema": {
"type": "object",
"properties": {}
},
"outputSchema": {
"type": "object",
"properties": {
"account_parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address"
},
"entity_name": {
"type": "string",
"description": "The name of the party"
},
"_entity_type": {
"enum": [
"account_party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
},
"annotations": {
"title": "List account parties",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description84/100
Get a list of the playbooks defined in the account.
Use this tool when:
- You need a playbook's UUID to refer to it
- You want to know which playbooks exist before referring to them by name in a response
Playbooks allow automating the review of documents based on predefined criteria.
The description explains the capability, when to use it, and what to expect.
Inputs100/100
This tool declares no inputs, so argument descriptions are not needed.
{
"type": "object",
"properties": {
"playbooks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the playbook"
},
"uuid": {
"type": "string",
"description": "Identifier for the playbook. Do not show to the user unless they ask for it"
},
"description": {
"type": "string",
"description": "Description of the playbook. May be absent"
},
"_entity_type": {
"enum": [
"playbook"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
}
Original tool metadata
{
"name": "list-account-playbooks",
"title": "List account playbooks",
"description": "Get a list of the playbooks defined in the account.\n\nUse this tool when:\n\n- You need a playbook's UUID to refer to it\n- You want to know which playbooks exist before referring to them by name in a response\n\nPlaybooks allow automating the review of documents based on predefined criteria.",
"inputSchema": {
"type": "object",
"properties": {}
},
"outputSchema": {
"type": "object",
"properties": {
"playbooks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the playbook"
},
"uuid": {
"type": "string",
"description": "Identifier for the playbook. Do not show to the user unless they ask for it"
},
"description": {
"type": "string",
"description": "Description of the playbook. May be absent"
},
"_entity_type": {
"enum": [
"playbook"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
},
"annotations": {
"title": "List account playbooks",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description83/100
Get a list of the tags available in the account to be associated with documents & templates.
Use this tool when:
- You need a tag's UUID to filter list-documents / list-templates by tag
- You want to know which tags exist before referring to them by name in a response
The description explains the capability, when to use it, and what to expect.
Inputs100/100
This tool declares no inputs, so argument descriptions are not needed.
{
"type": "object",
"properties": {
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
}
Original tool metadata
{
"name": "list-account-tags",
"title": "List account tags",
"description": "Get a list of the tags available in the account to be associated with documents & templates.\n\nUse this tool when:\n\n- You need a tag's UUID to filter list-documents / list-templates by tag\n- You want to know which tags exist before referring to them by name in a response",
"inputSchema": {
"type": "object",
"properties": {}
},
"outputSchema": {
"type": "object",
"properties": {
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
},
"annotations": {
"title": "List account tags",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description99/100
List the members (account users) of a given team.
Use this tool when:
- You need the account-user uuids of a team's members in order to add them to another team
- The user asks who is in a team
- You are merging or restructuring teams and need to know the current membership
Returns each member's uuid, first_name, last_name, and email. Pass the uuids to attach-account-users-to-team to add the same people to another team. Suspended users are not included.
The description explains the capability, when to use it, and what to expect.
Inputs94/100
Input documentation gives an agent enough context to populate the arguments.
{
"type": "object",
"properties": {
"members": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The account users that are members of the team"
}
}
}
Original tool metadata
{
"name": "list-account-team-members",
"title": "List account team members",
"description": "List the members (account users) of a given team.\n\nUse this tool when:\n\n- You need the account-user uuids of a team's members in order to add them to another team\n- The user asks who is in a team\n- You are merging or restructuring teams and need to know the current membership\n\nReturns each member's uuid, first_name, last_name, and email. Pass the uuids to attach-account-users-to-team to add the same people to another team. Suspended users are not included.",
"inputSchema": {
"type": "object",
"required": [
"team_uuid"
],
"properties": {
"team_uuid": {
"type": "string",
"description": "UUID of the team whose members should be listed"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"members": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The account users that are members of the team"
}
}
},
"annotations": {
"title": "List account team members",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description82/100
Get a list of the teams available in the account.
Use this tool when:
- You need a team's UUID to filter list-documents by team
- You want to know which teams exist before referring to them by name in a response
The description explains the capability, when to use it, and what to expect.
Inputs100/100
This tool declares no inputs, so argument descriptions are not needed.
{
"type": "object",
"properties": {
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
}
Original tool metadata
{
"name": "list-account-teams",
"title": "List account teams",
"description": "Get a list of the teams available in the account.\n\nUse this tool when:\n\n- You need a team's UUID to filter list-documents by team\n- You want to know which teams exist before referring to them by name in a response",
"inputSchema": {
"type": "object",
"properties": {}
},
"outputSchema": {
"type": "object",
"properties": {
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
},
"annotations": {
"title": "List account teams",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description99/100
Get a list of the account users (the people who can log in to this fynk account), and optionally the invitations to join it that are still open.
Use this tool when:
- You need an account user's uuid, e.g. to add them to a team via attach-account-users-to-team
- The user refers to a colleague by name and you need to match them to an account user
- The user asks who is part of the account
- The user asks who has been invited, who has not accepted yet, or whose invitation has expired or was declined: pass include ["invitations"]
Returns each account user's uuid, first_name, last_name, and email. Only the account users the current user is allowed to see are returned: most users see everyone in the account, but 'limited manager's only see themselves and the members of their own teams. So this list is not necessarily the full set of people in the account - avoid presenting it as complete.
The invitations are those not yet accepted or canceled, whether pending, expired or declined; someone who accepted is an account user instead. Only account users who may invite people can see them, and asking for them without that permission refuses the call. Alongside them comes free_seats, how many more people can join under the account's plan.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
include
Sections to return on top of the account users. invitations: the invitations to join the account that have not been accepted or canceled. If omitted, only the account users are returned.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"free_seats": {
"type": "integer",
"description": "How many more people the account's plan lets join. Pending invitations do not take a seat until accepted, so more of them may be open than there are free seats. Absent unless include names invitations, or when the plan has no limit."
},
"invitations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"enum": [
"account-owner",
"account-admin",
"account-editor",
"account-manager",
"account-limited-manager"
],
"type": "string",
"description": "Role the person gets in the account on accepting"
},
"email": {
"type": "string",
"description": "Email address the invitation was sent to"
},
"status": {
"enum": [
"pending",
"expired",
"declined"
],
"type": "string",
"description": "pending: can still be accepted. expired and declined: can no longer be accepted; inviting the address again with invite-account-users replaces the invitation."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the invitation was sent"
},
"expires_at": {
"type": "string",
"format": "date-time",
"description": "When the invitation stops being acceptable, or stopped being so for an expired one"
},
"team_uuids": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of the teams the person joins on accepting, as list-account-teams returns them. Absent when the invitation names no teams."
},
"declined_at": {
"type": "string",
"format": "date-time",
"description": "When the invitation was declined. Absent unless the status is declined."
}
}
},
"description": "The invitations to join the account that have not been accepted or canceled, oldest first. Absent unless include names invitations."
},
"account_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The account users visible to the current user"
}
}
}
Original tool metadata
{
"name": "list-account-users",
"title": "List account users",
"description": "Get a list of the account users (the people who can log in to this fynk account), and optionally the invitations to join it that are still open.\n\nUse this tool when:\n\n- You need an account user's uuid, e.g. to add them to a team via attach-account-users-to-team\n- The user refers to a colleague by name and you need to match them to an account user\n- The user asks who is part of the account\n- The user asks who has been invited, who has not accepted yet, or whose invitation has expired or was declined: pass include [\"invitations\"]\n\nReturns each account user's uuid, first_name, last_name, and email. Only the account users the current user is allowed to see are returned: most users see everyone in the account, but 'limited manager's only see themselves and the members of their own teams. So this list is not necessarily the full set of people in the account - avoid presenting it as complete.\n\nThe invitations are those not yet accepted or canceled, whether pending, expired or declined; someone who accepted is an account user instead. Only account users who may invite people can see them, and asking for them without that permission refuses the call. Alongside them comes free_seats, how many more people can join under the account's plan.",
"inputSchema": {
"type": "object",
"properties": {
"include": {
"type": "array",
"items": {
"enum": [
"invitations"
],
"type": "string"
},
"description": "Sections to return on top of the account users. invitations: the invitations to join the account that have not been accepted or canceled. If omitted, only the account users are returned."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"free_seats": {
"type": "integer",
"description": "How many more people the account's plan lets join. Pending invitations do not take a seat until accepted, so more of them may be open than there are free seats. Absent unless include names invitations, or when the plan has no limit."
},
"invitations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"enum": [
"account-owner",
"account-admin",
"account-editor",
"account-manager",
"account-limited-manager"
],
"type": "string",
"description": "Role the person gets in the account on accepting"
},
"email": {
"type": "string",
"description": "Email address the invitation was sent to"
},
"status": {
"enum": [
"pending",
"expired",
"declined"
],
"type": "string",
"description": "pending: can still be accepted. expired and declined: can no longer be accepted; inviting the address again with invite-account-users replaces the invitation."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the invitation was sent"
},
"expires_at": {
"type": "string",
"format": "date-time",
"description": "When the invitation stops being acceptable, or stopped being so for an expired one"
},
"team_uuids": {
"type": "array",
"items": {
"type": "string"
},
"description": "UUIDs of the teams the person joins on accepting, as list-account-teams returns them. Absent when the invitation names no teams."
},
"declined_at": {
"type": "string",
"format": "date-time",
"description": "When the invitation was declined. Absent unless the status is declined."
}
}
},
"description": "The invitations to join the account that have not been accepted or canceled, oldest first. Absent unless include names invitations."
},
"account_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The account users visible to the current user"
}
}
},
"annotations": {
"title": "List account users",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description99/100
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 = "[email protected]")`
- 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.
The description explains the capability, when to use it, and what to expect.
Inputs86/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
mode
"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
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
filter_expression
The FQL filter expression, see the tool description. Omit it to list every document the user can access, archived ones included
Clear enough to supply this argument.
search
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
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
sort_by
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
Clear enough to supply this argument.
sort_direction
The default is: desc
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
page
Which page of results to fetch
Clear enough to supply this argument.
per_page
How many results to return on each page
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
include
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.
Clear enough to supply this argument.
include_metadata
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
Explain what happens when this optional value is omitted.
Align the output schema with the tool’s documented result.
View output schema
{
"type": "object",
"properties": {
"total": {
"type": "integer",
"description": "How many documents match across all pages; present only for mode=list"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The field as written in an expression"
},
"type": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allowed values for enum, select, multi-select and role fields; empty otherwise"
},
"operators": {
"type": "array",
"items": {
"type": "string"
}
},
"collection_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allowed values for enum, select, multi-select and role fields; empty otherwise"
},
"operators": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"description": "Fields usable inside exists(...) and all(...) for an object collection; empty otherwise"
}
}
},
"description": "The fields an expression can use; present only for mode=describe_fields"
},
"max_page": {
"type": "integer",
"description": "How many pages of results are available; present only for mode=list"
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to. Only present when the 'teams' section is requested via the include parameter."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code. Only present when the 'details' section is requested via the include parameter."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created. Only present when the 'details' section is requested via the include parameter."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Name of the party, suitable for display"
}
}
},
"description": "The contracting entities on the document. Only present when the 'parties' section is requested via the include parameter."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created. Only present when the 'timestamps' section is requested via the include parameter."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated. Only present when the 'timestamps' section is requested via the include parameter."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived. Only present when the 'timestamps' section is requested via the include parameter."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen. Only present when the 'signing_settings' section is requested via the include parameter."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field, as used by list-account-metadata and to filter and sort list-documents"
},
"value": {
"type": [
"string",
"null"
],
"description": "The value this document has for the field, or null when the document has no value for it. Multi-select fields use `values` instead. When a value needs interpreting (e.g. a currency or duration), look the field up with list-account-metadata to see its value_type"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the values this document has for the field"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
}
}
},
"description": "The document's values for the metadata fields named in include_metadata, one entry per requested field (with a null value where the document has no value for that field). Only present when include_metadata is used."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order. Only present when the 'signing_settings' section is requested via the include parameter."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template. Only present when the 'details' section is requested via the include parameter."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set. Only present when the 'signing_settings' section is requested via the include parameter."
}
}
},
"description": "The matching documents on this page; present only for mode=list"
},
"in_app_url": {
"type": "string",
"description": "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"
},
"current_page": {
"type": "integer",
"description": "Which page of results this is; present only for mode=list"
}
}
}
Original tool metadata
{
"name": "list-documents",
"title": "List documents",
"description": "Get a paginated list of the documents available to the current user.\n\nUse this tool when:\n\n- You need to find a document_uuid to use as input for another tool\n- You need to know which documents the current user has access to, or which match some conditions\n- You want to count documents matching some conditions (read `total`)\n- You need the same information about several documents: use include and include_metadata rather than calling get-document-info once per document\n\nWithout 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.\n\n`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.\n\n# Discover before writing an expression\n\nCall 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.\n\nAccounts 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:\n\n- list-account-tags: uuids for `tags`\n- list-account-document-types: uuids for `document_type`\n- list-account-teams: uuids for `teams`\n- list-account-parties: the account's own entities, for `account_parties`\n- search-external-parties: counterparties, for `external_parties`\n- search-document-users: people, for `document_users` / `signatories`\n- list-templates, search-automations, search-imports: uuids for `template`, `automation`, `import`\n\nWhen 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.\n\n# Decompose the request, then map every part to a condition\n\nSplit 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.\n\nThe 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.\n\n# FQL syntax\n\n`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.\n\n# FQL examples\n\n## Single conditions\n\n- Active documents: `archived_at is null`\n- Archived documents: `archived_at is not null`\n- Draft documents: `stage = \"draft\"`\n- Name contains NDA: `name contains \"NDA\"`\n- German documents across regional locales: `locale starts with \"de\"`\n- A specific document type: `document_type = \"{document_type_uuid}\"`\n\n## Tags, teams and missing values\n\n- Either tag: `tags contains any (\"{tag_a_uuid}\", \"{tag_b_uuid}\")`\n- Both tags: `tags contains all (\"{tag_a_uuid}\", \"{tag_b_uuid}\")`\n- Neither tag: `not (tags contains any (\"{tag_a_uuid}\", \"{tag_b_uuid}\"))`\n- Assigned to a team: `teams contains \"{team_uuid}\"`\n- Unassigned to any team: `teams is empty`\n- No language set: `locale is null`\n- A language is set: `locale is not null`\n\n## Metadata\n\nUse the account's discovered field names and option values in these examples.\n\n- A select value (with a metadata name requiring bracket notation): `md[\"tätigkeitsfamilie_it_kv\"] = \"ZT\"`\n- An amount of at least 10,000: `md.contract_value.amount >= 10000`\n- Currency is EUR: `md.contract_value.currency = \"EUR\"`\n- A duration of ten months: `md.<field> = \"P10M\"`\n- Expiring on a specific date (date metadata): `md.expiration_date = \"2026-11-10\"`\n- 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.\n- 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`).\n- Expired before today: `md.expiration_date < today()`\n- Expiring today: `md.expiration_date = today()`\n- Expiring tomorrow: `md.expiration_date = days_from_now(1)`\n- Expires after today (expiration date set): `md.expiration_date > today()`\n- Expiring within the next 30 days, today included: `md.expiration_date >= today() and md.expiration_date <= days_from_now(30)`\n- Expiring this month: `md.expiration_date >= start_of(\"month\") and md.expiration_date <= end_of(\"month\")`\n- Expiring next quarter: `md.expiration_date >= start_of(\"quarter\", 1) and md.expiration_date <= end_of(\"quarter\", 1)`\n- Not expired before today, including documents expiring today or without an expiration date: `not (md.expiration_date < today())`\n\n## Combined conditions\n\n- Active documents in draft or review with NDA in their name: `archived_at is null and stage in (\"draft\", \"review\") and name contains \"NDA\"`\n- Assigned to a specific team or unassigned: `teams contains \"{team_uuid}\" or teams is empty`\n- 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\"`\n- Involving a named counterparty: `exists(external_parties, entity_name = \"Acme GmbH\")`\n- Involving a named person: `exists(document_users, first_name = \"Jane\" and last_name = \"Doe\")`\n- Involving a person by email: `exists(document_users, email = \"[email protected]\")`\n- Created last quarter: `created_at >= start_of(\"quarter\", -1) and created_at <= end_of(\"quarter\", -1)`\n- Created in the last 30 days or with an open discussion: `created_at >= days_ago(30) or exists(discussions, resolved_at is null)`\n\n## Workflow recipes\n\n- 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.\n- 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.\n- 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)`\n- 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.\n\n# Parties vs. people\n\nA 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.\n\n# Active vs. archived documents\n\nThe 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.\n\nNo 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.\n\nWhenever 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.",
"inputSchema": {
"type": "object",
"required": [
"mode"
],
"properties": {
"mode": {
"enum": [
"list",
"describe_fields"
],
"type": "string",
"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"
},
"page": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Which page of results to fetch"
},
"search": {
"type": "string",
"maxLength": 255,
"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"
},
"include": {
"type": "array",
"items": {
"enum": [
"parties",
"teams",
"tags",
"details",
"signing_settings",
"timestamps"
],
"type": "string"
},
"description": "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."
},
"sort_by": {
"type": "string",
"description": "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"
},
"per_page": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "How many results to return on each page"
},
"sort_direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "The default is: desc"
},
"include_metadata": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10,
"description": "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"
},
"filter_expression": {
"type": "string",
"description": "The FQL filter expression, see the tool description. Omit it to list every document the user can access, archived ones included"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"total": {
"type": "integer",
"description": "How many documents match across all pages; present only for mode=list"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The field as written in an expression"
},
"type": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allowed values for enum, select, multi-select and role fields; empty otherwise"
},
"operators": {
"type": "array",
"items": {
"type": "string"
}
},
"collection_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allowed values for enum, select, multi-select and role fields; empty otherwise"
},
"operators": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"description": "Fields usable inside exists(...) and all(...) for an object collection; empty otherwise"
}
}
},
"description": "The fields an expression can use; present only for mode=describe_fields"
},
"max_page": {
"type": "integer",
"description": "How many pages of results are available; present only for mode=list"
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to. Only present when the 'teams' section is requested via the include parameter."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code. Only present when the 'details' section is requested via the include parameter."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created. Only present when the 'details' section is requested via the include parameter."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Name of the party, suitable for display"
}
}
},
"description": "The contracting entities on the document. Only present when the 'parties' section is requested via the include parameter."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created. Only present when the 'timestamps' section is requested via the include parameter."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated. Only present when the 'timestamps' section is requested via the include parameter."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived. Only present when the 'timestamps' section is requested via the include parameter."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen. Only present when the 'signing_settings' section is requested via the include parameter."
},
"metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field, as used by list-account-metadata and to filter and sort list-documents"
},
"value": {
"type": [
"string",
"null"
],
"description": "The value this document has for the field, or null when the document has no value for it. Multi-select fields use `values` instead. When a value needs interpreting (e.g. a currency or duration), look the field up with list-account-metadata to see its value_type"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the values this document has for the field"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
}
}
},
"description": "The document's values for the metadata fields named in include_metadata, one entry per requested field (with a null value where the document has no value for that field). Only present when include_metadata is used."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order. Only present when the 'signing_settings' section is requested via the include parameter."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template. Only present when the 'details' section is requested via the include parameter."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set. Only present when the 'signing_settings' section is requested via the include parameter."
}
}
},
"description": "The matching documents on this page; present only for mode=list"
},
"in_app_url": {
"type": "string",
"description": "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"
},
"current_page": {
"type": "integer",
"description": "Which page of results this is; present only for mode=list"
}
}
},
"annotations": {
"title": "List documents",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
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.
The description explains the capability, when to use it, and what to expect.
Inputs79/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
mode
"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
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
filter_expression
The FQL filter expression, see the tool description. Omit it to list every template the user can access
Clear enough to supply this argument.
sort_by
Sort results by this field. The default is: updated_at
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
sort_direction
The default is: desc
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
page
Which page of results to fetch
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
per_page
How many results to return on each page
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
include
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.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
Align the output schema with the tool’s documented result.
View output schema
{
"type": "object",
"properties": {
"total": {
"type": "integer",
"description": "How many templates match across all pages; present only for mode=list"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The field as written in an expression"
},
"type": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allowed values for enum, select, multi-select and role fields; empty otherwise"
},
"operators": {
"type": "array",
"items": {
"type": "string"
}
},
"collection_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allowed values for enum, select, multi-select and role fields; empty otherwise"
},
"operators": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"description": "Fields usable inside exists(...) and all(...) for an object collection; empty otherwise"
}
}
},
"description": "The fields an expression can use; present only for mode=describe_fields"
},
"max_page": {
"type": "integer",
"description": "How many pages of results are available; present only for mode=list"
},
"templates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the template in fynk. Only present when your user has template editing permission"
},
"name": {
"type": "string",
"description": "Name of the template"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the template. Do not show to the user unless they ask for it"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the template is assigned to. Only present when the 'teams' section is requested via the include parameter."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Name of the party, suitable for display"
}
}
},
"description": "The contracting entities the template defines. Only present when the 'parties' section is requested via the include parameter."
},
"published": {
"type": "boolean",
"description": "Indicates if the template is published (true) or a draft (false). Only published templates can be used by users without template management permission"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the template was created. Only present when the 'timestamps' section is requested via the include parameter."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the template was last updated. Only present when the 'timestamps' section is requested via the include parameter."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the template was archived. Absent when the template is not archived. Only present when the 'timestamps' section is requested via the include parameter."
},
"description": {
"type": "string",
"description": "Description of the template. Absent when the template has none. Only present when the 'details' section is requested via the include parameter."
},
"_entity_type": {
"enum": [
"template"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this template creates. Absent when the template has no type assigned"
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "The eIDAS assurance level that will be used when signing documents created from this template. Absent when none has been chosen. Only present when the 'signing_settings' section is requested via the include parameter."
},
"sequential_signing": {
"type": "boolean",
"description": "Whether signatories must sign in a specific order. Only present when the 'signing_settings' section is requested via the include parameter."
}
}
},
"description": "The matching templates on this page; present only for mode=list"
},
"in_app_url": {
"type": "string",
"description": "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"
},
"current_page": {
"type": "integer",
"description": "Which page of results this is; present only for mode=list"
}
}
}
Original tool metadata
{
"name": "list-templates",
"title": "List templates",
"description": "Get a paginated list of the templates available to the current user.\n\nUse this tool when:\n\n- You need to know which templates are available for creating documents from\n- 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\n- You need to find templates matching some conditions, e.g. by name, tag, team, document type or metadata\n- You want to count templates matching some conditions (read `total`)\n\nWithout 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.\n\n`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.\n\n# Discover before writing an expression\n\nCall 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.\n\nAccounts 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.\n\nSplit 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.\n\n# FQL syntax\n\n`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.\n\n# FQL examples\n\n## Single conditions\n\n- Active templates: `archived_at is null`\n- Archived templates: `archived_at is not null`\n- Draft templates: `published = false`\n- Published templates: `published = true`\n- Name contains NDA: `name contains \"NDA\"`\n- German templates across regional locales: `locale starts with \"de\"`\n- A specific document type: `document_type = \"{document_type_uuid}\"`\n\n## Tags, teams and missing values\n\n- Either tag: `tags contains any (\"{tag_a_uuid}\", \"{tag_b_uuid}\")`\n- Both tags: `tags contains all (\"{tag_a_uuid}\", \"{tag_b_uuid}\")`\n- Neither tag: `not (tags contains any (\"{tag_a_uuid}\", \"{tag_b_uuid}\"))`\n- Assigned to a team: `teams contains \"{team_uuid}\"`\n- Unassigned to any team: `teams is empty`\n\n## Metadata\n\nUse the account's discovered field names and option values in these examples.\n\n- A select value (with a metadata name requiring bracket notation): `md[\"tätigkeitsfamilie_it_kv\"] = \"ZT\"`\n- An amount of at least 10,000: `md.contract_value.amount >= 10000`\n- Currency is EUR: `md.contract_value.currency = \"EUR\"`\n- A duration of ten months: `md.<field> = \"P10M\"`\n\n## Combined conditions\n\n- Active, published templates with NDA in their name: `archived_at is null and published = true and name contains \"NDA\"`\n- Active German templates of a specific document type: `archived_at is null and locale starts with \"de\" and document_type = \"{document_type_uuid}\"`\n- Assigned to a specific team or unassigned: `teams contains \"{team_uuid}\" or teams is empty`\n- A contract value of at least EUR 10,000: `md.contract_value.amount >= 10000 and md.contract_value.currency = \"EUR\"`\n\n# Active vs. archived, published vs. draft\n\nThe 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.\n\nNo 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.\n\nWhenever 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.\n\nDrafts 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.",
"inputSchema": {
"type": "object",
"required": [
"mode"
],
"properties": {
"mode": {
"enum": [
"list",
"describe_fields"
],
"type": "string",
"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"
},
"page": {
"type": "integer",
"default": 1,
"minimum": 1,
"description": "Which page of results to fetch"
},
"include": {
"type": "array",
"items": {
"enum": [
"parties",
"teams",
"tags",
"details",
"signing_settings",
"timestamps"
],
"type": "string"
},
"description": "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."
},
"sort_by": {
"enum": [
"name",
"created_at",
"updated_at",
"archived_at"
],
"type": "string",
"description": "Sort results by this field. The default is: updated_at"
},
"per_page": {
"type": "integer",
"default": 10,
"maximum": 100,
"minimum": 1,
"description": "How many results to return on each page"
},
"sort_direction": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "The default is: desc"
},
"filter_expression": {
"type": "string",
"description": "The FQL filter expression, see the tool description. Omit it to list every template the user can access"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"total": {
"type": "integer",
"description": "How many templates match across all pages; present only for mode=list"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The field as written in an expression"
},
"type": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allowed values for enum, select, multi-select and role fields; empty otherwise"
},
"operators": {
"type": "array",
"items": {
"type": "string"
}
},
"collection_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allowed values for enum, select, multi-select and role fields; empty otherwise"
},
"operators": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"description": "Fields usable inside exists(...) and all(...) for an object collection; empty otherwise"
}
}
},
"description": "The fields an expression can use; present only for mode=describe_fields"
},
"max_page": {
"type": "integer",
"description": "How many pages of results are available; present only for mode=list"
},
"templates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the template in fynk. Only present when your user has template editing permission"
},
"name": {
"type": "string",
"description": "Name of the template"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the template. Do not show to the user unless they ask for it"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the template is assigned to. Only present when the 'teams' section is requested via the include parameter."
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Name of the party, suitable for display"
}
}
},
"description": "The contracting entities the template defines. Only present when the 'parties' section is requested via the include parameter."
},
"published": {
"type": "boolean",
"description": "Indicates if the template is published (true) or a draft (false). Only published templates can be used by users without template management permission"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the template was created. Only present when the 'timestamps' section is requested via the include parameter."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the template was last updated. Only present when the 'timestamps' section is requested via the include parameter."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the template was archived. Absent when the template is not archived. Only present when the 'timestamps' section is requested via the include parameter."
},
"description": {
"type": "string",
"description": "Description of the template. Absent when the template has none. Only present when the 'details' section is requested via the include parameter."
},
"_entity_type": {
"enum": [
"template"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this template creates. Absent when the template has no type assigned"
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "The eIDAS assurance level that will be used when signing documents created from this template. Absent when none has been chosen. Only present when the 'signing_settings' section is requested via the include parameter."
},
"sequential_signing": {
"type": "boolean",
"description": "Whether signatories must sign in a specific order. Only present when the 'signing_settings' section is requested via the include parameter."
}
}
},
"description": "The matching templates on this page; present only for mode=list"
},
"in_app_url": {
"type": "string",
"description": "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"
},
"current_page": {
"type": "integer",
"description": "Which page of results this is; present only for mode=list"
}
}
},
"annotations": {
"title": "List templates",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description96/100
Moves a document to the done stage.
Use this tool when:
- The document's current stage is one of: draft, approved_draft, review, approved_review
- The document will NOT be signed through fynk (documents signed through fynk automatically move to done when fully signed)
This stage transition may be blocked by checkpoints on the document, or by unresolved preconditions (unresolved proposals, mandatory dynamic fields without values, active editor sessions or working copies, active signing phases, etc.). A refusal here reports just the first problem it runs into; call get-document-info first and read workflow_state.stage_transitions.done.blockers to see everything that is in the way at once.
The description explains the capability, when to use it, and what to expect.
Inputs98/100
Input documentation gives an agent enough context to populate the arguments.
document_uuid
UUID of the document to move to the done stage. If you don't already have the document's UUID, use the list-documents tool to find it.
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
}
}
}
Original tool metadata
{
"name": "move-document-to-done-stage",
"title": "Move document to done stage",
"description": "Moves a document to the done stage.\n\nUse this tool when:\n\n- The document's current stage is one of: draft, approved_draft, review, approved_review\n- The document will NOT be signed through fynk (documents signed through fynk automatically move to done when fully signed)\n\nThis stage transition may be blocked by checkpoints on the document, or by unresolved preconditions (unresolved proposals, mandatory dynamic fields without values, active editor sessions or working copies, active signing phases, etc.). A refusal here reports just the first problem it runs into; call get-document-info first and read workflow_state.stage_transitions.done.blockers to see everything that is in the way at once.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"document_uuid": {
"type": "string",
"description": "UUID of the document to move to the done stage. If you don't already have the document's UUID, use the list-documents tool to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
}
}
},
"annotations": {
"title": "Move document to done stage",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description96/100
Moves a document to the review stage.
Use this tool when:
- The document's current stage is one of: draft, approved_draft, approved_review, signing or done
- You want to share the document for review before moving to a later stage
This stage transition may be blocked by checkpoints on the document, or - when reverting a document that was not created from a template - by an account that only allows signing to start from a template. A refusal here reports just the first problem it runs into; call get-document-info first and read workflow_state.stage_transitions.review.blockers to see everything that is in the way at once.
If the document is in the process of being signed, or has been signed already, moving back to review will cancel the current signing process and invalidate any existing signatures.
The description explains the capability, when to use it, and what to expect.
Inputs97/100
Input documentation gives an agent enough context to populate the arguments.
document_uuid
UUID of the document to move to review. If you don't already have the document's UUID, use the list-documents tool to find it.
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
}
}
}
Original tool metadata
{
"name": "move-document-to-review-stage",
"title": "Move document to review stage",
"description": "Moves a document to the review stage.\n\nUse this tool when:\n\n- The document's current stage is one of: draft, approved_draft, approved_review, signing or done\n- You want to share the document for review before moving to a later stage\n\nThis stage transition may be blocked by checkpoints on the document, or - when reverting a document that was not created from a template - by an account that only allows signing to start from a template. A refusal here reports just the first problem it runs into; call get-document-info first and read workflow_state.stage_transitions.review.blockers to see everything that is in the way at once.\n\nIf the document is in the process of being signed, or has been signed already, moving back to review will cancel the current signing process and invalidate any existing signatures.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"document_uuid": {
"type": "string",
"description": "UUID of the document to move to review. If you don't already have the document's UUID, use the list-documents tool to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
}
}
},
"annotations": {
"title": "Move document to review stage",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description94/100
Moves a document to the signing stage and invites signatories to sign.
Use this tool when:
- The document's current stage is one of: draft, approved_draft, review, approved_review
- You want to start the signing process
This stage transition may be blocked by checkpoints on the document, or by unresolved preconditions (missing signature blocks, unresolved proposals, mandatory dynamic fields without values, active editor sessions or working copies, etc.). A refusal here reports just the first problem it runs into; call get-document-info first and read workflow_state.stage_transitions.signing.blockers to see everything that is in the way at once.
If the document has a signature_type set, the signature_type argument - if provided - must match it; otherwise the document's signature_type will be used. If the document has no signature_type, the one provided here (or the account default) will be used.
A qes or aes_eid signature_type requires sequential_signing=true. aes_eid is only available when the account has enabled AES (eID) in its settings.
The description explains the capability, when to use it, and what to expect.
Inputs92/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_uuid
UUID of the document to move to signing. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
signature_type
Signature security level to use. If not sent, either the document's assigned signature_type or the account default will be used.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
sequential_signing
If true, signatories sign in the order defined by their signing_order. Cannot be false when signature_type is qes or aes_eid. If not sent, the document's current setting is used.
Clear enough to supply this argument.
message
Custom message included in the signatory invitation email. If not sent, falls back to the document's external_signatory_invitation_message.
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
}
}
}
Original tool metadata
{
"name": "move-document-to-signing-stage",
"title": "Move document to signing stage",
"description": "Moves a document to the signing stage and invites signatories to sign.\n\nUse this tool when:\n\n- The document's current stage is one of: draft, approved_draft, review, approved_review\n- You want to start the signing process\n\nThis stage transition may be blocked by checkpoints on the document, or by unresolved preconditions (missing signature blocks, unresolved proposals, mandatory dynamic fields without values, active editor sessions or working copies, etc.). A refusal here reports just the first problem it runs into; call get-document-info first and read workflow_state.stage_transitions.signing.blockers to see everything that is in the way at once.\n\nIf the document has a signature_type set, the signature_type argument - if provided - must match it; otherwise the document's signature_type will be used. If the document has no signature_type, the one provided here (or the account default) will be used.\n\nA qes or aes_eid signature_type requires sequential_signing=true. aes_eid is only available when the account has enabled AES (eID) in its settings.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"message": {
"type": "string",
"description": "Custom message included in the signatory invitation email. If not sent, falls back to the document's external_signatory_invitation_message."
},
"document_uuid": {
"type": "string",
"description": "UUID of the document to move to signing. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "Signature security level to use. If not sent, either the document's assigned signature_type or the account default will be used."
},
"sequential_signing": {
"type": "boolean",
"description": "If true, signatories sign in the order defined by their signing_order. Cannot be false when signature_type is qes or aes_eid. If not sent, the document's current setting is used."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"workflow_state": {
"type": "object",
"properties": {
"can_start_signing": {
"type": "boolean",
"description": "Indicates if, in general, the signing process may currently be started for this document. Shorthand for stage_transitions.signing.can_transition; when it is false, stage_transitions.signing.blockers says what is in the way"
},
"stage_transitions": {
"type": "object",
"properties": {
"done": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Reaching the done stage. For a document that is being signed, this is what the outstanding signatures are reported under; for any other document it means being marked as done without ever being signed. A document in signing is never moved on to done by hand - it gets there by being fully signed, so can_transition means that nothing is outstanding, not that the document is to be moved"
},
"review": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Moving the document on to the review stage, where it is shared and negotiated"
},
"signing": {
"type": "object",
"properties": {
"blockers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Explains this one problem in words, covering all of its records at once. Relay it as prose of your own, not verbatim"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "UUID of the record, to be passed to the tool that changes it. Do not show to the user unless they ask for it"
},
"label": {
"type": "string",
"description": "How the record is named to the user. Absent when the record has no name yet - refer to it by what the requirement says about it (e.g. \"a party without an entity name\"), never by its uuid"
},
"_entity_type": {
"enum": [
"account",
"account_party",
"account_profile",
"account_user",
"attachment",
"automation",
"condition",
"custom_widget",
"dashboard",
"document",
"document_type",
"document_user",
"document_user_suggestion",
"dynamic_field",
"import",
"metadata",
"metadata_value",
"party",
"party_suggestion",
"playbook",
"signature_block",
"stored_file",
"tag",
"team",
"template",
"user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. What kind of record this is"
}
}
},
"description": "The records this one problem fails on, each of which has to be dealt with for it to go away. Empty when the problem is about the document as a whole rather than any of its records"
},
"_error_type": {
"type": "string",
"description": "Only relevant for tooling. Do not show to the user. Stable identifier of this kind of problem. A tool refusing the transition reports a message instead, not this identifier"
},
"requirement": {
"enum": [
"dynamic_field_value",
"party_address",
"party_entity_name",
"signatory_party",
"signatory_signature",
"signatory_signature_block",
"signature_block_in_content",
"signature_block_pdf_brick",
"signature_block_signatory",
"at_least_one_signatory",
"at_least_one_signature_block",
"checkpoint_approval",
"no_active_editor_session",
"no_active_signing_phase",
"no_active_working_copy",
"resolved_proposals"
],
"type": "string",
"description": "What still has to happen for this problem to go away. Absent when nothing about the document can be changed to resolve it: the message then says all there is to say, and none of your tools will help"
}
}
},
"description": "Everything currently keeping the document from being moved on to this stage, one entry per problem. Report all of them, not one at a time. Empty when can_transition or is_current_stage is true"
},
"can_transition": {
"type": "boolean",
"description": "Indicates whether the document can currently be moved on to this stage"
},
"is_current_stage": {
"type": "boolean",
"description": "True when the document is in this stage already. A document cannot be moved on to the stage it is in, so can_transition is false and blockers is empty - nothing is holding it up and there is no work left to do"
}
},
"description": "Starting the signing process"
}
},
"description": "The stages the document can be moved on to, each with what still has to happen for it. All of them are reported, not just the transition that is next in line: the requirements of a later stage can be worked on before its turn has come. Use this to answer what is blocking a document, or what is left to do."
},
"pending_checkpoint_approvers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_user": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the account user. Do not show to the user unless they ask for it. Pass to attach-account-users-to-team / detach-account-users-from-team to manage team membership."
},
"email": {
"type": "string",
"description": "Email address of the account user"
},
"last_name": {
"type": "string",
"description": "Last name of the account user"
},
"first_name": {
"type": "string",
"description": "First name of the account user"
},
"_entity_type": {
"enum": [
"account_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
},
"description": "The account user who is asked to approve"
},
"has_approved": {
"type": "boolean",
"description": "True if this approver has already given their approval"
},
"has_rejected": {
"type": "boolean",
"description": "True if this approver has rejected the approval request"
},
"checkpoint_step_uuid": {
"type": "string",
"description": "Identifier of the checkpoint step this approver belongs to. Approvers sharing the same value belong to the same step."
},
"checkpoint_step_policy": {
"enum": [
"one must approve",
"two must approve",
"all must approve"
],
"type": "string",
"description": "How many of the step's approvers must approve for the step to pass"
}
}
},
"description": "The approvers of the checkpoint currently blocking the document's progress, whether or not they have been asked to approve yet. Only populated when the signing process is prevented by a checkpoint that still needs to be passed; absent otherwise. Where a checkpoint approves in several steps, only the approvers of the step that is outstanding are reported - the later steps are nobody's turn yet."
},
"can_current_user_start_signing": {
"type": "boolean",
"description": "Indicates whether the user making this request may currently start the signing process for this document"
},
"current_user_has_document_user": {
"type": "boolean",
"description": "True if the user making this request has a 'document user' for this document. Generally must be true in order for the user to be able to make changes to the document. Assuming the user has sufficient permissions, join-document can be used to acquire a document user"
}
},
"description": "Gives an indication of which stage transitions, etc are possible to perform on this document. This object is technical state, not display content: when relaying it to the user, always render it as natural-language prose and never echo raw field names or snake_case values (e.g. say 'signing cannot be started yet because not every signature block has been assigned to a signatory' instead of mentioning 'can_start_signing' or 'signature_block_signatory')."
}
}
},
"annotations": {
"title": "Move document to signing stage",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Replaces the ENTIRE content of a draft template from an HTML string in a single destructive write.
Use this tool ONLY when:
- You are authoring the initial content of an empty, freshly created template (e.g. after
create-template-from-scratch), or
- The user has explicitly asked to discard the current content and rewrite the whole template.
This is the right tool for laying down a large body of content at once (e.g. a whole NDA). It writes
the whole template body in one go; there is no way to edit an individual node.
Do NOT use this tool to edit a template that already has content. Overwriting throws the existing
content away. If the template already has content, this tool refuses to run unless you pass
replace_existing_content=true to confirm the destructive overwrite. Read the current content with
get-template-html first, so anything worth keeping can be carried over into the new HTML.
Overwriting an existing body cannot be undone, so ask the user to confirm it before passing
replace_existing_content=true.
Only allowed on unpublished (draft) templates with a prosemirror_data content type.
Create the template's parties, signature blocks and dynamic fields before this call, so the body can
reference their existing records by ref_uuid. Key HTML forms:
- Dynamic field: <span data-dynamic-field data-ref-uuid="..."></span>
- Party: <span data-party data-ref-uuid="..." data-format="name|reference|address|address:inline"></span>
- Signatures: <div data-signatures><span data-signature-block data-ref-uuid="..."></span></div>
- Numbered clause: <div data-list data-kind="ordered"><p>Clause text</p></div>
- Cross-reference: <span data-section-ref data-uuid="11111111-1111-4111-8111-111111111111"></span> (set a
matching UUID you generate as data-uuid on the target ordered list node in the same call)
Clause numbers are always computed by fynk: text starting with a clause marker ("1.", "(a)", "§ 5") is
rejected. Headings go up to <h3>. No two nodes may share a data-uuid (except <span data-section-ref>,
which repeats the target clause's uuid). Copy images, dynamic tables and signing vote blocks over
exactly as get-template-html returned them; leaving one out removes it.
The response carries a `warnings` list alongside the stored HTML: what the template still lacks to
work as a template. The write succeeded either way, but act on them before reporting the template as
finished.
Read the fynk://articles/working-with-template-content resource before your first call writing template content in a conversation: it covers nested and non-decimal clause numbering (1.1, (a), I., § 1), numbered sections vs headings, multi-paragraph clauses and alignment.
The description explains the capability, when to use it, and what to expect.
Inputs83/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
template_uuid
UUID of the unpublished template whose content should be replaced
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
html
Full HTML of the template content, in the format described by the fynk://articles/working-with-template-content resource. Replaces the entire document
Clear enough to supply this argument.
replace_existing_content
Required confirmation (true) to overwrite a template that already has content. Omit (or false) for empty templates. Defaults to false.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"html": {
"type": "string",
"description": "The stored template content serialised back to HTML. Addressable nodes carry a data-uuid attribute usable in subsequent operations."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Advisory notes on what the stored template is still missing to work as a template: dynamic fields or signature blocks that exist but are placed nowhere, a body naming its parties as fixed text. The write succeeded; act on these before reporting the template as finished."
}
}
}
Original tool metadata
{
"name": "replace-template-content",
"title": "Replace template content",
"description": "Replaces the ENTIRE content of a draft template from an HTML string in a single destructive write.\n\nUse this tool ONLY when:\n\n- You are authoring the initial content of an empty, freshly created template (e.g. after\n create-template-from-scratch), or\n- The user has explicitly asked to discard the current content and rewrite the whole template.\n\nThis is the right tool for laying down a large body of content at once (e.g. a whole NDA). It writes\nthe whole template body in one go; there is no way to edit an individual node.\n\nDo NOT use this tool to edit a template that already has content. Overwriting throws the existing\ncontent away. If the template already has content, this tool refuses to run unless you pass\nreplace_existing_content=true to confirm the destructive overwrite. Read the current content with\nget-template-html first, so anything worth keeping can be carried over into the new HTML.\n\nOverwriting an existing body cannot be undone, so ask the user to confirm it before passing\nreplace_existing_content=true.\n\nOnly allowed on unpublished (draft) templates with a prosemirror_data content type.\n\nCreate the template's parties, signature blocks and dynamic fields before this call, so the body can\nreference their existing records by ref_uuid. Key HTML forms:\n\n- Dynamic field: <span data-dynamic-field data-ref-uuid=\"...\"></span>\n- Party: <span data-party data-ref-uuid=\"...\" data-format=\"name|reference|address|address:inline\"></span>\n- Signatures: <div data-signatures><span data-signature-block data-ref-uuid=\"...\"></span></div>\n- Numbered clause: <div data-list data-kind=\"ordered\"><p>Clause text</p></div>\n- Cross-reference: <span data-section-ref data-uuid=\"11111111-1111-4111-8111-111111111111\"></span> (set a\n matching UUID you generate as data-uuid on the target ordered list node in the same call)\n\nClause numbers are always computed by fynk: text starting with a clause marker (\"1.\", \"(a)\", \"§ 5\") is\nrejected. Headings go up to <h3>. No two nodes may share a data-uuid (except <span data-section-ref>,\nwhich repeats the target clause's uuid). Copy images, dynamic tables and signing vote blocks over\nexactly as get-template-html returned them; leaving one out removes it.\n\nThe response carries a `warnings` list alongside the stored HTML: what the template still lacks to\nwork as a template. The write succeeded either way, but act on them before reporting the template as\nfinished.\n\nRead the fynk://articles/working-with-template-content resource before your first call writing template content in a conversation: it covers nested and non-decimal clause numbering (1.1, (a), I., § 1), numbered sections vs headings, multi-paragraph clauses and alignment.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid",
"html"
],
"properties": {
"html": {
"type": "string",
"description": "Full HTML of the template content, in the format described by the fynk://articles/working-with-template-content resource. Replaces the entire document"
},
"template_uuid": {
"type": "string",
"description": "UUID of the unpublished template whose content should be replaced"
},
"replace_existing_content": {
"type": "boolean",
"description": "Required confirmation (true) to overwrite a template that already has content. Omit (or false) for empty templates. Defaults to false."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"html": {
"type": "string",
"description": "The stored template content serialised back to HTML. Addressable nodes carry a data-uuid attribute usable in subsequent operations."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Advisory notes on what the stored template is still missing to work as a template: dynamic fields or signature blocks that exist but are placed nowhere, a body naming its parties as fixed text. The write succeeded; act on these before reporting the template as finished."
}
}
},
"annotations": {
"title": "Replace template content",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description93/100
Restores an archived document, making it show up in the account's default document lists again.
Use this tool when:
- An archived document should become actively used again
- The user asks to restore or unarchive a document
The document must currently be archived. To find archived documents, filter list-documents for archived documents.
The description explains the capability, when to use it, and what to expect.
Inputs97/100
Input documentation gives an agent enough context to populate the arguments.
document_uuid
UUID of the archived document to restore. If you don't already have the document's UUID, filter the list-documents tool for archived documents to find it.
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
}
}
Original tool metadata
{
"name": "restore-document",
"title": "Restore document",
"description": "Restores an archived document, making it show up in the account's default document lists again.\n\nUse this tool when:\n\n- An archived document should become actively used again\n- The user asks to restore or unarchive a document\n\nThe document must currently be archived. To find archived documents, filter list-documents for archived documents.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"document_uuid": {
"type": "string",
"description": "UUID of the archived document to restore. If you don't already have the document's UUID, filter the list-documents tool for archived documents to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the document was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the document was last updated."
},
"archived_at": {
"type": "string",
"format": "date-time",
"description": "When the document was archived. Absent when the document is not archived."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
}
},
"annotations": {
"title": "Restore document",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description97/100
Search the account's automations by name.
Use this tool when:
- You need an automation's UUID to filter list-documents by automation
- You want to find automations matching a search term
Returns automations whose name matches the query, most recently created first. Results are capped, so narrow the
query if you don't find what you're looking for.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
query
Search term matched against automation names (case-insensitive, min 3 characters)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
limit
Maximum number of automations to return (default and max: 25)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"automations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the automation"
},
"uuid": {
"type": "string",
"description": "Identifier for the automation. Use this to filter list-documents by automation"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the automation was created"
},
"_entity_type": {
"enum": [
"automation"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
}
Original tool metadata
{
"name": "search-automations",
"title": "Search automations",
"description": "Search the account's automations by name.\n\nUse this tool when:\n\n- You need an automation's UUID to filter list-documents by automation\n- You want to find automations matching a search term\n\nReturns automations whose name matches the query, most recently created first. Results are capped, so narrow the\nquery if you don't find what you're looking for.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"default": 25,
"maximum": 25,
"minimum": 1,
"description": "Maximum number of automations to return (default and max: 25)"
},
"query": {
"type": "string",
"maxLength": 255,
"minLength": 3,
"description": "Search term matched against automation names (case-insensitive, min 3 characters)"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"automations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the automation"
},
"uuid": {
"type": "string",
"description": "Identifier for the automation. Use this to filter list-documents by automation"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the automation was created"
},
"_entity_type": {
"enum": [
"automation"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
},
"annotations": {
"title": "Search automations",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Searches a document's text for literal terms or regular expressions and returns each match with surrounding text.
Use this tool when:
- Finding a specific clause or term (e.g., notice period, liability cap, governing law).
- Checking whether and where a document mentions something.
Prefer this over get-document-text when you only need specific passages. If a snippet is too short, search again with a larger context_chars (up to 2,000); for more than that, call get-document-text with offset as many characters before the match as you need (or 0 if the match is nearer the start) and max_chars about twice that, rather than reading the whole document.
Matching behavior:
- Queries are literal text by default (no escaping needed for ".", "(", "$", "[").
- Ignores case unless case_sensitive is true (e.g., to tell the defined term "Agreement" from "agreement").
- Whitespace in a literal query matches any run of whitespace, including line breaks.
- Matches inside longer words ("term" matches "termination" and "determined"); use regex mode with \b for whole words.
- Pass several queries in one call for synonyms or translations (e.g., "Kündigung", "termination"); each match names the query it matched.
- Returns the earliest matches in document order, up to max_results. If total_matches exceeds the number returned, narrow the query or raise max_results.
Regex mode (regex: true):
- Each query is a PCRE regular expression, used as written, without delimiters. Escape special characters to match them literally (\$, \., \().
- Use it for whole words (\btermination\b), amounts (€\s?[\d.,]+), dates (\d{1,2}\.\d{1,2}\.\d{4}) and clause references (§\s?\d+).
- Write \s+ between words: a space matches only a space, and the text breaks lines within sentences, especially in PDFs.
- A pattern must match at least one character. Avoid nested repetition such as (\w+\s?)+, which can take too long and fail.
Handoff & errors:
- Offsets are character indices into the same text get-document-text returns. Pass the returned text_hash to get-document-text to make sure the text hasn't changed in between.
- If there is no text to search yet (text recognition of a PDF still running, or a new document's text not yet prepared) or none at all (password-protected PDF, unreadable scan), the call fails with a message giving the cause and whether retrying later can help.
- The text follows an edit within a few seconds, so right after changing a document it may still show the previous wording.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_uuid
UUID of the document to search. If you don't already have the document's UUID, use the list-documents tool to find it.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
queries
The text to look for, up to 200 characters each: literal text, or regular expressions if regex is true. A match of any of them counts.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
regex
Whether each query is a PCRE regular expression rather than literal text. Defaults to false.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
case_sensitive
Whether upper and lower case must match. Defaults to false.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
max_results
Maximum total matches across all queries, returning the earliest ones in document order. Defaults to 20.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
context_chars
How many characters of text to include on each side of a match in its snippet. Defaults to 300.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query that matched, as given in queries."
},
"offset": {
"type": "integer",
"description": "The character offset the matched text starts at, not where its snippet starts."
},
"snippet": {
"type": "string",
"description": "The matched text with up to context_chars characters of the text on each side. A match longer than 1,000 characters is cut to that many, with no text after it."
},
"end_offset": {
"type": "integer",
"description": "The character offset the matched text ends at (exclusive), not where its snippet ends."
}
}
},
"description": "The matches, in the order they occur in the text."
},
"text_hash": {
"type": "string",
"description": "Identifies the version of the text that was searched. get-document-text takes it, to read the same version."
},
"total_chars": {
"type": "integer",
"description": "The length of the document's whole text, in characters."
},
"total_matches": {
"type": "integer",
"description": "How many matches the text holds in all. More than the number of matches returned when max_results cut the list short."
}
}
}
Original tool metadata
{
"name": "search-document-text",
"title": "Search document text",
"description": "Searches a document's text for literal terms or regular expressions and returns each match with surrounding text.\n\nUse this tool when:\n\n- Finding a specific clause or term (e.g., notice period, liability cap, governing law).\n- Checking whether and where a document mentions something.\n\nPrefer this over get-document-text when you only need specific passages. If a snippet is too short, search again with a larger context_chars (up to 2,000); for more than that, call get-document-text with offset as many characters before the match as you need (or 0 if the match is nearer the start) and max_chars about twice that, rather than reading the whole document.\n\nMatching behavior:\n\n- Queries are literal text by default (no escaping needed for \".\", \"(\", \"$\", \"[\").\n- Ignores case unless case_sensitive is true (e.g., to tell the defined term \"Agreement\" from \"agreement\").\n- Whitespace in a literal query matches any run of whitespace, including line breaks.\n- Matches inside longer words (\"term\" matches \"termination\" and \"determined\"); use regex mode with \\b for whole words.\n- Pass several queries in one call for synonyms or translations (e.g., \"Kündigung\", \"termination\"); each match names the query it matched.\n- Returns the earliest matches in document order, up to max_results. If total_matches exceeds the number returned, narrow the query or raise max_results.\n\nRegex mode (regex: true):\n\n- Each query is a PCRE regular expression, used as written, without delimiters. Escape special characters to match them literally (\\$, \\., \\().\n- Use it for whole words (\\btermination\\b), amounts (€\\s?[\\d.,]+), dates (\\d{1,2}\\.\\d{1,2}\\.\\d{4}) and clause references (§\\s?\\d+).\n- Write \\s+ between words: a space matches only a space, and the text breaks lines within sentences, especially in PDFs.\n- A pattern must match at least one character. Avoid nested repetition such as (\\w+\\s?)+, which can take too long and fail.\n\nHandoff & errors:\n\n- Offsets are character indices into the same text get-document-text returns. Pass the returned text_hash to get-document-text to make sure the text hasn't changed in between.\n- If there is no text to search yet (text recognition of a PDF still running, or a new document's text not yet prepared) or none at all (password-protected PDF, unreadable scan), the call fails with a message giving the cause and whether retrying later can help.\n- The text follows an edit within a few seconds, so right after changing a document it may still show the previous wording.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"queries"
],
"properties": {
"regex": {
"type": "boolean",
"default": false,
"description": "Whether each query is a PCRE regular expression rather than literal text. Defaults to false."
},
"queries": {
"type": "array",
"items": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"maxItems": 10,
"minItems": 1,
"description": "The text to look for, up to 200 characters each: literal text, or regular expressions if regex is true. A match of any of them counts.",
"uniqueItems": true
},
"max_results": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Maximum total matches across all queries, returning the earliest ones in document order. Defaults to 20."
},
"context_chars": {
"type": "integer",
"default": 300,
"maximum": 2000,
"minimum": 0,
"description": "How many characters of text to include on each side of a match in its snippet. Defaults to 300."
},
"document_uuid": {
"type": "string",
"format": "uuid",
"description": "UUID of the document to search. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"case_sensitive": {
"type": "boolean",
"default": false,
"description": "Whether upper and lower case must match. Defaults to false."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query that matched, as given in queries."
},
"offset": {
"type": "integer",
"description": "The character offset the matched text starts at, not where its snippet starts."
},
"snippet": {
"type": "string",
"description": "The matched text with up to context_chars characters of the text on each side. A match longer than 1,000 characters is cut to that many, with no text after it."
},
"end_offset": {
"type": "integer",
"description": "The character offset the matched text ends at (exclusive), not where its snippet ends."
}
}
},
"description": "The matches, in the order they occur in the text."
},
"text_hash": {
"type": "string",
"description": "Identifies the version of the text that was searched. get-document-text takes it, to read the same version."
},
"total_chars": {
"type": "integer",
"description": "The length of the document's whole text, in characters."
},
"total_matches": {
"type": "integer",
"description": "How many matches the text holds in all. More than the number of matches returned when max_results cut the list short."
}
}
},
"annotations": {
"title": "Search document text",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description84/100
Search the account's document users (individual people who have access to documents) by name or email.
Use this tool when:
- You need a person's name to filter list-documents by document user
- You want to find document users matching a search term
Searches first name, last name and email. A two-word query is matched as firstname + lastname. Results are capped
and de-duplicated by name, so narrow the query if you don't find who you're looking for.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
query
Search term matched against document user first name, last name and email (case-insensitive, min 3 characters). A two-word query is matched as firstname + lastname
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
limit
Maximum number of document users to return (default and max: 25)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"document_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"last_name": {
"type": "string",
"description": "Last name of the document user. Combine with first_name to filter list-documents by document user"
},
"first_name": {
"type": "string",
"description": "First name of the document user. Combine with last_name to filter list-documents by document user"
},
"_entity_type": {
"enum": [
"document_user_suggestion"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
}
Original tool metadata
{
"name": "search-document-users",
"title": "Search document users",
"description": "Search the account's document users (individual people who have access to documents) by name or email.\n\nUse this tool when:\n\n- You need a person's name to filter list-documents by document user\n- You want to find document users matching a search term\n\nSearches first name, last name and email. A two-word query is matched as firstname + lastname. Results are capped\nand de-duplicated by name, so narrow the query if you don't find who you're looking for.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"default": 25,
"maximum": 25,
"minimum": 1,
"description": "Maximum number of document users to return (default and max: 25)"
},
"query": {
"type": "string",
"maxLength": 255,
"minLength": 3,
"description": "Search term matched against document user first name, last name and email (case-insensitive, min 3 characters). A two-word query is matched as firstname + lastname"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"document_users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"last_name": {
"type": "string",
"description": "Last name of the document user. Combine with first_name to filter list-documents by document user"
},
"first_name": {
"type": "string",
"description": "First name of the document user. Combine with last_name to filter list-documents by document user"
},
"_entity_type": {
"enum": [
"document_user_suggestion"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
},
"annotations": {
"title": "Search document users",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description94/100
Search the account's external parties (people and businesses that appear on documents) by name.
External parties are the counterparties on documents — the entities on the OTHER side of an agreement, which do not belong to the account. They are distinct from account parties, which are the account's own entities (the company the user belongs to and its subsidiaries / group companies). Phrasing like "our", "we", "us", "my company" or "our subsidiary" refers to an account party, not an external party — in that case use list-account-parties instead.
Use this tool when:
- You need a party's name to filter list-documents by external party
- You want to find parties matching a search term
Matches the party's name (entity_name). Results are capped and de-duplicated by name, so narrow the query if you
don't find who you're looking for. If you are looking for a named entity and it does not appear here, it may be an
account party (the account's own side) instead — try list-account-parties before concluding it does not exist.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
query
Search term matched against external party names (case-insensitive, min 3 characters)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
limit
Maximum number of external parties to return (default and max: 25)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"external_parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"entity_name": {
"type": "string",
"description": "The name of the party. Use this to filter list-documents by external party"
},
"_entity_type": {
"enum": [
"party_suggestion"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
}
Original tool metadata
{
"name": "search-external-parties",
"title": "Search external parties",
"description": "Search the account's external parties (people and businesses that appear on documents) by name.\n\nExternal parties are the counterparties on documents — the entities on the OTHER side of an agreement, which do not belong to the account. They are distinct from account parties, which are the account's own entities (the company the user belongs to and its subsidiaries / group companies). Phrasing like \"our\", \"we\", \"us\", \"my company\" or \"our subsidiary\" refers to an account party, not an external party — in that case use list-account-parties instead.\n\nUse this tool when:\n\n- You need a party's name to filter list-documents by external party\n- You want to find parties matching a search term\n\nMatches the party's name (entity_name). Results are capped and de-duplicated by name, so narrow the query if you\ndon't find who you're looking for. If you are looking for a named entity and it does not appear here, it may be an\naccount party (the account's own side) instead — try list-account-parties before concluding it does not exist.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"default": 25,
"maximum": 25,
"minimum": 1,
"description": "Maximum number of external parties to return (default and max: 25)"
},
"query": {
"type": "string",
"maxLength": 255,
"minLength": 3,
"description": "Search term matched against external party names (case-insensitive, min 3 characters)"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"external_parties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"entity_name": {
"type": "string",
"description": "The name of the party. Use this to filter list-documents by external party"
},
"_entity_type": {
"enum": [
"party_suggestion"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
},
"annotations": {
"title": "Search external parties",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description97/100
Search the account's imports by name.
Use this tool when:
- You need an import's UUID to filter list-documents by import
- You want to find imports matching a search term
Returns imports whose name matches the query, most recently created first. Results are capped, so narrow the
query if you don't find what you're looking for.
The description explains the capability, when to use it, and what to expect.
Inputs75/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
query
Search term matched against import names (case-insensitive, min 3 characters)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
limit
Maximum number of imports to return (default and max: 25)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"imports": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the import"
},
"uuid": {
"type": "string",
"description": "Identifier for the import. Use this to filter list-documents by import"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the import was created"
},
"_entity_type": {
"enum": [
"import"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
}
Original tool metadata
{
"name": "search-imports",
"title": "Search imports",
"description": "Search the account's imports by name.\n\nUse this tool when:\n\n- You need an import's UUID to filter list-documents by import\n- You want to find imports matching a search term\n\nReturns imports whose name matches the query, most recently created first. Results are capped, so narrow the\nquery if you don't find what you're looking for.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"default": 25,
"maximum": 25,
"minimum": 1,
"description": "Maximum number of imports to return (default and max: 25)"
},
"query": {
"type": "string",
"maxLength": 255,
"minLength": 3,
"description": "Search term matched against import names (case-insensitive, min 3 characters)"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"imports": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the import"
},
"uuid": {
"type": "string",
"description": "Identifier for the import. Use this to filter list-documents by import"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the import was created"
},
"_entity_type": {
"enum": [
"import"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
}
}
},
"annotations": {
"title": "Search imports",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description98/100
Publishes a template, making it available to the whole account, or unpublishes it back to a draft.
Use this tool when:
- A template is finished, the user has read it over and asks to publish it, release it or hand it to
their colleagues
- Documents are to be created from a template that is still a draft
- The user asks to take a published template out of circulation
- A published template's content has to be rewritten, which replace-template-content refuses until the
template is a draft again
Publishing is what puts a template into service. list-templates shows a draft only to the users who
manage templates, so until it is published nobody else can find it to create a document from. It also
settles the body, which replace-template-content only writes while the template is a draft.
A template that was just authored is therefore left as a draft rather than published on the spot. Tell
the user what was written, let them read it over, and publish once they say it is right. Confirm either
direction with them: publishing offers the template to their colleagues, unpublishing takes it away
from them.
Unpublishing changes nothing about the documents already created from the template. They keep the content
they were created with; the template is simply no longer offered for new ones.
The description explains the capability, when to use it, and what to expect.
Inputs98/100
Input documentation gives an agent enough context to populate the arguments.
template_uuid
UUID of the template to publish or unpublish. Use list-templates to find it.
Clear enough to supply this argument.
published
true publishes the template, making it available to the whole account. false returns it to a draft, which only users who manage templates see and which replace-template-content can rewrite.
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the template in fynk. Only present when your user has template editing permission"
},
"name": {
"type": "string",
"description": "Name of the template"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the template. Do not show to the user unless they ask for it"
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"published": {
"type": "boolean",
"description": "Indicates if the template is published (true) or a draft (false). Only published templates can be used by users without template management permission"
},
"_entity_type": {
"enum": [
"template"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this template creates. Absent when the template has no type assigned"
}
}
}
Original tool metadata
{
"name": "set-template-published-state",
"title": "Publish or unpublish template",
"description": "Publishes a template, making it available to the whole account, or unpublishes it back to a draft.\n\nUse this tool when:\n\n- A template is finished, the user has read it over and asks to publish it, release it or hand it to\n their colleagues\n- Documents are to be created from a template that is still a draft\n- The user asks to take a published template out of circulation\n- A published template's content has to be rewritten, which replace-template-content refuses until the\n template is a draft again\n\nPublishing is what puts a template into service. list-templates shows a draft only to the users who\nmanage templates, so until it is published nobody else can find it to create a document from. It also\nsettles the body, which replace-template-content only writes while the template is a draft.\n\nA template that was just authored is therefore left as a draft rather than published on the spot. Tell\nthe user what was written, let them read it over, and publish once they say it is right. Confirm either\ndirection with them: publishing offers the template to their colleagues, unpublishing takes it away\nfrom them.\n\nUnpublishing changes nothing about the documents already created from the template. They keep the content\nthey were created with; the template is simply no longer offered for new ones.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid",
"published"
],
"properties": {
"published": {
"type": "boolean",
"description": "true publishes the template, making it available to the whole account. false returns it to a draft, which only users who manage templates see and which replace-template-content can rewrite."
},
"template_uuid": {
"type": "string",
"description": "UUID of the template to publish or unpublish. Use list-templates to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the template in fynk. Only present when your user has template editing permission"
},
"name": {
"type": "string",
"description": "Name of the template"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the template. Do not show to the user unless they ask for it"
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"published": {
"type": "boolean",
"description": "Indicates if the template is published (true) or a draft (false). Only published templates can be used by users without template management permission"
},
"_entity_type": {
"enum": [
"template"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this template creates. Absent when the template has no type assigned"
}
}
},
"annotations": {
"title": "Publish or unpublish template",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description97/100
Change a document type the account can see, whether it is one of the account's own types or one of fynk's system
document types.
Use this tool when:
- The user asks to rename a document type, or to change what it covers
- AI analyses keep picking the wrong document type, or miss one, and its `prompt` needs sharpening
- The user asks to change which metadata fields are relevant for documents of a type
- The user asks to put one of fynk's document types back to how fynk provides it
- The user asks to bring back one of fynk's document types that was removed from the account
`document_type_uuid` comes from list-account-document-types; request include=["details"] there to see a type's
current description and prompt. Send only the arguments that should change; everything left out keeps its
current value. Sending `null` for `description` or `prompt` clears it.
list-account-document-types marks fynk's own document types with `provided_by_fynk`, and those this account has
customised with `customised` as well. A change to one of fynk's types applies to this account alone. The first
change to one that is not `customised` yet replaces it, for this account, with a customised copy that has a uuid of
its own, and moves the account's documents and templates onto it; use the uuid this tool returns from then on. That
first change must include `name`, because the copy carries its name as written here in every language the account's
users read fynk in, instead of fynk's translations. So send the name the user knows the type by, e.g.
"Non-Disclosure Agreement", rather than a respelling of the listed name.
Send `reset_to_fynk_default: true` on its own for a `customised` type to drop the customisation, putting fynk's own
name, description and prompt back and moving the documents and templates back onto it. The type's uuid changes
back to fynk's, which this tool returns.
A type that list-account-document-types reports as `deactivated` (with filter_state "deactivated" or "all") is one
of fynk's that was removed from the account. Send `reactivate: true` on its own to bring it back as fynk provides
it; customise it afterwards with a further call.
`prompt` is what fynk's AI analyses read when deciding whether a document is of this type. Phrase it as a
selection criterion, the way fynk's own types do: "Select this type if the document defines the terms under which
a tenant rents property from a landlord, including rent amount, duration, deposit, and usage conditions."
`relevant_metadata_uuids` replaces the metadata fields specifically relevant for the type, which decides the fields
fynk's AI analyses look for in documents of this type. Send every field that should remain: one left out is no
longer extracted from the type's documents, though values already recorded stay. Fields relevant for every
document type apply regardless and are unaffected. list-account-metadata reports the current state: each field
there names the document types it is relevant for.
The description explains the capability, when to use it, and what to expect.
Inputs86/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_type_uuid
Uuid of the document type to change, from list-account-document-types
Clear enough to supply this argument.
name
New name of the document type, unique among the account's document types, in Title Case (max 255 characters), e.g. "Supplier Framework Agreement". Required on the first change to one of fynk's document types
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
description
One sentence describing what the document type covers, shown to users (max 1024 characters). null clears it
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
prompt
Selection criterion the AI analyses use to decide whether a document is of this type (max 1024 characters), phrased like "Select this type if the document ...". null clears it, after which the analyses rarely pick the type
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
relevant_metadata_uuids
Replaces the fields specifically relevant for this document type: uuids from list-account-metadata, of the account's own fields and system_reference fields. Send every field that should remain; an empty list or null leaves only the fields relevant for every document type
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
reset_to_fynk_default
Only true, sent on its own: drops the account's customisation of one of fynk's document types, returning it to fynk's own configuration and uuid
Clear enough to supply this argument.
reactivate
Only true, sent on its own: brings back one of fynk's document types that is deactivated for this account, with its default settings
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document type"
},
"uuid": {
"type": "string",
"description": "Identifier for the document type. Do not show to the user unless they ask for it"
},
"prompt": {
"type": "string",
"description": "The selection criterion fynk's AI analyses use to decide whether a document is of this type. Absent when it has none, in which case the analyses rarely pick the type."
},
"customised": {
"type": "boolean",
"description": "Present, and true, only for a system document type that this account has customised. The customisation can be dropped again with update-account-document-type and `reset_to_fynk_default`"
},
"description": {
"type": "string",
"description": "What the document type covers, as shown to users configuring it. Absent when it has none."
},
"_entity_type": {
"enum": [
"document_type"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"provided_by_fynk": {
"type": "boolean",
"description": "Present, and true, only for one of fynk's built-in system document types. The account can customise or deactivate such a type but never delete it. Absent for a type the account created itself"
}
}
}
Original tool metadata
{
"name": "update-account-document-type",
"title": "Update account document type",
"description": "Change a document type the account can see, whether it is one of the account's own types or one of fynk's system\ndocument types.\n\nUse this tool when:\n\n- The user asks to rename a document type, or to change what it covers\n- AI analyses keep picking the wrong document type, or miss one, and its `prompt` needs sharpening\n- The user asks to change which metadata fields are relevant for documents of a type\n- The user asks to put one of fynk's document types back to how fynk provides it\n- The user asks to bring back one of fynk's document types that was removed from the account\n\n`document_type_uuid` comes from list-account-document-types; request include=[\"details\"] there to see a type's\ncurrent description and prompt. Send only the arguments that should change; everything left out keeps its\ncurrent value. Sending `null` for `description` or `prompt` clears it.\n\nlist-account-document-types marks fynk's own document types with `provided_by_fynk`, and those this account has\ncustomised with `customised` as well. A change to one of fynk's types applies to this account alone. The first\nchange to one that is not `customised` yet replaces it, for this account, with a customised copy that has a uuid of\nits own, and moves the account's documents and templates onto it; use the uuid this tool returns from then on. That\nfirst change must include `name`, because the copy carries its name as written here in every language the account's\nusers read fynk in, instead of fynk's translations. So send the name the user knows the type by, e.g.\n\"Non-Disclosure Agreement\", rather than a respelling of the listed name.\n\nSend `reset_to_fynk_default: true` on its own for a `customised` type to drop the customisation, putting fynk's own\nname, description and prompt back and moving the documents and templates back onto it. The type's uuid changes\nback to fynk's, which this tool returns.\n\nA type that list-account-document-types reports as `deactivated` (with filter_state \"deactivated\" or \"all\") is one\nof fynk's that was removed from the account. Send `reactivate: true` on its own to bring it back as fynk provides\nit; customise it afterwards with a further call.\n\n`prompt` is what fynk's AI analyses read when deciding whether a document is of this type. Phrase it as a\nselection criterion, the way fynk's own types do: \"Select this type if the document defines the terms under which\na tenant rents property from a landlord, including rent amount, duration, deposit, and usage conditions.\"\n\n`relevant_metadata_uuids` replaces the metadata fields specifically relevant for the type, which decides the fields\nfynk's AI analyses look for in documents of this type. Send every field that should remain: one left out is no\nlonger extracted from the type's documents, though values already recorded stay. Fields relevant for every\ndocument type apply regardless and are unaffected. list-account-metadata reports the current state: each field\nthere names the document types it is relevant for.",
"inputSchema": {
"type": "object",
"required": [
"document_type_uuid"
],
"properties": {
"name": {
"type": "string",
"description": "New name of the document type, unique among the account's document types, in Title Case (max 255 characters), e.g. \"Supplier Framework Agreement\". Required on the first change to one of fynk's document types"
},
"prompt": {
"type": [
"string",
"null"
],
"description": "Selection criterion the AI analyses use to decide whether a document is of this type (max 1024 characters), phrased like \"Select this type if the document ...\". null clears it, after which the analyses rarely pick the type"
},
"reactivate": {
"type": "boolean",
"description": "Only true, sent on its own: brings back one of fynk's document types that is deactivated for this account, with its default settings"
},
"description": {
"type": [
"string",
"null"
],
"description": "One sentence describing what the document type covers, shown to users (max 1024 characters). null clears it"
},
"document_type_uuid": {
"type": "string",
"description": "Uuid of the document type to change, from list-account-document-types"
},
"reset_to_fynk_default": {
"type": "boolean",
"description": "Only true, sent on its own: drops the account's customisation of one of fynk's document types, returning it to fynk's own configuration and uuid"
},
"relevant_metadata_uuids": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Replaces the fields specifically relevant for this document type: uuids from list-account-metadata, of the account's own fields and system_reference fields. Send every field that should remain; an empty list or null leaves only the fields relevant for every document type"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document type"
},
"uuid": {
"type": "string",
"description": "Identifier for the document type. Do not show to the user unless they ask for it"
},
"prompt": {
"type": "string",
"description": "The selection criterion fynk's AI analyses use to decide whether a document is of this type. Absent when it has none, in which case the analyses rarely pick the type."
},
"customised": {
"type": "boolean",
"description": "Present, and true, only for a system document type that this account has customised. The customisation can be dropped again with update-account-document-type and `reset_to_fynk_default`"
},
"description": {
"type": "string",
"description": "What the document type covers, as shown to users configuring it. Absent when it has none."
},
"_entity_type": {
"enum": [
"document_type"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"provided_by_fynk": {
"type": "boolean",
"description": "Present, and true, only for one of fynk's built-in system document types. The account can customise or deactivate such a type but never delete it. Absent for a type the account created itself"
}
}
},
"annotations": {
"title": "Update account document type",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description93/100
Change the definition of a metadata field the account can see, whether it is one of the account's own fields or a
`system_reference` field provided by fynk.
Use this tool when:
- The user asks to rename a metadata field, or to change what it holds
- The user asks to start or stop having fynk's AI analyses fill a field in
- The user asks to change which document types a field applies to
- The user asks to put one of fynk's fields back to how fynk provides it
`metadata_uuid` comes from list-account-metadata. Send only the arguments that should change; everything left out
keeps its current value. Sending `null` for `description`, `prompt` or `keywords` clears it.
A field's `name` and `value_type` are fixed at creation and this tool cannot change either. To rename a field for
the people using it, change `display_name` - in Title Case, the way fynk's own fields are named ("Signing Date",
"Contract Value").
fynk's own `system_reference` fields can be reconfigured per account: the change applies to this account alone and
leaves the field as fynk defines it everywhere else, and putting an argument back to fynk's own value stops
overriding it. fynk's other system field types (`system`, `system_autofilled`, `system_computed`) are maintained
entirely by fynk and cannot be changed at all.
One of fynk's fields that an account has reconfigured reports the arguments it overrides as `overridden_fields`,
from this tool and from list-account-metadata alike. Send `reset_to_fynk_default: true` on its own to drop all of
them at once, leaving the account reading the field exactly as fynk provides it; there is no per-argument reset, so
re-send whichever of them are still wanted afterwards.
`select_values` replaces the whole list of options, which are literally what a user picks from, so write them as
presentable labels: "Net 30", not "net 30". They govern what can be chosen from now on and leave values already
recorded on documents as they are, so prefer adding an option to renaming or removing one. Since the list is
replaced wholesale, send every option that should remain: one left out is one taken away.
Taking away an option that documents already hold is refused until the user has confirmed it. Such a value stays
on its document but can no longer be filtered for. The refusal names the options and how many documents and
templates still use each - then repeat the call with `confirmed_removing_options_in_use: true`. Send that only in
answer to such a refusal, never as a matter of course. `reset_to_fynk_default` is covered the same way, since
putting fynk's own options back takes away any the account added to them.
Put the effect to the user in their own terms and ask before going ahead - "removing Net 90 would affect 3
documents that still use it, shall I go ahead?" - rather than quoting the refusal back at them.
`prompt` and `keywords` decide whether fynk's AI analyses fill this field in - a `prompt` puts the field into them,
`keywords` only assist it and do nothing on their own. So set both together to have a field extracted, and clear
`prompt` to take a field back out of the analyses and leave it to only be filled in by hand.
The description explains the capability, when to use it, and what to expect.
Inputs91/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
metadata_uuid
UUID of the metadata field to update, as reported by list-account-metadata
Clear enough to supply this argument.
display_name
New human-readable name shown in the UI, in Title Case (max 255 characters), e.g. "Discount Rate". The field's programmatic name cannot be changed
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
select_values
Replaces the whole list of options a user picks from, written as presentable labels, e.g. ["Net 30", "Net 60"]. Only for "select" and "multi_select" fields
Clear enough to supply this argument.
description
What the field holds, shown to users configuring it (max 1024 characters). null clears it
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
prompt
What the AI analyses should extract for this field, and what puts the field into them (max 1024 characters). Define what the value is, then qualify it the way fynk's own fields do - what counts, what does not, and what to do when the document is not explicit - over several sentences where that helps. The "Net Rent" field reads: "The net rent for the property, which is the rent excluding any taxes or costs e.g. VAT. It must be explicitly stated in the contract as net rent per month. Derive the currency unit from the parties to the contract if it is not explicitly stated." A single vague line extracts poorly. null takes the field back out of the analyses
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
keywords
Comma-separated keywords that help the AI analyses locate the field in a document (max 1024 characters). List the terms as they would appear in a contract, including synonyms and the equivalents in other languages the account's documents are written in - the "Net Rent" field carries "net rent, netto miete, netto kaltmiete, kaltmiete, nettomiete pro monat". These have no effect without a `prompt`. null clears them
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
is_contract_value
Whether the field counts towards a document's calculated contract value. Only allowed when the field's value_type is "currency" or "currency_duration"
Clear enough to supply this argument.
relevant_document_type_uuids
Replaces the document types the field is meaningful for, as uuids from list-account-document-types. Send null or an empty list to make it meaningful for none; send relevant_for_all_document_types instead to make it meaningful for every one
Clear enough to supply this argument.
relevant_for_all_document_types
Send true to make the field meaningful for every document type, including any added later. Only true is accepted, and not together with relevant_document_type_uuids
Clear enough to supply this argument.
confirmed_removing_options_in_use
Send true only once the user has confirmed - in answer to the refusal that named them - that select options this account's documents already hold should be taken away. A change that takes no such option away refuses it, so never send it as a matter of course
Clear enough to supply this argument.
reset_to_fynk_default
Send true to drop everything this account has configured on one of fynk's "system_reference" fields, so that it reads the field exactly as fynk provides it. Only true is accepted, only for a field whose overridden_fields are not empty, and only on its own - no other argument may accompany it
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"type": {
"enum": [
"system_autofilled",
"system_computed",
"system",
"system_reference",
"account"
],
"type": "string",
"description": "The type of the metadata field, which defines where its value comes from.\n\naccount: Custom metadata fields that are specific to your account\nsystem_reference: Pre-defined useful metadata fields provided by fynk\nsystem_autofilled: Fields that are automatically filled by the system in response to events, like \"Signing completion date\"\nsystem_computed: Fields that are calculated by the system based on other metadata values. e.g. \"Signing duration\" is the difference between \"Signing date\" and \"Signed date\"\nsystem: Other system-provided metadata fields"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"settings": {
"type": "object",
"properties": {
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "The only currency codes this field's values may use, e.g. [\"EUR\", \"USD\"]"
}
},
"description": "Extra configuration for the field. Not present means there is nothing to restrict"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the kinds of values that can be assigned to the metadata"
},
"_entity_type": {
"enum": [
"metadata"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When value_type is \"select\" or \"multi_select\", defines the allowed values. For these types of metadata, ONLY these values are possible. Absent for every other value type"
},
"is_contract_value": {
"type": "boolean",
"description": "Whether this field counts towards a document's calculated contract value. Only meaningful when value_type is \"currency\" or \"currency_duration\""
},
"overridden_fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only for a \"system_reference\" field the account has configured differently to how fynk provides it, and absent otherwise: the update-account-metadata arguments it has changed, e.g. [\"display_name\", \"select_values\"]. Send reset_to_fynk_default to that tool to put all of them back"
},
"relevant_document_types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Names of the document types this field is meaningful for. Empty together with relevant_for_all_document_types false means the field is not in use for any document type, so charting it will likely produce no data"
},
"relevant_for_all_document_types": {
"type": "boolean",
"description": "When true, the field is meaningful for every document type and relevant_document_types is empty"
}
}
}
Original tool metadata
{
"name": "update-account-metadata",
"title": "Update account metadata",
"description": "Change the definition of a metadata field the account can see, whether it is one of the account's own fields or a\n`system_reference` field provided by fynk.\n\nUse this tool when:\n\n- The user asks to rename a metadata field, or to change what it holds\n- The user asks to start or stop having fynk's AI analyses fill a field in\n- The user asks to change which document types a field applies to\n- The user asks to put one of fynk's fields back to how fynk provides it\n\n`metadata_uuid` comes from list-account-metadata. Send only the arguments that should change; everything left out\nkeeps its current value. Sending `null` for `description`, `prompt` or `keywords` clears it.\n\nA field's `name` and `value_type` are fixed at creation and this tool cannot change either. To rename a field for\nthe people using it, change `display_name` - in Title Case, the way fynk's own fields are named (\"Signing Date\",\n\"Contract Value\").\n\nfynk's own `system_reference` fields can be reconfigured per account: the change applies to this account alone and\nleaves the field as fynk defines it everywhere else, and putting an argument back to fynk's own value stops\noverriding it. fynk's other system field types (`system`, `system_autofilled`, `system_computed`) are maintained\nentirely by fynk and cannot be changed at all.\n\nOne of fynk's fields that an account has reconfigured reports the arguments it overrides as `overridden_fields`,\nfrom this tool and from list-account-metadata alike. Send `reset_to_fynk_default: true` on its own to drop all of\nthem at once, leaving the account reading the field exactly as fynk provides it; there is no per-argument reset, so\nre-send whichever of them are still wanted afterwards.\n\n`select_values` replaces the whole list of options, which are literally what a user picks from, so write them as\npresentable labels: \"Net 30\", not \"net 30\". They govern what can be chosen from now on and leave values already\nrecorded on documents as they are, so prefer adding an option to renaming or removing one. Since the list is\nreplaced wholesale, send every option that should remain: one left out is one taken away.\n\nTaking away an option that documents already hold is refused until the user has confirmed it. Such a value stays\non its document but can no longer be filtered for. The refusal names the options and how many documents and\ntemplates still use each - then repeat the call with `confirmed_removing_options_in_use: true`. Send that only in\nanswer to such a refusal, never as a matter of course. `reset_to_fynk_default` is covered the same way, since\nputting fynk's own options back takes away any the account added to them.\n\nPut the effect to the user in their own terms and ask before going ahead - \"removing Net 90 would affect 3\ndocuments that still use it, shall I go ahead?\" - rather than quoting the refusal back at them.\n\n`prompt` and `keywords` decide whether fynk's AI analyses fill this field in - a `prompt` puts the field into them,\n`keywords` only assist it and do nothing on their own. So set both together to have a field extracted, and clear\n`prompt` to take a field back out of the analyses and leave it to only be filled in by hand.",
"inputSchema": {
"type": "object",
"required": [
"metadata_uuid"
],
"properties": {
"prompt": {
"type": [
"string",
"null"
],
"description": "What the AI analyses should extract for this field, and what puts the field into them (max 1024 characters). Define what the value is, then qualify it the way fynk's own fields do - what counts, what does not, and what to do when the document is not explicit - over several sentences where that helps. The \"Net Rent\" field reads: \"The net rent for the property, which is the rent excluding any taxes or costs e.g. VAT. It must be explicitly stated in the contract as net rent per month. Derive the currency unit from the parties to the contract if it is not explicitly stated.\" A single vague line extracts poorly. null takes the field back out of the analyses"
},
"keywords": {
"type": [
"string",
"null"
],
"description": "Comma-separated keywords that help the AI analyses locate the field in a document (max 1024 characters). List the terms as they would appear in a contract, including synonyms and the equivalents in other languages the account's documents are written in - the \"Net Rent\" field carries \"net rent, netto miete, netto kaltmiete, kaltmiete, nettomiete pro monat\". These have no effect without a `prompt`. null clears them"
},
"description": {
"type": [
"string",
"null"
],
"description": "What the field holds, shown to users configuring it (max 1024 characters). null clears it"
},
"display_name": {
"type": "string",
"description": "New human-readable name shown in the UI, in Title Case (max 255 characters), e.g. \"Discount Rate\". The field's programmatic name cannot be changed"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field to update, as reported by list-account-metadata"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Replaces the whole list of options a user picks from, written as presentable labels, e.g. [\"Net 30\", \"Net 60\"]. Only for \"select\" and \"multi_select\" fields"
},
"is_contract_value": {
"type": "boolean",
"description": "Whether the field counts towards a document's calculated contract value. Only allowed when the field's value_type is \"currency\" or \"currency_duration\""
},
"reset_to_fynk_default": {
"type": "boolean",
"description": "Send true to drop everything this account has configured on one of fynk's \"system_reference\" fields, so that it reads the field exactly as fynk provides it. Only true is accepted, only for a field whose overridden_fields are not empty, and only on its own - no other argument may accompany it"
},
"relevant_document_type_uuids": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Replaces the document types the field is meaningful for, as uuids from list-account-document-types. Send null or an empty list to make it meaningful for none; send relevant_for_all_document_types instead to make it meaningful for every one"
},
"relevant_for_all_document_types": {
"type": "boolean",
"description": "Send true to make the field meaningful for every document type, including any added later. Only true is accepted, and not together with relevant_document_type_uuids"
},
"confirmed_removing_options_in_use": {
"type": "boolean",
"description": "Send true only once the user has confirmed - in answer to the refusal that named them - that select options this account's documents already hold should be taken away. A change that takes no such option away refuses it, so never send it as a matter of course"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"type": {
"enum": [
"system_autofilled",
"system_computed",
"system",
"system_reference",
"account"
],
"type": "string",
"description": "The type of the metadata field, which defines where its value comes from.\n\naccount: Custom metadata fields that are specific to your account\nsystem_reference: Pre-defined useful metadata fields provided by fynk\nsystem_autofilled: Fields that are automatically filled by the system in response to events, like \"Signing completion date\"\nsystem_computed: Fields that are calculated by the system based on other metadata values. e.g. \"Signing duration\" is the difference between \"Signing date\" and \"Signed date\"\nsystem: Other system-provided metadata fields"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"settings": {
"type": "object",
"properties": {
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "The only currency codes this field's values may use, e.g. [\"EUR\", \"USD\"]"
}
},
"description": "Extra configuration for the field. Not present means there is nothing to restrict"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the kinds of values that can be assigned to the metadata"
},
"_entity_type": {
"enum": [
"metadata"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When value_type is \"select\" or \"multi_select\", defines the allowed values. For these types of metadata, ONLY these values are possible. Absent for every other value type"
},
"is_contract_value": {
"type": "boolean",
"description": "Whether this field counts towards a document's calculated contract value. Only meaningful when value_type is \"currency\" or \"currency_duration\""
},
"overridden_fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only for a \"system_reference\" field the account has configured differently to how fynk provides it, and absent otherwise: the update-account-metadata arguments it has changed, e.g. [\"display_name\", \"select_values\"]. Send reset_to_fynk_default to that tool to put all of them back"
},
"relevant_document_types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Names of the document types this field is meaningful for. Empty together with relevant_for_all_document_types false means the field is not in use for any document type, so charting it will likely produce no data"
},
"relevant_for_all_document_types": {
"type": "boolean",
"description": "When true, the field is meaningful for every document type and relevant_document_types is empty"
}
}
},
"annotations": {
"title": "Update account metadata",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description92/100
Update the name and/or address of an account party - one of the account's own entities.
Use this tool when:
- The user asks to rename their company, a subsidiary or another of the account's own entities
- The user asks to change the address of one of the account's own entities
Send only the fields that should change.
Only account parties can be changed here. A party that belongs to a document or template is refused - use update-document-party or update-template-party for those. Templates linked to this account party use its updated name and address. Existing documents keep the details copied when the document was created or the party was added.
The description explains the capability, when to use it, and what to expect.
Inputs93/100
Input documentation gives an agent enough context to populate the arguments.
party_uuid
UUID of the account party to update, from list-account-parties
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address"
},
"entity_name": {
"type": "string",
"description": "The name of the party"
},
"_entity_type": {
"enum": [
"account_party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
Original tool metadata
{
"name": "update-account-party",
"title": "Update account party",
"description": "Update the name and/or address of an account party - one of the account's own entities.\n\nUse this tool when:\n\n- The user asks to rename their company, a subsidiary or another of the account's own entities\n- The user asks to change the address of one of the account's own entities\n\nSend only the fields that should change.\n\nOnly account parties can be changed here. A party that belongs to a document or template is refused - use update-document-party or update-template-party for those. Templates linked to this account party use its updated name and address. Existing documents keep the details copied when the document was created or the party was added.",
"inputSchema": {
"type": "object",
"required": [
"party_uuid"
],
"properties": {
"address": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "New postal address"
},
"party_uuid": {
"type": "string",
"description": "UUID of the account party to update, from list-account-parties"
},
"entity_name": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "New legal name of the entity"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address"
},
"entity_name": {
"type": "string",
"description": "The name of the party"
},
"_entity_type": {
"enum": [
"account_party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"annotations": {
"title": "Update account party",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description81/100
Update an existing tag's name and/or color.
Use this tool when:
- The user asks to rename a tag
- The user asks to change a tag's color
`tag_uuid` is required. Send only the fields that should change.
The description explains the capability, when to use it, and what to expect.
Inputs81/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
tag_uuid
UUID of the tag to update
Clear enough to supply this argument.
name
New display name for the tag (max 40 characters)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
color
New hex color code (e.g. "#FF0000")
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Identifier for the tag. Do not show to the user unless they ask for it"
},
"color": {
"type": "string",
"description": "Hex color code for the tag (e.g. \"#FF0000\")"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
Original tool metadata
{
"name": "update-account-tag",
"title": "Update account tag",
"description": "Update an existing tag's name and/or color.\n\nUse this tool when:\n\n- The user asks to rename a tag\n- The user asks to change a tag's color\n\n`tag_uuid` is required. Send only the fields that should change.",
"inputSchema": {
"type": "object",
"required": [
"tag_uuid"
],
"properties": {
"name": {
"type": "string",
"description": "New display name for the tag (max 40 characters)"
},
"color": {
"type": "string",
"description": "New hex color code (e.g. \"#FF0000\")"
},
"tag_uuid": {
"type": "string",
"description": "UUID of the tag to update"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Identifier for the tag. Do not show to the user unless they ask for it"
},
"color": {
"type": "string",
"description": "Hex color code for the tag (e.g. \"#FF0000\")"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"annotations": {
"title": "Update account tag",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description79/100
Update an existing team's name and/or icon.
Use this tool when:
- The user asks to rename a team
- The user asks to change a team's icon
`team_uuid` is required. Send only the fields that should change.
The description explains the capability, when to use it, and what to expect.
Inputs78/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
team_uuid
UUID of the team to update
Clear enough to supply this argument.
name
New display name for the team
Clear enough to supply this argument.
icon
New icon identifier
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"icon": {
"type": "string",
"description": "Icon identifier for the team (e.g. \"UserGroupIcon\")"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
Original tool metadata
{
"name": "update-account-team",
"title": "Update account team",
"description": "Update an existing team's name and/or icon.\n\nUse this tool when:\n\n- The user asks to rename a team\n- The user asks to change a team's icon\n\n`team_uuid` is required. Send only the fields that should change.",
"inputSchema": {
"type": "object",
"required": [
"team_uuid"
],
"properties": {
"icon": {
"enum": [
"UserGroupIcon",
"AnnouncementIcon",
"BookOpenIcon",
"DashboardIcon",
"LaunchIcon",
"MonitorIcon",
"NewsIcon",
"SecurityIcon",
"StarIcon",
"FancyUserGroupIcon",
"CollectionIcon",
"BoltIcon",
"HeartIcon",
"HomeIcon",
"NotificationIcon",
"PieChartIcon",
"SecurityCheckIcon",
"ESignatureIcon"
],
"type": "string",
"description": "New icon identifier"
},
"name": {
"type": "string",
"description": "New display name for the team"
},
"team_uuid": {
"type": "string",
"description": "UUID of the team to update"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"icon": {
"type": "string",
"description": "Icon identifier for the team (e.g. \"UserGroupIcon\")"
},
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"annotations": {
"title": "Update account team",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description84/100
Update the value of one or more of a document's dynamic fields.
Use this tool when:
- You want to fill in (or change) values for fields like text inputs, dates, numbers, or selects on a document
- A user asks to set values that signing requires before it can begin (mandatory dynamic fields)
Each entry in `dynamic_field_values` identifies the field by its `ref_uuid` or `name` (use get-document-info with include=["dynamic_fields"] to discover them) — sending the wrong key will fail validation.
Take note of the field's `type` when constructing the value. These are the rules to use when constructing the `value` string:
- number: the numeric value in a string, using '.' as the decimal separator -> "1234.56"
- currency: concatenate the ISO currency code and the numeric value with a ';' -> "EUR;1000.10" (for one thousand Euro and ten cents)
- currency_duration: same as currency, but append another ';' followed by either `monthly` or `yearly` -> "EUR;1000.10;monthly" / "USD;1000.10;yearly"
- select: one of the options from the field's `select_values` list -> "red"
- multi_select: an array of the selected values in the `values` field -> ["red", "blue"]
- bool: either of the strings "true" (displayed to the user as "Yes") or "false" (displayed to the user as "No") -> "true" / "false"
- duration: a PHP-compatible duration specification -> "P6D" (6 days), "P2W" (2 weeks), "PT12H" (12 hours)
- date: the date in the format "YYYY-MM-DD" -> "2026-12-31"
- email, text, textarea, or any type not listed above: a string -> "[email protected]"
To unset a dynamic field, send a null value.
The description explains the capability, when to use it, and what to expect.
Inputs73/100
Explain the meaning of this value, not just its name.
document_uuid
UUID of the document whose dynamic fields are to be updated. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
dynamic_field_values › items › identifier
The dynamic field's ref_uuid or name
Clear enough to supply this argument.
dynamic_field_values › items › value
For none-multi_select-type fields, the value to set for the field
Explain the meaning of this value, not just its name.
dynamic_field_values › items › values
For multi_select-type fields, the value to set for the field
{
"type": "object",
"properties": {
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The fields that were updated"
}
}
}
Original tool metadata
{
"name": "update-document-dynamic-fields",
"title": "Update document dynamic fields",
"description": "Update the value of one or more of a document's dynamic fields.\n\nUse this tool when:\n\n- You want to fill in (or change) values for fields like text inputs, dates, numbers, or selects on a document\n- A user asks to set values that signing requires before it can begin (mandatory dynamic fields)\n\nEach entry in `dynamic_field_values` identifies the field by its `ref_uuid` or `name` (use get-document-info with include=[\"dynamic_fields\"] to discover them) — sending the wrong key will fail validation.\n\nTake note of the field's `type` when constructing the value. These are the rules to use when constructing the `value` string:\n\n- number: the numeric value in a string, using '.' as the decimal separator -> \"1234.56\"\n- currency: concatenate the ISO currency code and the numeric value with a ';' -> \"EUR;1000.10\" (for one thousand Euro and ten cents)\n- currency_duration: same as currency, but append another ';' followed by either `monthly` or `yearly` -> \"EUR;1000.10;monthly\" / \"USD;1000.10;yearly\"\n- select: one of the options from the field's `select_values` list -> \"red\"\n- multi_select: an array of the selected values in the `values` field -> [\"red\", \"blue\"]\n- bool: either of the strings \"true\" (displayed to the user as \"Yes\") or \"false\" (displayed to the user as \"No\") -> \"true\" / \"false\"\n- duration: a PHP-compatible duration specification -> \"P6D\" (6 days), \"P2W\" (2 weeks), \"PT12H\" (12 hours)\n- date: the date in the format \"YYYY-MM-DD\" -> \"2026-12-31\"\n- email, text, textarea, or any type not listed above: a string -> \"[email protected]\"\n\nTo unset a dynamic field, send a null value.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"document_uuid": {
"type": "string",
"description": "UUID of the document whose dynamic fields are to be updated. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"dynamic_field_values": {
"type": "array",
"items": {
"type": "object",
"required": [
"identifier"
],
"properties": {
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type fields, the value to set for the field"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "For multi_select-type fields, the value to set for the field"
},
"identifier": {
"type": "string",
"description": "The dynamic field's ref_uuid or name"
}
}
},
"maxItems": 10,
"description": "New values to apply (at most 10 per request). Signing can only start when all mandatory dynamic fields have values provided."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"dynamic_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"description": "The fields that were updated"
}
}
},
"annotations": {
"title": "Update document dynamic fields",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description85/100
Set or unset the value of one or more of a document's metadata.
Use this tool when:
- You want to fill in (or change) a document's metadata values
- You want to remove a value the document currently has for a metadata
Each entry in `metadata_value_changes` identifies the metadata by its `metadata_uuid` or `name` (use list-account-metadata, or get-document-info with include=["metadata_values"], to discover them) — sending an identifier that does not match any of the account's metadata will fail validation.
Each entry also has an `operation`:
- `set`: create the metadata value (if the document does not have one yet) or update the existing value
- `unset`: remove the document's value for the metadata (no value is required)
For a `set`, take note of the metadata's `value_type` when constructing the value. These are the rules to use when constructing the `value` string:
- number: the numeric value in a string, using '.' as the decimal separator -> "1234.56"
- currency: concatenate the ISO currency code and the numeric value with a ';' -> "EUR;1000.10" (for one thousand Euro and ten cents)
- currency_duration: same as currency, but append another ';' followed by either `monthly` or `yearly` -> "EUR;1000.10;monthly" / "USD;1000.10;yearly"
- select: one of the options from the metadata's `select_values` list -> "red"
- multi_select: an array of the selected values in the `values` field -> ["red", "blue"]
- bool: either of the strings "true" (displayed to the user as "Yes") or "false" (displayed to the user as "No") -> "true" / "false"
- duration: a PHP-compatible duration specification -> "P6D" (6 days), "P2W" (2 weeks), "PT12H" (12 hours)
- date: the date in the format "YYYY-MM-DD" -> "2026-12-31"
- email, text, textarea, or any type not listed above: a string -> "[email protected]"
Some metadata cannot be changed this way (e.g. computed metadata, or metadata whose value is driven by a dynamic field) — attempting to do so will fail validation.
The description explains the capability, when to use it, and what to expect.
Inputs76/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_uuid
UUID of the document whose metadata values are to be updated. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
metadata_value_changes › items › identifier
The metadata's metadata_uuid or name
Clear enough to supply this argument.
metadata_value_changes › items › operation
`set` to create/update the value, `unset` to remove it
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
metadata_value_changes › items › value
For a `set` on none-multi_select-type metadata, the value to set
Explain the meaning of this value, not just its name.
metadata_value_changes › items › values
For a `set` on multi_select-type metadata, the value to set
{
"type": "object",
"properties": {
"unset_metadata": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"type": {
"enum": [
"system_autofilled",
"system_computed",
"system",
"system_reference",
"account"
],
"type": "string",
"description": "The type of the metadata field, which defines where its value comes from.\n\naccount: Custom metadata fields that are specific to your account\nsystem_reference: Pre-defined useful metadata fields provided by fynk\nsystem_autofilled: Fields that are automatically filled by the system in response to events, like \"Signing completion date\"\nsystem_computed: Fields that are calculated by the system based on other metadata values. e.g. \"Signing duration\" is the difference between \"Signing date\" and \"Signed date\"\nsystem: Other system-provided metadata fields"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"settings": {
"type": "object",
"properties": {
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "The only currency codes this field's values may use, e.g. [\"EUR\", \"USD\"]"
}
},
"description": "Extra configuration for the field. Not present means there is nothing to restrict"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the kinds of values that can be assigned to the metadata"
},
"_entity_type": {
"enum": [
"metadata"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When value_type is \"select\" or \"multi_select\", defines the allowed values. For these types of metadata, ONLY these values are possible. Absent for every other value type"
},
"is_contract_value": {
"type": "boolean",
"description": "Whether this field counts towards a document's calculated contract value. Only meaningful when value_type is \"currency\" or \"currency_duration\""
},
"overridden_fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only for a \"system_reference\" field the account has configured differently to how fynk provides it, and absent otherwise: the update-account-metadata arguments it has changed, e.g. [\"display_name\", \"select_values\"]. Send reset_to_fynk_default to that tool to put all of them back"
},
"relevant_document_types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Names of the document types this field is meaningful for. Empty together with relevant_for_all_document_types false means the field is not in use for any document type, so charting it will likely produce no data"
},
"relevant_for_all_document_types": {
"type": "boolean",
"description": "When true, the field is meaningful for every document type and relevant_document_types is empty"
}
}
},
"description": "The metadata whose values were removed by `unset` changes (an `unset` of a metadata that had no value is omitted)"
},
"set_metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The metadata values that were created or updated by `set` changes"
}
}
}
Original tool metadata
{
"name": "update-document-metadata-values",
"title": "Update document metadata values",
"description": "Set or unset the value of one or more of a document's metadata.\n\nUse this tool when:\n\n- You want to fill in (or change) a document's metadata values\n- You want to remove a value the document currently has for a metadata\n\nEach entry in `metadata_value_changes` identifies the metadata by its `metadata_uuid` or `name` (use list-account-metadata, or get-document-info with include=[\"metadata_values\"], to discover them) — sending an identifier that does not match any of the account's metadata will fail validation.\n\nEach entry also has an `operation`:\n\n- `set`: create the metadata value (if the document does not have one yet) or update the existing value\n- `unset`: remove the document's value for the metadata (no value is required)\n\nFor a `set`, take note of the metadata's `value_type` when constructing the value. These are the rules to use when constructing the `value` string:\n\n- number: the numeric value in a string, using '.' as the decimal separator -> \"1234.56\"\n- currency: concatenate the ISO currency code and the numeric value with a ';' -> \"EUR;1000.10\" (for one thousand Euro and ten cents)\n- currency_duration: same as currency, but append another ';' followed by either `monthly` or `yearly` -> \"EUR;1000.10;monthly\" / \"USD;1000.10;yearly\"\n- select: one of the options from the metadata's `select_values` list -> \"red\"\n- multi_select: an array of the selected values in the `values` field -> [\"red\", \"blue\"]\n- bool: either of the strings \"true\" (displayed to the user as \"Yes\") or \"false\" (displayed to the user as \"No\") -> \"true\" / \"false\"\n- duration: a PHP-compatible duration specification -> \"P6D\" (6 days), \"P2W\" (2 weeks), \"PT12H\" (12 hours)\n- date: the date in the format \"YYYY-MM-DD\" -> \"2026-12-31\"\n- email, text, textarea, or any type not listed above: a string -> \"[email protected]\"\n\nSome metadata cannot be changed this way (e.g. computed metadata, or metadata whose value is driven by a dynamic field) — attempting to do so will fail validation.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"document_uuid": {
"type": "string",
"description": "UUID of the document whose metadata values are to be updated. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"metadata_value_changes": {
"type": "array",
"items": {
"type": "object",
"required": [
"identifier",
"operation"
],
"properties": {
"value": {
"type": [
"string",
"null"
],
"description": "For a `set` on none-multi_select-type metadata, the value to set"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "For a `set` on multi_select-type metadata, the value to set"
},
"operation": {
"enum": [
"set",
"unset"
],
"type": "string",
"description": "`set` to create/update the value, `unset` to remove it"
},
"identifier": {
"type": "string",
"description": "The metadata's metadata_uuid or name"
}
}
},
"maxItems": 10,
"description": "The metadata value changes to apply (at most 10 per request)"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"unset_metadata": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"type": {
"enum": [
"system_autofilled",
"system_computed",
"system",
"system_reference",
"account"
],
"type": "string",
"description": "The type of the metadata field, which defines where its value comes from.\n\naccount: Custom metadata fields that are specific to your account\nsystem_reference: Pre-defined useful metadata fields provided by fynk\nsystem_autofilled: Fields that are automatically filled by the system in response to events, like \"Signing completion date\"\nsystem_computed: Fields that are calculated by the system based on other metadata values. e.g. \"Signing duration\" is the difference between \"Signing date\" and \"Signed date\"\nsystem: Other system-provided metadata fields"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"settings": {
"type": "object",
"properties": {
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "The only currency codes this field's values may use, e.g. [\"EUR\", \"USD\"]"
}
},
"description": "Extra configuration for the field. Not present means there is nothing to restrict"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the kinds of values that can be assigned to the metadata"
},
"_entity_type": {
"enum": [
"metadata"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When value_type is \"select\" or \"multi_select\", defines the allowed values. For these types of metadata, ONLY these values are possible. Absent for every other value type"
},
"is_contract_value": {
"type": "boolean",
"description": "Whether this field counts towards a document's calculated contract value. Only meaningful when value_type is \"currency\" or \"currency_duration\""
},
"overridden_fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only for a \"system_reference\" field the account has configured differently to how fynk provides it, and absent otherwise: the update-account-metadata arguments it has changed, e.g. [\"display_name\", \"select_values\"]. Send reset_to_fynk_default to that tool to put all of them back"
},
"relevant_document_types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Names of the document types this field is meaningful for. Empty together with relevant_for_all_document_types false means the field is not in use for any document type, so charting it will likely produce no data"
},
"relevant_for_all_document_types": {
"type": "boolean",
"description": "When true, the field is meaningful for every document type and relevant_document_types is empty"
}
}
},
"description": "The metadata whose values were removed by `unset` changes (an `unset` of a metadata that had no value is omitted)"
},
"set_metadata_values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Internal name of the metadata field"
},
"value": {
"type": [
"string",
"null"
],
"description": "For none-multi_select-type metadata, the metadata value"
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type metadata, the value of the metadata"
},
"value_type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "The type of the metadata value"
},
"_entity_type": {
"enum": [
"metadata_value"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"display_name": {
"type": "string",
"description": "Human-readable name of the metadata field"
},
"value_source": {
"type": [
"string",
"null"
],
"description": "How the metadata value was set"
},
"metadata_uuid": {
"type": "string",
"description": "UUID of the metadata field this value belongs to. Do not show to the user"
}
}
},
"description": "The metadata values that were created or updated by `set` changes"
}
}
},
"annotations": {
"title": "Update document metadata values",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description81/100
Edit the details of a party on a document.
Use this tool when:
- A party's reference, entity type, entity name, address, or scope needs to change on an existing document
`document_uuid` and `party_identifier` (a `ref_uuid`, `reference`, or `entity_name` of a party on the document) are required to identify the party. All other arguments are optional and only need to be sent if their value should change. For parties linked to an account party, only `party_reference` can be changed — attempting to update other fields will fail.
Explain mutations, irreversible effects, or prerequisites that matter before calling this tool.
Inputs75/100
Explain the meaning of this value, not just its name.
document_uuid
UUID of the document containing the party to update. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
party_identifier
ref_uuid, reference, or entity_name identifying the party to update on the document
Clear enough to supply this argument.
party_reference
New generic reference for the party
Explain the meaning of this value, not just its name.
party_entity_name
New entity name. Cannot be set when the party's is_internal is true
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
party_address
New address. Cannot be set when the party's is_internal is true
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
party_scope
New scope. Cannot be set when the party's is_internal is true
Explain the meaning of this value, not just its name.
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
Original tool metadata
{
"name": "update-document-party",
"title": "Update document party",
"description": "Edit the details of a party on a document.\n\nUse this tool when:\n\n- A party's reference, entity type, entity name, address, or scope needs to change on an existing document\n\n`document_uuid` and `party_identifier` (a `ref_uuid`, `reference`, or `entity_name` of a party on the document) are required to identify the party. All other arguments are optional and only need to be sent if their value should change. For parties linked to an account party, only `party_reference` can be changed — attempting to update other fields will fail.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"party_identifier"
],
"properties": {
"party_scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "New scope. Cannot be set when the party's is_internal is true"
},
"document_uuid": {
"type": "string",
"description": "UUID of the document containing the party to update. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"party_address": {
"type": [
"string",
"null"
],
"description": "New address. Cannot be set when the party's is_internal is true"
},
"party_reference": {
"type": "string",
"description": "New generic reference for the party"
},
"party_identifier": {
"type": "string",
"description": "ref_uuid, reference, or entity_name identifying the party to update on the document"
},
"party_entity_name": {
"type": [
"string",
"null"
],
"description": "New entity name. Cannot be set when the party's is_internal is true"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"annotations": {
"title": "Update document party",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description83/100
Edit the details of a document signatory.
Use this tool when:
- A signatory's name, title, mobile phone, or party assignment needs to change before signing starts
- You need to move an existing signatory to a different party on the document
`document_uuid` and `signatory_email` are required to identify the signatory. All other arguments are optional and only need to be sent if their value should change. For internal signatories (linked to an account user), `signatory_first_name`, `signatory_last_name`, and `signatory_title` cannot be changed — they come from the user's profile.
The description explains the capability, when to use it, and what to expect.
Inputs93/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_uuid
UUID of the document where the signatory is being updated. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
signatory_email
Email address of the signatory to update.
Clear enough to supply this argument.
signatory_party_identifier
If given, moves the signatory to this party. Must be a ref_uuid, reference, or entity_name of an existing party in the document
Clear enough to supply this argument.
signatory_first_name
Signatory's new first name. Cannot be changed if internal_user is true
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
signatory_last_name
Signatory's new last name. Cannot be changed if internal_user is true
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
signatory_mobile_phone
New mobile phone number in E.164 format. Depending on the document's signature_type, may be required before signing can be started
Clear enough to supply this argument.
signatory_title
New job title. Cannot be changed if internal_user is true
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
}
Original tool metadata
{
"name": "update-document-signatory",
"title": "Update document signatory",
"description": "Edit the details of a document signatory.\n\nUse this tool when:\n\n- A signatory's name, title, mobile phone, or party assignment needs to change before signing starts\n- You need to move an existing signatory to a different party on the document\n\n`document_uuid` and `signatory_email` are required to identify the signatory. All other arguments are optional and only need to be sent if their value should change. For internal signatories (linked to an account user), `signatory_first_name`, `signatory_last_name`, and `signatory_title` cannot be changed — they come from the user's profile.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"signatory_email"
],
"properties": {
"document_uuid": {
"type": "string",
"description": "UUID of the document where the signatory is being updated. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"signatory_email": {
"type": "string",
"description": "Email address of the signatory to update."
},
"signatory_title": {
"type": [
"string",
"null"
],
"description": "New job title. Cannot be changed if internal_user is true"
},
"signatory_last_name": {
"type": [
"string",
"null"
],
"description": "Signatory's new last name. Cannot be changed if internal_user is true"
},
"signatory_first_name": {
"type": [
"string",
"null"
],
"description": "Signatory's new first name. Cannot be changed if internal_user is true"
},
"signatory_mobile_phone": {
"type": [
"string",
"null"
],
"description": "New mobile phone number in E.164 format. Depending on the document's signature_type, may be required before signing can be started"
},
"signatory_party_identifier": {
"type": "string",
"description": "If given, moves the signatory to this party. Must be a ref_uuid, reference, or entity_name of an existing party in the document"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the signatory"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signatory belongs to. Absent if the signatory has not been assigned to a party yet, which prevents signing from being started. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"internal_user": {
"type": "boolean",
"description": "true if the signatory has a fynk user in this account"
},
"signing_order": {
"type": "integer",
"description": "The order in which this signatory signs"
}
}
},
"annotations": {
"title": "Update document signatory",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description94/100
Changes a document user's access level (role), party or details, or sends them their invitation email.
Use this tool when:
- Someone's access to a document should change, e.g. a viewer who should now be able to edit becomes a collaborator
- A document user should be moved to a different party on the document
- An external document user's name or title is wrong or missing
- A document user who was added without an invitation email should now be invited (`mode` send_invitation)
Identify the user by `document_uuid` plus `email`; the document_users section of get-document-info lists everyone with access, with their invitation_status.
With `mode` update (the default), send only the arguments that should change. Changing the role never changes whether the user signs: a signatory demoted to viewer remains a signatory, so use the signatory tools to manage signing. Only users with a fynk account in this account (internal_user true) can be owners, and a document always keeps at least one owner. The name and title of an internal user come from their fynk profile and cannot be changed here.
With `mode` send_invitation, the user is emailed an invitation to the document straight away, optionally with an `invitation_message`; no other arguments are accepted. Confirm with the user before sending it. Each document user can be sent an invitation via this tool or create-document-user only once: a user who has already been invited (by email, or by fynk when signing started) is refused, and there is no way to resend it here. A user without a fynk account user in this account (internal_user false) cannot be invited while the document is in the draft or approved_draft stage.
The description explains the capability, when to use it, and what to expect.
Inputs89/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_uuid
UUID of the document the user belongs to. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
email
Email address of the document user to update
Clear enough to supply this argument.
mode
What the call does. "update" changes the user with the arguments sent. "send_invitation" emails the user an invitation to the document, and accepts only invitation_message
Clear enough to supply this argument.
role
The user's new access level on the document. Only users with internal_user true can be owners
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
party_identifier
If given, moves the user to this party. Must be a ref_uuid, reference, or entity_name of an existing party in the document
Clear enough to supply this argument.
first_name
New first name. Cannot be changed if internal_user is true
Clear enough to supply this argument.
last_name
New last name. Cannot be changed if internal_user is true
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
title
New job title. Cannot be changed if internal_user is true
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
invitation_message
An extra note shown in the invitation email, up to 2000 characters and without links. The email presents it as a message from the user (or from the account, if it hides who sent an email), so write it in the user's voice. Only with mode send_invitation. Without it, a person without a fynk user in this account gets the document's external_reviewer_invitation_message (in the document_users section of get-document-info), if one is set: read it before writing your own
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
}
Original tool metadata
{
"name": "update-document-user",
"title": "Update document user",
"description": "Changes a document user's access level (role), party or details, or sends them their invitation email.\n\nUse this tool when:\n\n- Someone's access to a document should change, e.g. a viewer who should now be able to edit becomes a collaborator\n- A document user should be moved to a different party on the document\n- An external document user's name or title is wrong or missing\n- A document user who was added without an invitation email should now be invited (`mode` send_invitation)\n\nIdentify the user by `document_uuid` plus `email`; the document_users section of get-document-info lists everyone with access, with their invitation_status.\n\nWith `mode` update (the default), send only the arguments that should change. Changing the role never changes whether the user signs: a signatory demoted to viewer remains a signatory, so use the signatory tools to manage signing. Only users with a fynk account in this account (internal_user true) can be owners, and a document always keeps at least one owner. The name and title of an internal user come from their fynk profile and cannot be changed here.\n\nWith `mode` send_invitation, the user is emailed an invitation to the document straight away, optionally with an `invitation_message`; no other arguments are accepted. Confirm with the user before sending it. Each document user can be sent an invitation via this tool or create-document-user only once: a user who has already been invited (by email, or by fynk when signing started) is refused, and there is no way to resend it here. A user without a fynk account user in this account (internal_user false) cannot be invited while the document is in the draft or approved_draft stage.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"email"
],
"properties": {
"mode": {
"enum": [
"update",
"send_invitation"
],
"type": "string",
"default": "update",
"description": "What the call does. \"update\" changes the user with the arguments sent. \"send_invitation\" emails the user an invitation to the document, and accepts only invitation_message"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's new access level on the document. Only users with internal_user true can be owners"
},
"email": {
"type": "string",
"description": "Email address of the document user to update"
},
"title": {
"type": [
"string",
"null"
],
"description": "New job title. Cannot be changed if internal_user is true"
},
"last_name": {
"type": [
"string",
"null"
],
"description": "New last name. Cannot be changed if internal_user is true"
},
"first_name": {
"type": [
"string",
"null"
],
"description": "New first name. Cannot be changed if internal_user is true"
},
"document_uuid": {
"type": "string",
"description": "UUID of the document the user belongs to. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"party_identifier": {
"type": "string",
"description": "If given, moves the user to this party. Must be a ref_uuid, reference, or entity_name of an existing party in the document"
},
"invitation_message": {
"type": [
"string",
"null"
],
"description": "An extra note shown in the invitation email, up to 2000 characters and without links. The email presents it as a message from the user (or from the account, if it hides who sent an email), so write it in the user's voice. Only with mode send_invitation. Without it, a person without a fynk user in this account gets the document's external_reviewer_invitation_message (in the document_users section of get-document-info), if one is set: read it before writing your own"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document user"
},
"role": {
"enum": [
"owner",
"collaborator",
"viewer"
],
"type": "string",
"description": "The user's access level on the document. Independent of is_signatory: a viewer may also be a signatory"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"email": {
"type": "string",
"description": "Email of the document user"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this user belongs to. Absent when they belong to none. Do not show to the user (as the raw UUID) unless they ask for it"
},
"_entity_type": {
"enum": [
"document_user"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_signatory": {
"type": "boolean",
"description": "true if the user is also a signatory of the document"
},
"internal_user": {
"type": "boolean",
"description": "true if the user has a fynk user in this account"
},
"invitation_status": {
"type": "string",
"description": "Whether the user has been invited to the document, as prose that can be presented to the user"
}
}
},
"annotations": {
"title": "Update document user",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description95/100
Adds tags to and/or removes tags from a document.
Use this tool when:
- One or more tags should be added to a document
- A tag should be removed from a document
- A document's tag should be replaced with another (one `remove` and one `add` action)
Actions are applied on top of the document's current tags: tags not mentioned in `tag_actions` stay attached. Each tag may appear in at most one action per call. Adding an already-attached tag or removing a tag that is not attached has no effect. Use the `list-account-tags` tool to discover valid tag UUIDs, and the `create-account-tag` tool to create a new tag first if no suitable one exists.
The description explains the capability, when to use it, and what to expect.
Inputs92/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_uuid
UUID of the document whose tags to update. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
tag_actions › items › action
Whether to add the tag to or remove it from the document
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
tag_actions › items › tag_uuid
UUID of the tag to add or remove. Use the list-account-tags tool to find valid UUIDs
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
}
}
Original tool metadata
{
"name": "update-document-tags",
"title": "Update document tags",
"description": "Adds tags to and/or removes tags from a document.\n\nUse this tool when:\n\n- One or more tags should be added to a document\n- A tag should be removed from a document\n- A document's tag should be replaced with another (one `remove` and one `add` action)\n\nActions are applied on top of the document's current tags: tags not mentioned in `tag_actions` stay attached. Each tag may appear in at most one action per call. Adding an already-attached tag or removing a tag that is not attached has no effect. Use the `list-account-tags` tool to discover valid tag UUIDs, and the `create-account-tag` tool to create a new tag first if no suitable one exists.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"tag_actions"
],
"properties": {
"tag_actions": {
"type": "array",
"items": {
"type": "object",
"required": [
"action",
"tag_uuid"
],
"properties": {
"action": {
"enum": [
"add",
"remove"
],
"type": "string",
"description": "Whether to add the tag to or remove it from the document"
},
"tag_uuid": {
"type": "string",
"description": "UUID of the tag to add or remove. Use the list-account-tags tool to find valid UUIDs"
}
}
},
"description": "Changes to apply to the document's tags. Tags not mentioned stay attached"
},
"document_uuid": {
"type": "string",
"description": "UUID of the document whose tags to update. If you don't already have the document's UUID, use the list-documents tool to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tag"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"tag"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "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."
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
}
},
"annotations": {
"title": "Update document tags",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description95/100
Adds teams to and/or removes teams from a document.
Use this tool when:
- A document should be assigned to one or more teams
- A team assignment should be removed from a document
- A document should be moved from one team to another (one `remove` and one `add` action)
Actions are applied on top of the document's current team assignments: teams not mentioned in `team_actions` keep their assignment. Each team may appear in at most one action per call. Adding an already-assigned team or removing a team that is not assigned has no effect. Use the `list-account-teams` tool to discover valid team UUIDs. Some accounts enforce team assignment, in which case the last remaining team cannot be removed.
The description explains the capability, when to use it, and what to expect.
Inputs92/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
document_uuid
UUID of the document whose teams to update. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
team_actions › items › action
Whether to add the team to or remove it from the document
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
team_actions › items › team_uuid
UUID of the team to add or remove. Use the list-account-teams tool to find valid UUIDs
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
}
}
Original tool metadata
{
"name": "update-document-teams",
"title": "Update document teams",
"description": "Adds teams to and/or removes teams from a document.\n\nUse this tool when:\n\n- A document should be assigned to one or more teams\n- A team assignment should be removed from a document\n- A document should be moved from one team to another (one `remove` and one `add` action)\n\nActions are applied on top of the document's current team assignments: teams not mentioned in `team_actions` keep their assignment. Each team may appear in at most one action per call. Adding an already-assigned team or removing a team that is not assigned has no effect. Use the `list-account-teams` tool to discover valid team UUIDs. Some accounts enforce team assignment, in which case the last remaining team cannot be removed.",
"inputSchema": {
"type": "object",
"required": [
"document_uuid",
"team_actions"
],
"properties": {
"team_actions": {
"type": "array",
"items": {
"type": "object",
"required": [
"action",
"team_uuid"
],
"properties": {
"action": {
"enum": [
"add",
"remove"
],
"type": "string",
"description": "Whether to add the team to or remove it from the document"
},
"team_uuid": {
"type": "string",
"description": "UUID of the team to add or remove. Use the list-account-teams tool to find valid UUIDs"
}
}
},
"description": "Changes to apply to the document's team assignments. Teams not mentioned keep their current assignment"
},
"document_uuid": {
"type": "string",
"description": "UUID of the document whose teams to update. If you don't already have the document's UUID, use the list-documents tool to find it."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the team"
},
"uuid": {
"type": "string",
"description": "Identifier for the team. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"team"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"description": "The teams the document is assigned to."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
}
}
},
"annotations": {
"title": "Update document teams",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description85/100
Updates a document's name, locale, document type, signing settings and/or external signatory invitation message.
Use this tool when:
- A document should be renamed
- The document's content language (locale) or document type should change
- The signature type or sequential signing setting should change before signing starts
- The message included in the email inviting external signatories should be set or changed
All arguments except `document_uuid` are optional and only need to be sent if their value should change. `signature_type` and `sequential_signing` cannot be changed once signing has started, and `signature_type` cannot be changed if it was specified by the document's template. Use the `list-account-document-types` tool to discover valid document type UUIDs. This tool cannot change the document's stage (use the `move-document-to-*-stage` tools for that).
The description explains the capability, when to use it, and what to expect.
Inputs93/100
Clarify units, where to obtain this value, or conventions not already expressed in the schema.
document_uuid
UUID of the document to update. If you don't already have the document's UUID, use the list-documents tool to find it.
Clear enough to supply this argument.
name
New name for the document
Clear enough to supply this argument.
locale
New locale code for the document content, e.g. en-GB, de-AT
Clarify units, where to obtain this value, or conventions not already expressed in the schema.
document_type_uuid
UUID of the document type to assign. Pass null to remove the current document type. Use the list-account-document-types tool to find valid UUIDs
Clear enough to supply this argument.
sequential_signing
When true, signatories will sign one at a time, in ascending order of their signing_order. Cannot be changed once signing has started
Clear enough to supply this argument.
signature_type
eIDAS assurance level to use when signing the document. aes_eid is only accepted when the account has enabled AES (eID). Cannot be changed once signing has started or if the value was specified by the template
Clear enough to supply this argument.
external_signatory_invitation_message
Text to display in the email notification sent to external signatories when the document is ready for signing
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set."
}
}
}
Original tool metadata
{
"name": "update-document",
"title": "Update document",
"description": "Updates a document's name, locale, document type, signing settings and/or external signatory invitation message.\n\nUse this tool when:\n\n- A document should be renamed\n- The document's content language (locale) or document type should change\n- The signature type or sequential signing setting should change before signing starts\n- The message included in the email inviting external signatories should be set or changed\n\nAll arguments except `document_uuid` are optional and only need to be sent if their value should change. `signature_type` and `sequential_signing` cannot be changed once signing has started, and `signature_type` cannot be changed if it was specified by the document's template. Use the `list-account-document-types` tool to discover valid document type UUIDs. This tool cannot change the document's stage (use the `move-document-to-*-stage` tools for that).",
"inputSchema": {
"type": "object",
"required": [
"document_uuid"
],
"properties": {
"name": {
"type": "string",
"description": "New name for the document"
},
"locale": {
"type": [
"string",
"null"
],
"description": "New locale code for the document content, e.g. en-GB, de-AT"
},
"document_uuid": {
"type": "string",
"description": "UUID of the document to update. If you don't already have the document's UUID, use the list-documents tool to find it."
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": [
"string",
"null"
],
"description": "eIDAS assurance level to use when signing the document. aes_eid is only accepted when the account has enabled AES (eID). Cannot be changed once signing has started or if the value was specified by the template"
},
"document_type_uuid": {
"type": [
"string",
"null"
],
"description": "UUID of the document type to assign. Pass null to remove the current document type. Use the list-account-document-types tool to find valid UUIDs"
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories will sign one at a time, in ascending order of their signing_order. Cannot be changed once signing has started"
},
"external_signatory_invitation_message": {
"type": [
"string",
"null"
],
"description": "Text to display in the email notification sent to external signatories when the document is ready for signing"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to open the document in fynk"
},
"name": {
"type": "string",
"description": "Name of the document"
},
"uuid": {
"type": "string",
"description": "Unique identifier for the document. Do not show to the user unless they ask for it"
},
"stage": {
"enum": [
"draft",
"approved_draft",
"review",
"approved_review",
"signing",
"done"
],
"type": "string",
"description": "What stage the document is in currently"
},
"locale": {
"type": "string",
"description": "Locale code, e.g. en-GB, de-AT. Absent when the document has none set. Prefer describing the locale in natural language (e.g. 'British English') rather than showing the raw code."
},
"origin": {
"enum": [
"signed_pdf",
"signed_pdf_external_account",
"template",
"scratch",
"onboarding",
"pdf"
],
"type": "string",
"description": "How the document was created."
},
"_entity_type": {
"enum": [
"document"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_type": {
"type": "string",
"description": "If present, indicates what kind of document this is. Absent when the document has no type assigned"
},
"signature_type": {
"enum": [
"aes",
"aes_eid",
"qes",
"ses"
],
"type": "string",
"description": "eIDAS assurance level used when signing the document. Absent when none has been chosen."
},
"sequential_signing": {
"type": "boolean",
"description": "When true, signatories sign one at a time, in ascending order of their signing_order."
},
"source_template_uuid": {
"type": "string",
"description": "UUID of the template the document was created from. Absent when it was not created from a template."
},
"external_signatory_invitation_message": {
"type": "string",
"description": "Text shown in the email inviting external signatories to sign. Absent when no message is set."
}
}
},
"annotations": {
"title": "Update document",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description83/100
Update an existing dynamic field on a template.
Use this tool when:
- The user wants to change a dynamic field's name, scope, options, default value, or other properties
Only send the fields you want to change. A field's `type` cannot be changed after creation; to change the type,
delete the field and create a new one.
`select` and `multi_select` fields still require non-empty `select_values`.
The default value is set via `value` (for non-multi_select fields) or `values` (for multi_select fields), formatted
according to the field's type (see create-template-dynamic-field for the per-type format). Setting a default value
clears any autofill configured on the field. Use get-template-info with include=["dynamic_fields"] to discover the
dynamic fields on a template and their UUIDs and types.
The description explains the capability, when to use it, and what to expect.
Inputs88/100
Clarify units, where to obtain this value, or conventions not already expressed in the schema.
template_uuid
UUID of the template the dynamic field belongs to
Clarify units, where to obtain this value, or conventions not already expressed in the schema.
dynamic_field_uuid
UUID of the dynamic field to update (use get-template-info with include=["dynamic_fields"] to find it)
Clear enough to supply this argument.
name
Display name of the field (max 255 characters)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
scope
Who fills in the field: "internal" (only your team) or "internal_and_external" (also counterparties)
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
select_values
For "select" and "multi_select" types: the allowed options for the field
Clear enough to supply this argument.
is_mandatory
Whether the field must be filled in before the document can be signed
Clear enough to supply this argument.
question
Optional question or prompt shown to the user filling in this field
Clear enough to supply this argument.
value
Default value for non-multi_select fields. Format depends on type (see create-template-dynamic-field). Clears any autofill on the field.
Clear enough to supply this argument.
values
Default value for multi_select fields: an array of options from select_values
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
}
Original tool metadata
{
"name": "update-template-dynamic-field",
"title": "Update template dynamic field",
"description": "Update an existing dynamic field on a template.\n\nUse this tool when:\n\n- The user wants to change a dynamic field's name, scope, options, default value, or other properties\n\nOnly send the fields you want to change. A field's `type` cannot be changed after creation; to change the type,\ndelete the field and create a new one.\n\n`select` and `multi_select` fields still require non-empty `select_values`.\n\nThe default value is set via `value` (for non-multi_select fields) or `values` (for multi_select fields), formatted\naccording to the field's type (see create-template-dynamic-field for the per-type format). Setting a default value\nclears any autofill configured on the field. Use get-template-info with include=[\"dynamic_fields\"] to discover the\ndynamic fields on a template and their UUIDs and types.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid",
"dynamic_field_uuid"
],
"properties": {
"name": {
"type": "string",
"description": "Display name of the field (max 255 characters)"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": [
"string",
"null"
],
"description": "Default value for non-multi_select fields. Format depends on type (see create-template-dynamic-field). Clears any autofill on the field."
},
"values": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Default value for multi_select fields: an array of options from select_values"
},
"question": {
"type": [
"string",
"null"
],
"description": "Optional question or prompt shown to the user filling in this field"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether the field must be filled in before the document can be signed"
},
"select_values": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "For \"select\" and \"multi_select\" types: the allowed options for the field"
},
"template_uuid": {
"type": "string",
"description": "UUID of the template the dynamic field belongs to"
},
"dynamic_field_uuid": {
"type": "string",
"description": "UUID of the dynamic field to update (use get-template-info with include=[\"dynamic_fields\"] to find it)"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"enum": [
"id",
"uuid",
"bool",
"date",
"duration",
"email",
"list",
"number",
"currency",
"currency_duration",
"clause",
"select",
"multi_select",
"text",
"textarea",
"timestamp",
"array",
"enum"
],
"type": "string",
"description": "Controls the type of values that can be stored"
},
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "Who fills in the field: \"internal\" (only your team) or \"internal_and_external\" (also counterparties)"
},
"value": {
"type": "string",
"description": "For none-multi_select-type fields, the value of the field. Absent when the field has no value."
},
"values": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "For multi_select-type fields, the value of the field. Absent when the field has no value."
},
"question": {
"type": "string",
"description": "The question or prompt shown to the user for this field"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing dynamic fields in documents to be matched their corresponding field in the document's source template. Do not show to the user unless they ask for it"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "For currency or currency_duration fields, the allowed currency codes (e.g. [\"EUR\", \"USD\"]). Absent indicates no restriction"
},
"_entity_type": {
"enum": [
"dynamic_field"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"is_mandatory": {
"type": "boolean",
"description": "Whether this field must be filled in before the document can be signed"
},
"select_values": {
"type": "array",
"items": {
"type": "string"
},
"description": "When type is \"select\" or \"multi_select\", defines the allowed values for the field. For these types of field, ONLY these values are possible. Absent for every other type"
}
}
},
"annotations": {
"title": "Update template dynamic field",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description89/100
Update an existing party on a template.
Use this tool when:
- The user wants to change a party's role label, entity details, or scope
- The user wants to link an existing external party to a saved account party, or unlink it again
Only send the fields you want to change. `reference` is the party's role label on the template (e.g. "Employer").
Account party linkage:
- Send `account_party_uuid` (from list-account-parties) to link the party to a saved account party. While linked,
only `reference` may be changed; `entity_name`, `address`, and `scope` cannot be sent.
- Send `account_party_uuid` as null to unlink the party, turning it back into an external party whose entity details
and scope you can then set.
Use get-template-info to discover the parties on a template and their UUIDs.
The description explains the capability, when to use it, and what to expect.
Inputs92/100
Input documentation gives an agent enough context to populate the arguments.
template_uuid
UUID of the template the party belongs to
Clear enough to supply this argument.
party_uuid
UUID of the party to update (use get-template-info to find it)
Clear enough to supply this argument.
reference
Generic reference for the party's role on the template. e.g. "Counterparty", "Customer", "Employer"
Clear enough to supply this argument.
account_party_uuid
UUID of a saved account party (from list-account-parties) to link this party to. Send null to unlink. While linked, only reference may be changed.
Clear enough to supply this argument.
entity_name
Actual name of the party. Only for external (non account-linked) parties.
Clear enough to supply this argument.
address
Party's address. Only for external (non account-linked) parties.
Clear enough to supply this argument.
scope
When internal_and_external, collaborators from this party may change the party's information. Only for external (non account-linked) parties.
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
}
Original tool metadata
{
"name": "update-template-party",
"title": "Update template party",
"description": "Update an existing party on a template.\n\nUse this tool when:\n\n- The user wants to change a party's role label, entity details, or scope\n- The user wants to link an existing external party to a saved account party, or unlink it again\n\nOnly send the fields you want to change. `reference` is the party's role label on the template (e.g. \"Employer\").\n\nAccount party linkage:\n\n- Send `account_party_uuid` (from list-account-parties) to link the party to a saved account party. While linked,\n only `reference` may be changed; `entity_name`, `address`, and `scope` cannot be sent.\n- Send `account_party_uuid` as null to unlink the party, turning it back into an external party whose entity details\n and scope you can then set.\n\nUse get-template-info to discover the parties on a template and their UUIDs.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid",
"party_uuid"
],
"properties": {
"scope": {
"enum": [
"internal",
"internal_and_external"
],
"type": "string",
"description": "When internal_and_external, collaborators from this party may change the party's information. Only for external (non account-linked) parties."
},
"address": {
"type": [
"string",
"null"
],
"description": "Party's address. Only for external (non account-linked) parties."
},
"reference": {
"type": "string",
"description": "Generic reference for the party's role on the template. e.g. \"Counterparty\", \"Customer\", \"Employer\""
},
"party_uuid": {
"type": "string",
"description": "UUID of the party to update (use get-template-info to find it)"
},
"entity_name": {
"type": [
"string",
"null"
],
"description": "Actual name of the party. Only for external (non account-linked) parties."
},
"template_uuid": {
"type": "string",
"description": "UUID of the template the party belongs to"
},
"account_party_uuid": {
"type": [
"string",
"null"
],
"description": "UUID of a saved account party (from list-account-parties) to link this party to. Send null to unlink. While linked, only reference may be changed."
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Identifier for the party - unique to the specific instance of the party. Do not show to the user unless they ask for it"
},
"address": {
"type": "string",
"description": "The party's address. Absent when not yet known"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing parties in documents to be matched their corresponding party in the document's source template. Do not show to the user unless they ask for it"
},
"reference": {
"type": "string",
"description": "A generic reference for the party. e.g. \"Customer\", \"Employee\", etc"
},
"entity_name": {
"type": "string",
"description": "The actual name of the party. Absent when not yet known"
},
"is_internal": {
"type": "boolean",
"description": "True if the party belongs to this account"
},
"_entity_type": {
"enum": [
"party"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
}
}
},
"annotations": {
"title": "Update template party",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
The title clearly communicates the tool’s action and subject. Keep it concise.
Description89/100
Update the presentation of a signature block on a template.
Use this tool when:
- The user wants to change how an existing signature block looks (its style or scale)
Only `style` and `scale` can be changed, and a field left out keeps its current value. The party a signature block
belongs to cannot be reassigned; to move a signature block to a different party, delete it and create a new one.
Use get-template-info with include=["signature_blocks"] to discover the signature blocks on a template and their
UUIDs.
The description explains the capability, when to use it, and what to expect.
Inputs93/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
template_uuid
UUID of the template the signature block belongs to. Use list-templates to find it.
Clear enough to supply this argument.
signature_block_uuid
UUID of the signature block to update (use get-template-info with include=["signature_blocks"] to find it)
Clear enough to supply this argument.
style
How the signature block looks: "regular" shows the party and the signatory's name and title beneath the signature, "minimal" only the signatory's name. Leave it out to keep the current style.
Clear enough to supply this argument.
scale
Size of the signature block as a percentage of its default size, which is 100. Leave it out to keep the current size.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
{
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
}
Original tool metadata
{
"name": "update-template-signature-block",
"title": "Update template signature block",
"description": "Update the presentation of a signature block on a template.\n\nUse this tool when:\n\n- The user wants to change how an existing signature block looks (its style or scale)\n\nOnly `style` and `scale` can be changed, and a field left out keeps its current value. The party a signature block\nbelongs to cannot be reassigned; to move a signature block to a different party, delete it and create a new one.\nUse get-template-info with include=[\"signature_blocks\"] to discover the signature blocks on a template and their\nUUIDs.",
"inputSchema": {
"type": "object",
"required": [
"template_uuid",
"signature_block_uuid"
],
"properties": {
"scale": {
"type": "integer",
"maximum": 150,
"minimum": 50,
"description": "Size of the signature block as a percentage of its default size, which is 100. Leave it out to keep the current size."
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "How the signature block looks: \"regular\" shows the party and the signatory's name and title beneath the signature, \"minimal\" only the signatory's name. Leave it out to keep the current style."
},
"template_uuid": {
"type": "string",
"description": "UUID of the template the signature block belongs to. Use list-templates to find it."
},
"signature_block_uuid": {
"type": "string",
"description": "UUID of the signature block to update (use get-template-info with include=[\"signature_blocks\"] to find it)"
}
}
},
"outputSchema": {
"type": "object",
"properties": {
"uuid": {
"type": "string",
"description": "Do not show to the user unless they ask for it"
},
"scale": {
"type": "integer",
"description": "Scale percentage of the signature block (50–150)"
},
"style": {
"enum": [
"regular",
"minimal"
],
"type": "string",
"description": "Visual style of the signature block"
},
"ref_uuid": {
"type": "string",
"description": "A static reference identifier, allowing signature blocks in documents to be matched to their corresponding block in the source template. Do not show to the user unless they ask for it"
},
"party_uuid": {
"type": "string",
"description": "UUID of the party this signature block belongs to. Do not show to the user unless they ask for it"
},
"_entity_type": {
"enum": [
"signature_block"
],
"type": "string",
"description": "Only relevant for tooling. Do not show to the user"
},
"document_user_uuid": {
"type": "string",
"description": "UUID of the single signatory this signature block is bound to. Absent when the block is bound to its party instead, in which case every signatory of that party signs it. Do not show to the user unless they ask for it"
}
}
},
"annotations": {
"title": "Update template signature block",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}
Loading score analytics…
Put your MCP to the test
A few tasks worth trying with this server, chosen from its reviewed tools. These have not been run.
01Get user infoGet information about the current user.
02List documentsGet a paginated list of the documents available to the current user.
03Search external partiesSearch the account's external parties (people and businesses that appear on documents) by name.
04Search automationsSearch the account's automations by name.
05List templatesGet a paginated list of the templates available to the current user.
Want to run these tasks against your MCP server with us?
Your CRM knows the deal. Your project tool knows the work. Neither can turn it into a contract, so someone opens a third tab and retypes what the other two already know.
fynk closes that gap. Claude takes the details from the conversation you're already in, drafts the agreement from a template you've already approved, and sends it out for a legally binding signature. No third tab.
It works on the contracts you've already signed, too. Ask what you committed to on delivery times and clauses, see which agreements renew before March, retag forty contracts in one go, and works in whatever language they were written in.
Claude operates inside your own fynk permissions: it can only reach what you can, and nothing goes out without your confirmation.
Built for the people who handle contracts alongside five other things, with no legal team down the hall.
archive-documentattach-account-users-to-teamcreate-account-tagcreate-account-teamcreate-document-from-pdf-uploadcreate-document-from-scratchcreate-document-from-templatecreate-document-partycreate-document-pdf-upload-urlcreate-document-signatorycreate-template-dynamic-fieldcreate-template-party+44 more
fynk MCP Server setup, tools, quality score, publishing readiness, and alternatives.
How do I add fynk MCP Server to Claude, ChatGPT, or Cursor?
Add fynk MCP Server to Claude, ChatGPT, or Cursor by connecting its remote MCP URL in each client's MCP settings. In Claude, add a custom connector. In ChatGPT, add an MCP app. In Cursor, add an MCP server under Settings. The MCP URL is https://app.fynk.com/mcp. This server requires OAuth, so complete the login prompt after you connect.
Is fynk MCP Server MCP ready for ChatGPT and Claude?
As of December 4, 2026, fynk MCP Server scores 93/100 on Manufact's MCP publishing checklist. The scan meets ChatGPT publishing checks and meets Claude publishing checks. Passing these checks does not guarantee marketplace approval.
How clear is fynk MCP Server's MCP tool documentation?
As of December 4, 2026, fynk MCP Server scores 93/100 in Manufact's review of tool titles, descriptions, input and output schemas, and behavior annotations. The review covers 78 of 78 discovered tools. The quality score measures documentation clarity; runtime behavior and marketplace readiness require separate checks.
What tools does the fynk MCP Server MCP server provide?
fynk MCP Server lists 56 MCP tools, including archive-document, attach-account-users-to-team, create-account-tag, create-account-team, create-document-from-pdf-upload, create-document-from-scratch, create-document-from-template, create-document-party, create-document-pdf-upload-url, create-document-signatory, create-template-dynamic-field, and create-template-party.
What are the best alternatives to fynk MCP Server?
As of December 4, 2026, alternatives to fynk MCP Server in productivity on the Manufact MCP leaderboard include Taskaid, AdaptlyPost, Notion MCP, Paperpal, and VantagePeers.
Does fynk MCP Server MCP require authentication?
fynk MCP Server requires authentication. Connect it in Claude, ChatGPT, or Cursor and complete the OAuth login prompt.
Who develops fynk MCP Server?
fynk MCP Server is developed by fynk. It is listed as community on the Claude connector directory.
Not your MCP?
Review any public or OAuth MCP server for protocol compatibility, tool documentation, and ChatGPT and Claude publishing readiness. No account required.