Skip to main content
Glama

send_document_from_template

Send documents for electronic signatures using predefined templates. Specify recipients, populate form fields, and configure sending options to create and distribute signing requests.

Instructions

Initiates the process of sending a document based on a pre-defined template. This tool allows you to specify recipients, form field values, and various sending options to create and send a document for signing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
templateIdYesRequired. The unique identifier (ID) of the template to be used for sending the document. This can be obtained from the list templates tool.
bodyYesOptional. The main content and settings for sending the document.

Implementation Reference

  • Primary handler function that executes the core logic: initializes TemplateApi, prepares roles, calls sendUsingTemplate API, and handles response/error.
    async function sendDocumentFromTemplateDynamicHandler(
      payload: SendDocumentFromTemplateSchemaType,
    ): Promise<McpResponse> {
      try {
        const templateApi = new TemplateApi();
        templateApi.basePath = configuration.getBasePath();
        templateApi.setApiKey(configuration.getApiKey());
        const roles = getRolesFromRequestPayload(payload);
        const documentCreated: DocumentCreated = await templateApi.sendUsingTemplate(payload.templateId, {
          fileUrls: payload.body.fileUrls,
          title: payload.body.title ?? undefined,
          message: payload.body.message ?? undefined,
          roles: roles,
          brandId: payload.body.brandId ?? undefined,
          disableEmails: payload.body.disableEmails ?? undefined,
          disableSMS: payload.body.disableSMS ?? undefined,
          hideDocumentId: payload.body.hideDocumentId ?? undefined,
          reminderSettings: payload.body.reminderSettings ?? undefined,
          cc: payload.body.cc ?? undefined,
          expiryDays: payload.body.expiryDays ?? undefined,
          enablePrintAndSign: payload.body.enablePrintAndSign ?? undefined,
          enableReassign: payload.body.enableReassign ?? undefined,
          enableSigningOrder: payload.body.enableSigningOrder ?? undefined,
          disableExpiryAlert: payload.body.disableExpiryAlert ?? undefined,
          scheduledSendTime: payload.body.scheduledSendTime ?? undefined,
          allowScheduledSend: payload.body.allowScheduledSend ?? undefined,
        } as SendForSignFromTemplateForm);
        return handleMcpResponse({
          data: documentCreated,
        });
      } catch (error: any) {
        return handleMcpError(error);
      }
    }
  • Zod input schema for the tool parameters, defining templateId and body with all options like roles, cc, reminders, expiry, etc. Sub-schemas (SignerDetailsSchema, RolesSchema, etc.) defined lines 9-110.
    const SendDocumentFromTemplateSchema = z.object({
      templateId: commonSchema.InputIdSchema.describe(
        'Required. The unique identifier (ID) of the template to be used for sending the document. This can be obtained from the list templates tool.',
      ),
      body: z
        .object({
          title: commonSchema.OptionalStringSchema.describe(
            'This is the title of the document that will be displayed in the BoldSign user interface as well as in the signature request email.',
          ),
          message: commonSchema.OptionalStringSchema.describe(
            'A message for all the recipients. You can include the instructions that the signer should know before signing the document.',
          ),
          fileUrls: z
            .array(commonSchema.FileUrlSchema)
            .max(25)
            .optional()
            .nullable()
            .describe('Optional. An array of URLs pointing to additional files to be attached to the document.'),
          roles: RolesSchema,
          cc: z
            .array(
              z
                .object({
                  emailAddress: z.string().email().describe('Email address of the CC recipient.'),
                })
                .describe('Email address of the CC recipients.'),
            )
            .optional()
            .nullable()
            .describe(
              'Optional. An array of email addresses to be added as carbon copy (CC) recipients to the document. CC recipients will receive a copy of the completed document.',
            ),
          brandId: commonSchema.InputIdSchema.optional()
            .nullable()
            .describe(
              'The unique identifier (ID) of the brand to be associated with this document. If provided, the document will be branded accordingly.',
            ),
          disableEmails: commonSchema.OptionalBooleanSchema.describe(
            'Disables the sending of document related emails to all the recipients. The default value is false.',
          ),
          disableSMS: commonSchema.OptionalBooleanSchema.describe(
            'Disables the sending of document related SMS to all the recipients. The default value is false.',
          ),
          hideDocumentId: commonSchema.OptionalBooleanSchema.describe(
            'Decides whether the document ID should be hidden or not.',
          ),
          reminderSettings: z
            .object({
              enableAutoReminder: commonSchema.OptionalBooleanSchema.describe(
                'A flag indicating whether automatic reminders should be enabled for this document.',
              ),
              reminderDays: commonSchema.OptionalIntegerSchema.describe(
                'The number of days after which a reminder should be sent to the signers.',
              ),
              reminderCount: commonSchema.OptionalIntegerSchema.describe(
                'The maximum number of reminders to be sent to the signers.',
              ),
            })
            .optional()
            .nullable()
            .describe('Optional. Settings for automated reminders to be sent to the signers.'),
          expiryDays: commonSchema.OptionalIntegerSchema.default(60).describe(
            'The number of days after which the document expires. The default value is 60 days.',
          ),
          enablePrintAndSign: commonSchema.OptionalBooleanSchema.describe(
            'Allows the signer to print the document, sign, and upload it. The default value is false.',
          ),
          enableReassign: commonSchema.OptionalBooleanSchema.describe(
            'Allows the signer to reassign the signature request to another person. The default value is true.',
          ),
          enableSigningOrder: commonSchema.OptionalBooleanSchema.describe(
            'Enables or disables the signing order. If this option is enabled, then the signers can only sign the document in the specified order and cannot sign in parallel. The default value is false.',
          ),
          disableExpiryAlert: commonSchema.OptionalBooleanSchema.describe(
            'Disables the alert, which was shown one day before the expiry of the document.',
          ),
          scheduledSendTime: commonSchema.OptionalIntegerSchema.describe(
            "This property allows you to specify the date and time in Unix Timestamp format to schedule a document for sending at a future time. The scheduled time must be at least 30 minutes from the current time and must not exceed the document's expiry date.",
          ),
          allowScheduledSend: commonSchema.OptionalIntegerSchema.describe(
            'Indicates whether scheduled sending is allowed for this document (e.g., 1 for allowed, 0 for not allowed).',
          ),
        })
        .describe('Optional. The main content and settings for sending the document.'),
    });
  • Tool definition object registering the method name, description, schema, and handler wrapper for the MCP tool.
    export const sendDocumentFromTemplateDynamicToolDefinition: BoldSignTool = {
      method: ToolNames.SendDocumentFromTemplate.toString(),
      name: 'Send document from template',
      description:
        'Initiates the process of sending a document based on a pre-defined template. This tool allows you to specify recipients, form field values, and various sending options to create and send a document for signing.',
      inputSchema: SendDocumentFromTemplateSchema,
      async handler(args: unknown): Promise<McpResponse> {
        return await sendDocumentFromTemplateDynamicHandler(args as SendDocumentFromTemplateSchemaType);
      },
    };
  • Helper function to transform input roles schema into BoldSign Role objects array used in the API call.
    function getRolesFromRequestPayload(payload: SendDocumentFromTemplateSchemaType): Array<Role> {
      const roles = new Array<Role>();
      payload?.body.roles?.forEach((requestRole) => {
        const role = new Role();
        role.roleIndex = requestRole.roleIndex ?? undefined;
        role.signerName = requestRole.signerDetails?.signerName ?? undefined;
        role.signerOrder = requestRole.signerDetails?.signerOrder ?? undefined;
        role.signerEmail = requestRole.signerDetails?.signerEmail ?? undefined;
        role.privateMessage = requestRole.privateMessage ?? undefined;
        role.authenticationCode = requestRole.authenticationCode ?? undefined;
        role.enableEmailOTP = requestRole.enableEmailOTP ?? undefined;
        role.authenticationType = requestRole.authenticationType
          ? (requestRole.authenticationType as unknown as Role.AuthenticationTypeEnum)
          : undefined;
        role.phoneNumber = requestRole.phoneNumber ?? undefined;
        role.deliveryMode = requestRole.deliveryMode
          ? (requestRole.deliveryMode as unknown as Role.DeliveryModeEnum)
          : undefined;
        role.signerType = requestRole.signerType
          ? (requestRole.signerType as unknown as Role.SignerTypeEnum)
          : undefined;
        role.signerRole = requestRole.signerRole ?? undefined;
        role.allowFieldConfiguration = requestRole.allowFieldConfiguration ?? undefined;
        role.existingFormFields = requestRole.existingFormFields ?? undefined;
        role.enableQes = requestRole.enableQes ?? undefined;
        roles.push(role);
      });
      return roles;
    }
  • Local registration in templates tools module, including this tool in the templatesApiToolsDefinitions array, which is spread into main tools.
    export const templatesApiToolsDefinitions: BoldSignTool[] = [
      sendDocumentFromTemplateDynamicToolDefinition,
      listTemplatesToolDefinition,
      getTemplatePropertiesToolDefinition,
    ];

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changedv1.0.0
    • changedInput schema / properties / body / properties / allowScheduledSend / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/signerDetails/anyOf/0/anyOf/1/properties/signerOrder/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / brandId / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "not": {}
      -      },
      -      {
      -        "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/existingFormFields/anyOf/0/anyOf/1/items/properties/id/anyOf/0/anyOf/1"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / cc / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "not": {}
      -      },
      -      {
      -        "items": {
      -          "additionalProperties": false,
      -          "description": "Email address of the CC recipients.",
      -          "properties": {
      -            "emailAddress": {
      -              "description": "Email address of the CC recipient.",
      -              "format": "email",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "emailAddress"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "description": "Email address of the CC recipients.",
      +      "properties": {
      +        "emailAddress": {
      +          "description": "Email address of the CC recipient.",
      +          "format": "email",
      +          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "emailAddress"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / disableEmails / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/enableEmailOTP/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "default": false,
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / disableExpiryAlert / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/enableEmailOTP/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "default": false,
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / disableSMS / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/enableEmailOTP/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "default": false,
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / enablePrintAndSign / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/enableEmailOTP/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "default": false,
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / enableReassign / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/enableEmailOTP/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "default": false,
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / enableSigningOrder / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/enableEmailOTP/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "default": false,
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / expiryDays / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/signerDetails/anyOf/0/anyOf/1/properties/signerOrder/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / fileUrls / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "not": {}
      -      },
      -      {
      -        "items": {
      -          "description": "The URL of the file must be publicly accessible. The supported file formats are .pdf, .png, .jpg, and .docx. The preferred file format is .pdf. You can upload up to 25 files. Each document may have a maximum of 1000 pages and must be no larger than 25 MB in size.",
      -          "format": "uri",
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "maxItems": 25,
      -        "type": "array"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "description": "The URL of the file must be publicly accessible. The supported file formats are .pdf, .png, .jpg, and .docx. The preferred file format is .pdf. You can upload up to 25 files. Each document may have a maximum of 1000 pages and must be no larger than 25 MB in size.",
      +      "format": "uri",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "maxItems": 25,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / hideDocumentId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/enableEmailOTP/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "default": false,
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / message / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/body/properties/title/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / reminderSettings / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "not": {}
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "enableAutoReminder": {
      -            "anyOf": [
      -              {
      -                "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/enableEmailOTP/anyOf/0"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "A flag indicating whether automatic reminders should be enabled for this document."
      -          },
      -          "reminderCount": {
      -            "anyOf": [
      -              {
      -                "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/signerDetails/anyOf/0/anyOf/1/properties/signerOrder/anyOf/0"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "The maximum number of reminders to be sent to the signers."
      -          },
      -          "reminderDays": {
      -            "anyOf": [
      -              {
      -                "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/signerDetails/anyOf/0/anyOf/1/properties/signerOrder/anyOf/0"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "The number of days after which a reminder should be sent to the signers."
      -          }
      -        },
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "enableAutoReminder": {
      +        "anyOf": [
      +          {
      +            "default": false,
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "A flag indicating whether automatic reminders should be enabled for this document."
      +      },
      +      "reminderCount": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "The maximum number of reminders to be sent to the signers."
      +      },
      +      "reminderDays": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "The number of days after which a reminder should be sent to the signers."
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / roles / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "not": {}
      -      },
      -      {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "allowFieldConfiguration": {
      -              "anyOf": [
      -                {
      -                  "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/enableEmailOTP/anyOf/0"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "This option enables the signer to add fields at their end while signing the document. If this option is set to false, the signer cannot add fields, and they must complete the assigned ones. By default, it is set to false."
      -            },
      -            "authenticationCode": {
      -              "anyOf": [
      -                {
      -                  "$ref": "#/properties/body/properties/title/anyOf/0"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "The authentication access code that the signer must enter to access the document. This should be shared with the signer privately by the sender."
      -            },
      -            "authenticationType": {
      -              "anyOf": [
      -                {
      -                  "anyOf": [
      -                    {
      -                      "not": {}
      -                    },
      -                    {
      -                      "enum": [
      -                        "None",
      -                        "EmailOTP",
      -                        "AccessCode",
      -                        "SMSOTP"
      -                      ],
      -                      "type": "string"
      -                    }
      -                  ]
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": "None",
      -              "description": "This is used to allow authentication for a specific signer. We have three types of authentication. They are AccessCode and EmailOTP. The default value is None."
      -            },
      -            "deliveryMode": {
      -              "anyOf": [
      -                {
      -                  "anyOf": [
      -                    {
      -                      "not": {}
      -                    },
      -                    {
      -                      "enum": [
      -                        "Email",
      -                        "SMS"
      -                      ],
      -                      "type": "string"
      -                    }
      -                  ]
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "The method by which the document should be delivered to the signer (e.g., 'Email', 'SMS'). When SMS is enabled, you should also provide the phone number."
      -            },
      -            "enableEmailOTP": {
      -              "anyOf": [
      -                {
      -                  "anyOf": [
      -                    {
      -                      "not": {}
      -                    },
      -                    {
      -                      "default": false,
      -                      "type": "boolean"
      -                    }
      -                  ]
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "A flag indicating whether One-Time Password (OTP) via email should be enabled for this signer's authentication."
      -            },
      -            "enableQes": {
      -              "anyOf": [
      -                {
      -                  "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/enableEmailOTP/anyOf/0"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "A flag indicating whether Qualified Electronic Signature (QES) should be enabled for this signer."
      -            },
      -            "existingFormFields": {
      -              "anyOf": [
      -                {
      -                  "anyOf": [
      -                    {
      -                      "not": {}
      -                    },
      -                    {
      -                      "items": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "id": {
      -                            "anyOf": [
      -                              {
      -                                "anyOf": [
      -                                  {
      -                                    "not": {}
      -                                  },
      -                                  {
      -                                    "type": "string"
      -                                  }
      -                                ]
      -                              },
      -                              {
      -                                "type": "null"
      -                              }
      -                            ],
      -                            "description": "The unique identifier (ID) of the existing form field to be updated."
      -                          },
      -                          "index": {
      -                            "description": "The index of an existing form field to be updated.",
      -                            "type": "integer"
      -                          },
      -                          "isReadOnly": {
      -                            "anyOf": [
      -                              {
      -                                "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/enableEmailOTP/anyOf/0"
      -                              },
      -                              {
      -                                "type": "null"
      -                              }
      -                            ],
      -                            "description": "Decides whether this form field is read only or not."
      -                          },
      -                          "name": {
      -                            "anyOf": [
      -                              {
      -                                "$ref": "#/properties/body/properties/title/anyOf/0"
      -                              },
      -                              {
      -                                "type": "null"
      -                              }
      -                            ],
      -                            "description": "Optional name of the existing form field."
      -                          },
      -                          "value": {
      -                            "anyOf": [
      -                              {
      -                                "$ref": "#/properties/body/properties/title/anyOf/0"
      -                              },
      -                              {
      -                                "type": "null"
      -                              }
      -                            ],
      -                            "description": "Optional value of the existing form field."
      -                          }
      -                        },
      -                        "type": "object"
      -                      },
      -                      "type": "array"
      -                    }
      -                  ]
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Optional. An array of existing form fields to be updated in the document for a role. When needed this information can be fetch from the get template tool to find the fillable form field for each signers."
      -            },
      -            "phoneNumber": {
      -              "anyOf": [
      -                {
      -                  "anyOf": [
      -                    {
      -                      "not": {}
      -                    },
      -                    {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "countryCode": {
      -                          "description": "Country code.",
      -                          "type": "string"
      -                        },
      -                        "number": {
      -                          "description": "Phone number.",
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "countryCode",
      -                        "number"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  ]
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "The phone number of the signer, including the country code. Required for SMS authentication."
      -            },
      -            "privateMessage": {
      -              "anyOf": [
      -                {
      -                  "$ref": "#/properties/body/properties/title/anyOf/0"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Displays a private message to the specified signer when they proceed to sign the document. You can include the instructions that the signer should know before signing the document."
      -            },
      -            "roleIndex": {
      -              "description": "The index of the role, indicating the position of the signer in the signing process. Must be between 1 and 50.",
      -              "maximum": 50,
      -              "minimum": 1,
      -              "type": "number"
      -            },
      -            "signerDetails": {
      -              "anyOf": [
      -                {
      -                  "anyOf": [
      -                    {
      -                      "not": {}
      -                    },
      -                    {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "signerEmail": {
      -                          "description": "The email address of the signer assigned to this role. This is where the signing invitation will be sent.",
      -                          "type": "string"
      -                        },
      -                        "signerName": {
      -                          "description": "The name of the signer assigned to this role.",
      -                          "type": "string"
      -                        },
      -                        "signerOrder": {
      -                          "anyOf": [
      -                            {
      -                              "anyOf": [
      -                                {
      -                                  "not": {}
      -                                },
      -                                {
      -                                  "type": "number"
      -                                }
      -                              ]
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ],
      -                          "description": "The sequential order in which the signers in this role need to sign the document. Only relevant when 'enableSigningOrder' is true."
      -                        }
      -                      },
      -                      "required": [
      -                        "signerName",
      -                        "signerEmail"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  ]
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Optional. The signer information for a template role."
      -            },
      -            "signerRole": {
      -              "anyOf": [
      -                {
      -                  "$ref": "#/properties/body/properties/title/anyOf/0"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Optional. The user defined role of the signer, which was specified while creating the template."
      -            },
      -            "signerType": {
      -              "anyOf": [
      -                {
      -                  "anyOf": [
      -                    {
      -                      "not": {}
      -                    },
      -                    {
      -                      "enum": [
      -                        "Signer",
      -                        "Reviewer"
      -                      ],
      -                      "type": "string"
      -                    }
      -                  ]
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "The type of signer (e.g., 'Signer', 'Reviewer')."
      -            }
      -          },
      -          "required": [
      -            "roleIndex"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "allowFieldConfiguration": {
      +          "anyOf": [
      +            {
      +              "default": false,
      +              "type": "boolean"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "This option enables the signer to add fields at their end while signing the document. If this option is set to false, the signer cannot add fields, and they must complete the assigned ones. By default, it is set to false."
      +        },
      +        "authenticationCode": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The authentication access code that the signer must enter to access the document. This should be shared with the signer privately by the sender."
      +        },
      +        "authenticationType": {
      +          "anyOf": [
      +            {
      +              "enum": [
      +                "None",
      +                "EmailOTP",
      +                "AccessCode",
      +                "SMSOTP"
      +              ],
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": "None",
      +          "description": "This is used to allow authentication for a specific signer. We have three types of authentication. They are AccessCode and EmailOTP. The default value is None."
      +        },
      +        "deliveryMode": {
      +          "anyOf": [
      +            {
      +              "enum": [
      +                "Email",
      +                "SMS"
      +              ],
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The method by which the document should be delivered to the signer (e.g., 'Email', 'SMS'). When SMS is enabled, you should also provide the phone number."
      +        },
      +        "enableEmailOTP": {
      +          "anyOf": [
      +            {
      +              "default": false,
      +              "type": "boolean"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "A flag indicating whether One-Time Password (OTP) via email should be enabled for this signer's authentication."
      +        },
      +        "enableQes": {
      +          "anyOf": [
      +            {
      +              "default": false,
      +              "type": "boolean"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "A flag indicating whether Qualified Electronic Signature (QES) should be enabled for this signer."
      +        },
      +        "existingFormFields": {
      +          "anyOf": [
      +            {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "id": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "The unique identifier (ID) of the existing form field to be updated."
      +                  },
      +                  "index": {
      +                    "description": "The index of an existing form field to be updated.",
      +                    "maximum": 9007199254740991,
      +                    "minimum": -9007199254740991,
      +                    "type": "integer"
      +                  },
      +                  "isReadOnly": {
      +                    "anyOf": [
      +                      {
      +                        "default": false,
      +                        "type": "boolean"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Decides whether this form field is read only or not."
      +                  },
      +                  "name": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Optional name of the existing form field."
      +                  },
      +                  "value": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Optional value of the existing form field."
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Optional. An array of existing form fields to be updated in the document for a role. When needed this information can be fetch from the get template tool to find the fillable form field for each signers."
      +        },
      +        "phoneNumber": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "countryCode": {
      +                  "description": "Country code.",
      +                  "type": "string"
      +                },
      +                "number": {
      +                  "description": "Phone number.",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "countryCode",
      +                "number"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The phone number of the signer, including the country code. Required for SMS authentication."
      +        },
      +        "privateMessage": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Displays a private message to the specified signer when they proceed to sign the document. You can include the instructions that the signer should know before signing the document."
      +        },
      +        "roleIndex": {
      +          "description": "The index of the role, indicating the position of the signer in the signing process. Must be between 1 and 50.",
      +          "maximum": 50,
      +          "minimum": 1,
      +          "type": "number"
      +        },
      +        "signerDetails": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "signerEmail": {
      +                  "description": "The email address of the signer assigned to this role. This is where the signing invitation will be sent.",
      +                  "type": "string"
      +                },
      +                "signerName": {
      +                  "description": "The name of the signer assigned to this role.",
      +                  "type": "string"
      +                },
      +                "signerOrder": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "The sequential order in which the signers in this role need to sign the document. Only relevant when 'enableSigningOrder' is true."
      +                }
      +              },
      +              "required": [
      +                "signerName",
      +                "signerEmail"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Optional. The signer information for a template role."
      +        },
      +        "signerRole": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Optional. The user defined role of the signer, which was specified while creating the template."
      +        },
      +        "signerType": {
      +          "anyOf": [
      +            {
      +              "enum": [
      +                "Signer",
      +                "Reviewer"
      +              ],
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The type of signer (e.g., 'Signer', 'Reviewer')."
      +        }
      +      },
      +      "required": [
      +        "roleIndex",
      +        "authenticationType"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / scheduledSendTime / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/body/properties/roles/anyOf/0/anyOf/1/items/properties/signerDetails/anyOf/0/anyOf/1/properties/signerOrder/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / body / properties / title / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "not": {}
      -      },
      -      {
      -        "type": "string"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / body / required
      Added value: +[
      +  "expiryDays"
      +]
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It states the tool 'creates and sends a document for signing,' implying a write operation with side effects, but lacks details on permissions required, rate limits, idempotency, or what happens after sending (e.g., document status changes). This is inadequate for a mutation tool with complex parameters.

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

Conciseness4/5

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

The description is concise and front-loaded, stating the core purpose in the first sentence. Both sentences earn their place by clarifying the tool's function and key parameters. No redundant or verbose language is present.

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

Completeness2/5

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

Given the tool's complexity (2 parameters with nested objects, no annotations, no output schema), the description is insufficient. It doesn't explain the return value, error conditions, or behavioral nuances like authentication requirements or side effects. For a mutation tool with rich input schema, more context is needed to guide effective use.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema fully documents all parameters. The description adds minimal value beyond the schema, mentioning 'recipients, form field values, and various sending options' which loosely maps to parameters like 'roles' and 'body' but doesn't provide additional syntax or format details. Baseline 3 is appropriate given high schema coverage.

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

Purpose4/5

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

The description clearly states the tool's purpose: 'Initiates the process of sending a document based on a pre-defined template' with specific actions like specifying recipients, form field values, and sending options. It distinguishes from siblings like 'list_templates' or 'get_template_properties' by focusing on sending rather than retrieval, though it doesn't explicitly name alternatives.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives is provided. The description mentions using a template but doesn't clarify when to choose this over non-template sending methods (if they exist) or other document-related tools. Usage context is implied but not articulated.

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