Skip to main content
Glama

get_service

Retrieve detailed service information by ID from the Simplicate business platform, enabling access to specific service records for project management and client operations.

Instructions

Get specific service by ID

Input Schema

NameRequiredDescriptionDefault
service_idYes

Input Schema (JSON Schema)

{ "properties": { "service_id": { "type": "string" } }, "required": [ "service_id" ], "type": "object" }

Implementation Reference

  • MCP CallToolRequest handler case for 'get_service': validates service_id parameter and delegates to simplicateService.getServiceById, returning JSON stringified response.
    case 'get_service': { if (!toolArgs.service_id) throw new Error('service_id is required'); const data = await this.simplicateService.getServiceById(toolArgs.service_id); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
  • Tool registration in ListToolsRequest handler: defines name, description, and input schema for 'get_service'.
    { name: 'get_service', description: 'Get specific service by ID', inputSchema: { type: 'object', properties: { service_id: { type: 'string' } }, required: ['service_id'], }, },
  • TypeScript interface defining the shape of SimplicateService returned by getServiceById.
    export interface SimplicateService { id: string; name: string; price: number; cost_price?: number; invoice_method?: string; }
  • Core helper method getServiceById: performs HTTP GET to Simplicate API endpoint `/services/service/{serviceId}` and returns the service data.
    async getServiceById(serviceId: string): Promise<SimplicateService> { const response = await this.client.get(`/services/service/${serviceId}`); 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