Skip to main content
Glama
daanno

Simplicate MCP Server

by daanno

create_contract

Generate new contracts in Simplicate by specifying organization details and contract dates to establish business agreements.

Instructions

Create a new contract

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateNo
organization_idYes
start_dateYes

Implementation Reference

  • Tool registration including name, description, and input schema for 'create_contract' in the ListTools handler.
    {
      name: 'create_contract',
      description: 'Create a new contract',
      inputSchema: {
        type: 'object',
        properties: {
          organization_id: { type: 'string' },
          start_date: { type: 'string' },
          end_date: { type: 'string' },
        },
        required: ['organization_id', 'start_date'],
      },
    },
  • MCP tool handler for 'create_contract' that delegates to SimplicateServiceExtended.createContract and formats response.
    case 'create_contract': {
      const data = await this.simplicateService.createContract(toolArgs);
      return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
    }
  • Core implementation of createContract method that performs HTTP POST to Simplicate API endpoint '/crm/contract'.
    async createContract(data: Partial<SimplicateContract>): Promise<SimplicateContract> {
      const response = await this.client.post('/crm/contract', data);
      return response.data;
    }
  • TypeScript interface defining the SimplicateContract data structure used by createContract.
    export interface SimplicateContract {
      id: string;
      contract_number: string;
      organization?: { id: string; name: string };
      start_date: string;
      end_date?: string;
      status: string;
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/daanno/simplicate-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server