list_templates
Retrieve available eSignature templates to streamline contract creation and management processes.
Instructions
Lists the templates.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Handler logic for the 'list_templates' tool within the handle_call_tool function. It performs a GET request to the /api/templates endpoint using the secret token and returns the HTTP response details.if name == "list_templates": response = await httpxClient.get(f"/api/templates?token={secret_token}") return [types.TextContent(type="text", text=f"Response code: {response.status_code}, response: {response.json()}")]
- Input schema definition for the 'list_templates' tool, which expects an empty object.INPUT_SCHEMA_LIST_TEMPLATES = { "type": "object", "properties": {} }
- src/mcp_server_esignatures/server.py:75-79 (registration)Registration of the 'list_templates' tool in the handle_list_tools function, including name, description, and input schema reference.types.Tool( name="list_templates", description="Lists the templates.", inputSchema=INPUT_SCHEMA_LIST_TEMPLATES ),