Skip to main content
Glama

monica_health_check

Validate Monica CRM credentials to ensure proper functionality and connectivity, enabling uninterrupted interaction with Monica CRM instances for managing contacts, activities, and tasks.

Instructions

Verify that the configured Monica credentials work.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The inline handler function for the monica_health_check tool. It invokes the MonicaClient's healthCheck method and returns a success text message.
    async () => { await client.healthCheck(); return { content: [ { type: 'text' as const, text: 'Successfully connected to Monica CRM API.' } ] }; }
  • Schema definition for the monica_health_check tool, including title and description used by the MCP protocol.
    { title: 'Test Monica connectivity', description: 'Verify that the configured Monica credentials work.' },
  • Registration of the monica_health_check tool with the MCP server.
    server.registerTool( 'monica_health_check', { title: 'Test Monica connectivity', description: 'Verify that the configured Monica credentials work.' }, async () => { await client.healthCheck(); return { content: [ { type: 'text' as const, text: 'Successfully connected to Monica CRM API.' } ] }; } );
  • MonicaClient.healthCheck() helper method that verifies API connectivity by making a simple request to fetch 1 contact.
    async healthCheck(): Promise<void> { await this.request('contacts', { searchParams: { limit: 1 } }); }

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/Jacob-Stokes/monica-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server