Skip to main content
Glama

update_template

Modify contract templates by updating titles, labels, or content elements such as headers, text, images, and signer fields for streamlined eSignature workflows on MCP Server.

Instructions

Updates the title, labels or the content of a contract template.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_elementsNoThe content of the template like headers, text, and images for the document.
labelsNoList of labels to be assigned to the template.
titleNoThe new title of the template.

Implementation Reference

  • Handler implementation for the 'update_template' tool. It sends a POST request to the eSignatures API endpoint /api/templates/{template_id} with the provided arguments and returns the response.
    if name == "update_template": response = await httpxClient.post(f"/api/templates/{arguments.get('template_id')}?token={secret_token}", json=arguments) return [types.TextContent(type="text", text=f"Response code: {response.status_code}, response: {response.json()}")]
  • Input schema definition for the 'update_template' tool, defining properties for title, labels, and document_elements.
    INPUT_SCHEMA_UPDATE_TEMPLATE = { "type": "object", "properties": { "title": {"type": "string", "description": "The new title of the template."}, "labels": {"type": "array", "description": "List of labels to be assigned to the template.", "items": {"type": "string"}}, "document_elements": { "type": "array", "description": "The content of the template like headers, text, and images for the document.", "items": INPUT_SCHEMA_DOCUMENT_ELEMENTS_ITEMS } } }
  • Registration of the 'update_template' tool in the list_tools handler, specifying name, description, and input schema.
    name="update_template", description="Updates the title, labels or the content of a contract template.", inputSchema=INPUT_SCHEMA_UPDATE_TEMPLATE

Other Tools

Related Tools

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