Skip to main content
Glama
esignaturescom

MCP Server for eSignatures

create_template

Create reusable contract templates with customizable content, placeholders, and signer fields to standardize document creation for eSignatures.

Instructions

Creates a reusable contract template for contracts to be based on.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesTitle for the new template; used for contracts based on this template.
labelsNoAssign labels for organizing templates and contracts; labels are inherited by contracts.
document_elementsYesCustomize template content with headers, text, images. Owners can manually replace {{placeholder fields}} in the eSignatures contract editor, and signers can fill in Signer fields when signing the document. Use placeholders for signer names if needed, instead of Signer fields. Contract title auto-inserts as the first line.

Implementation Reference

  • Handler for create_template tool: makes a POST request to /api/templates with the arguments and returns the response.
    if name == "create_template":
        response = await httpxClient.post(f"/api/templates?token={secret_token}", json=arguments)
        return [types.TextContent(type="text", text=f"Response code: {response.status_code}, response: {response.json()}")]
  • Pydantic/JSON schema defining the input parameters for the create_template tool.
    INPUT_SCHEMA_CREATE_TEMPLATE = {
        "type": "object",
        "properties": {
            "title": {"type": "string", "description": "Title for the new template; used for contracts based on this template."},
            "labels": {"type": "array", "description": "Assign labels for organizing templates and contracts; labels are inherited by contracts.", "items": {"type": "string"}},
            "document_elements": {
                "type": "array",
                "description": "Customize template content with headers, text, images. Owners can manually replace {{placeholder fields}} in the eSignatures contract editor, and signers can fill in Signer fields when signing the document. Use placeholders for signer names if needed, instead of Signer fields. Contract title auto-inserts as the first line.",
                "items": INPUT_SCHEMA_DOCUMENT_ELEMENTS_ITEMS
            }
        },
        "required": ["title", "document_elements"]
    }
  • Registration of the create_template tool in the list_tools handler, including name, description, and input schema reference.
    types.Tool(
        name="create_template",
        description="Creates a reusable contract template for contracts to be based on.",
        inputSchema=INPUT_SCHEMA_CREATE_TEMPLATE
    ),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/esignaturescom/mcp-server-esignatures'

If you have feedback or need assistance with the MCP directory API, please join our Discord server