add_template_collaborator
Enable collaborative editing of contract templates by generating HTTPS links and sending invitation emails to collaborators using the MCP Server for eSignatures tool.
Instructions
Creates a HTTPS link for editing a contract template; sends an invitation email if an email is provided..
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Collaborator's email; triggers an invitation email when provided | ||
| name | No | Collaborator's name | |
| template_id | Yes |
Implementation Reference
- Handler logic for the 'add_template_collaborator' tool: sends a POST request to the eSignatures API to add a collaborator to a template.if name == "add_template_collaborator": response = await httpxClient.post(f"/api/templates/{arguments.get('template_id')}/collaborators?token={secret_token}", json=arguments) return [types.TextContent(type="text", text=f"Response code: {response.status_code}, response: {response.json()}")]
- src/mcp_server_esignatures/server.py:81-85 (registration)Registration of the 'add_template_collaborator' tool in the list_tools handler, including name, description, and input schema reference.types.Tool( name="add_template_collaborator", description="Creates a HTTPS link for editing a contract template; sends an invitation email if an email is provided..", inputSchema=INPUT_SCHEMA_ADD_TEMPLATE_COLLABORATOR ),
- Pydantic/input schema definition for the 'add_template_collaborator' tool inputs.INPUT_SCHEMA_ADD_TEMPLATE_COLLABORATOR = { "type": "object", "properties": { "template_id": {"type": "string"}, "name": {"type": "string", "description": "Collaborator's name"}, "email": {"type": "string", "description": "Collaborator's email; triggers an invitation email when provided"} }, "required": ["template_id"] }