Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
contract_idYes

Implementation Reference

  • 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) }] }; }
  • 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'], }, },
  • 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; }

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