Skip to main content
Glama

query_template

Retrieve detailed template information, including ID, title, labels, creation date, placeholder and signer fields, and document content for eSignature templates.

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 implementation for the 'query_template' tool. It performs a GET request to the eSignatures API endpoint /api/templates/{template_id} to retrieve the template details 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()}")]
  • Pydantic/JSON schema defining the input for the 'query_template' tool, which requires a 'template_id' string.
    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 handler, including name, description, and input schema reference.
    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 ),

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