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
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes | GUID 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"], }
- src/mcp_server_esignatures/server.py:66-69 (registration)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 ),