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