Skip to main content
Glama

get_projects

Retrieve a list of all projects from the Simplicate business management system. Use this tool to access project data for tracking, reporting, and management purposes.

Instructions

Retrieve a list of all projects

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number to return (default: 10)
offsetNoNumber to skip for pagination

Input Schema (JSON Schema)

{ "properties": { "limit": { "description": "Maximum number to return (default: 10)", "type": "number" }, "offset": { "description": "Number to skip for pagination", "type": "number" } }, "type": "object" }

Implementation Reference

  • Registration of the 'get_projects' tool including input schema definition
    name: 'get_projects', description: 'Retrieve a list of all projects', inputSchema: { type: 'object', properties: { limit: { type: 'number', description: 'Maximum number to return (default: 10)' }, offset: { type: 'number', description: 'Number to skip for pagination' }, }, }, },
  • Handler logic for executing the 'get_projects' tool, delegates to SimplicateServiceExtended.getProjects and formats response as MCP content
    case 'get_projects': { const data = await this.simplicateService.getProjects({ limit: (toolArgs.limit as number) || 10, offset: (toolArgs.offset as number) || 0, }); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }
  • Core helper function that performs the API call to retrieve projects from Simplicate backend
    async getProjects(params?: { limit?: number; offset?: number }): Promise<SimplicateProject[]> { const response = await this.client.get('/projects/project', params); return response.data || []; }
  • TypeScript interface defining the structure of a SimplicateProject, used for type safety in getProjects response
    export interface SimplicateProject { id: string; name: string; project_number: string; organization?: { id: string; name: string }; project_manager?: { id: string; name: string }; start_date?: string; end_date?: string; budget?: number; status?: string; }
  • Alternative handler in basic server variant, identical logic delegating to SimplicateService.getProjects
    case 'get_projects': { const projects = await this.simplicateService.getProjects({ limit: (toolArgs.limit as number) || 10, offset: (toolArgs.offset as number) || 0, }); return { content: [ { type: 'text', text: JSON.stringify(projects, null, 2), }, ], }; }

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