get_contract
Retrieve specific contract details by providing the contract ID to access business agreement information from the Simplicate system.
Instructions
Get specific contract by ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"contract_id": {
"type": "string"
}
},
"required": [
"contract_id"
],
"type": "object"
}
Implementation Reference
- src/mcp/server-full.ts:537-541 (handler)MCP tool handler for 'get_contract': validates contract_id input and delegates to SimplicateServiceExtended.getContractByIdcase 'get_contract': { if (!toolArgs.contract_id) throw new Error('contract_id is required'); const data = await this.simplicateService.getContractById(toolArgs.contract_id); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }
- src/mcp/server-full.ts:336-343 (registration)Tool registration in ListTools handler: defines name, description, and input schemaname: 'get_contract', description: 'Get specific contract by ID', inputSchema: { type: 'object', properties: { contract_id: { type: 'string' } }, required: ['contract_id'], }, },
- src/mcp/server-full.ts:339-342 (schema)Input schema definition for get_contract tooltype: 'object', properties: { contract_id: { type: 'string' } }, required: ['contract_id'], },
- Helper method in SimplicateServiceExtended that performs the actual API call to retrieve contract by IDasync getContractById(contractId: string): Promise<SimplicateContract> { const response = await this.client.get(`/crm/contract/${contractId}`); return response.data; }