Skip to main content
Glama
daanno

Simplicate MCP Server

by daanno

get_project_services

Retrieve services and items associated with a specific project to access detailed project information and manage project-related activities.

Instructions

Get services/items for a specific project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID

Implementation Reference

  • Main MCP tool handler for 'get_project_services'. Validates project_id input, delegates to SimplicateServiceExtended.getProjectServices(), formats JSON response.
    case 'get_project_services': {
      if (!toolArgs.project_id) throw new Error('project_id is required');
      const data = await this.simplicateService.getProjectServices(toolArgs.project_id);
      return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
    }
  • Tool registration in ListTools handler: defines name, description, and input schema for get_project_services.
    {
      name: 'get_project_services',
      description: 'Get services/items for a specific project',
      inputSchema: {
        type: 'object',
        properties: { project_id: { type: 'string', description: 'Project ID' } },
        required: ['project_id'],
      },
    },
  • TypeScript interface defining the structure of project services returned by the tool.
    export interface SimplicateProjectService {
      id: string;
      project_id: string;
      name: string;
      price: number;
      amount: number;
    }
  • Helper method that performs the actual API call to retrieve services for a given project from Simplicate backend.
    async getProjectServices(projectId: string): Promise<SimplicateProjectService[]> {
      const response = await this.client.get(`/projects/service`, { project_id: projectId });
      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