Skip to main content
Glama

Create document user

create-document-user
Destructive

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.

Tool call template

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

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "document_uuid": "<document_uuid>",
      "role": "<role>"
    },
    "name": "create-document-user"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesThe person's access level on the document. Only people with a fynk account user in this account can be owners
emailNoEmail address of the person to add. Send this or account_user_uuid, not both
titleNoJob title. Ignored for a person with a fynk account in this account
last_nameNoLast name. Ignored for a person with a fynk account in this account
first_nameNoFirst name. Ignored for a person with a fynk account in this account
document_uuidYesUUID 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_methodNo"fynk_email" emails the person an invitation to the document. "none" adds them without an emailfynk_email
party_identifierNoThe 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_uuidNouuid of an account user to add, as returned by list-account-users. Send this or email, not both
invitation_messageNoAn 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

Output Schema

NameRequiredDescriptionDefault
nameNoName of the document user
roleNoThe user's access level on the document. Independent of is_signatory: a viewer may also be a signatory
uuidNoDo not show to the user unless they ask for it
emailNoEmail of the document user
party_uuidNoUUID 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_typeNoOnly relevant for tooling. Do not show to the user
is_signatoryNotrue if the user is also a signatory of the document
internal_userNotrue if the user has a fynk user in this account
invitation_statusNoWhether the user has been invited to the document, as prose that can be presented to the user

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint/openWorldHint true, idempotentHint false), the description discloses the side effect of sending an invitation email, the duplicate-email refusal, the stage restriction barring non-account users in draft/approved_draft, the restriction that only account users can be owners, and that first_name/last_name/title are ignored for account users. That is substantial behavior an agent could not infer from the annotation flags.

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

Conciseness4/5

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

The definition is front-loaded with purpose and a scannable "Use this tool when" list, and every paragraph carries distinct constraint information. It is on the long side and partly repeats the confirm-the-email instruction in a second sentence about creating multiple users in succession.

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

Completeness5/5

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

For a 10-parameter, non-idempotent mutation with an output schema, the description covers prerequisites, failure modes (duplicate email, draft-stage restriction), required conditional parameters, and the email side effect. Nothing needed to invoke it correctly appears to be missing, and return values are covered by the output schema.

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

Parameters4/5

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

Schema coverage is 100%, so a 3 is the floor, and the description genuinely adds selection logic on top: exactly-one-of email/account_user_uuid, when party_identifier becomes required and how to pick the right party via is_internal, and what invite_method=none plus a later update-document-user mode=send_invitation implies. It stops short of explaining invitation_message formatting details, which live only in the schema.

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

Purpose5/5

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

The opening sentence names a concrete verb and resource (grant a person access to a document) and immediately bounds the scope with the three allowed roles and the default email behavior. It also differentiates from siblings by name: create-document-signatory for signers and update-document-user for people who already exist on the document.

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

Usage Guidelines5/5

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

There is an explicit "Use this tool when" block with two concrete scenarios, plus explicit when-not routing (signatories go to create-document-signatory, existing users go to update-document-user). It also imposes a procedural requirement to confirm the invite email with the user before calling, rather than defaulting.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources