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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contract_id": "<contract_id>"
},
"name": "get_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract_id | Yes |
Implementation Reference
- src/mcp/server-full.ts:537-541 (handler)MCP tool handler for 'get_contract': validates contract_id input and delegates to SimplicateServiceExtended.getContractById
case '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 schema
name: '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 tool
type: 'object', properties: { contract_id: { type: 'string' } }, required: ['contract_id'], }, - Helper method in SimplicateServiceExtended that performs the actual API call to retrieve contract by ID
async getContractById(contractId: string): Promise<SimplicateContract> { const response = await this.client.get(`/crm/contract/${contractId}`); return response.data; }