get_services
Retrieve services catalog from Simplicate business data to access service offerings and project-related services for business operations.
Instructions
Retrieve services catalog
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No |
Input Schema (JSON Schema)
{
"properties": {
"limit": {
"type": "number"
},
"offset": {
"type": "number"
}
},
"type": "object"
}
Implementation Reference
- src/mcp/server-full.ts:220-230 (registration)Registration of the 'get_services' tool including name, description, and input schema in the tools array passed to server.setTools(){ name: 'get_services', description: 'Retrieve services catalog', inputSchema: { type: 'object', properties: { limit: { type: 'number' }, offset: { type: 'number' }, }, }, },
- src/mcp/server-full.ts:223-229 (schema)Input schema for the get_services tool: optional limit and offset parametersinputSchema: { type: 'object', properties: { limit: { type: 'number' }, offset: { type: 'number' }, }, },
- src/mcp/server-full.ts:478-483 (handler)Handler for get_services tool call: extracts params, calls simplicateService.getServices(), returns JSON stringified responsecase 'get_services': { const data = await this.simplicateService.getServices({ limit: (toolArgs.limit as number) || 10, offset: (toolArgs.offset as number) || 0, }); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
- Core implementation of getServices: HTTP GET to Simplicate API /services/service endpoint with optional pagination paramsasync getServices(params?: { limit?: number; offset?: number }): Promise<SimplicateService[]> { const response = await this.client.get('/services/service', params); return response.data || []; }