delete_envelope
Remove draft digital signature envelopes from the DigiSign system before they are sent or completed.
Instructions
Delete a draft envelope. Cannot delete sent/completed envelopes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envelopeId | Yes | Envelope UUID |
Implementation Reference
- src/index.js:285-292 (handler)The MCP tool handler function for 'delete_envelope', which calls the underlying API implementation.
async ({ envelopeId }) => { try { const data = await api.deleteEnvelope(creds, envelopeId); return result(data); } catch (err) { return errorResult(err); } } - src/index.js:279-293 (registration)Registration of the 'delete_envelope' tool with its schema definition and handler.
server.tool( 'delete_envelope', 'Delete a draft envelope. Cannot delete sent/completed envelopes.', { envelopeId: z.string().describe('Envelope UUID'), }, async ({ envelopeId }) => { try { const data = await api.deleteEnvelope(creds, envelopeId); return result(data); } catch (err) { return errorResult(err); } } ); - src/api.js:96-98 (helper)The actual API implementation for deleting an envelope, executing the HTTP DELETE request.
export function deleteEnvelope(creds, envelopeId) { return apiCall('DELETE', `/api/envelopes/${envelopeId}`, creds); }