Skip to main content
Glama

query_template

Retrieve template details including ID, title, labels, creation date, placeholder fields, signer fields, and document content for eSignature contract management.

Instructions

Responds with the template details, template_id, title, labels, created_at, list of the Placeholder fields in the template, list of Signer fields int he template, and the full content inside document_elements

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
template_idYesGUID of the template.

Implementation Reference

  • Handler logic for the 'query_template' tool: sends a GET request to the eSignatures API endpoint /api/templates/{template_id} and returns the response.
    if name == "query_template": response = await httpxClient.get(f"/api/templates/{arguments.get('template_id')}?token={secret_token}") return [types.TextContent(type="text", text=f"Response code: {response.status_code}, response: {response.json()}")]
  • Input schema for the 'query_template' tool, requiring 'template_id'.
    INPUT_SCHEMA_QUERY_TEMPLATE = { "type": "object", "properties": { "template_id": {"type": "string", "description": "GUID of the template."}, }, "required": ["template_id"], }
  • Registration of the 'query_template' tool in the list_tools() method, including name, description, and inputSchema.
    name="query_template", description="Responds with the template details, template_id, title, labels, created_at, list of the Placeholder fields in the template, list of Signer fields int he template, and the full content inside document_elements", inputSchema=INPUT_SCHEMA_QUERY_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