Skip to main content
Glama

localnest_health

Check runtime health status for fast smoke testing of the local-first MCP server, returning a compact summary in JSON or Markdown format.

Instructions

Return a compact runtime health summary for fast smoke checks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
response_formatNojson

Implementation Reference

  • The handler for the 'localnest_health' tool, which aggregates server status and background health reports.
    async () => {
      const status = await buildServerStatus();
      return {
        name: status.name,
        version: status.version,
        mode: status.mode,
        health: status.health,
        roots_count: Array.isArray(status.roots) ? status.roots.length : 0,
        update_recommendation: status.updates?.recommendation || 'up_to_date',
        background_health: getLastHealthReport?.() ?? null
      };
    }
  • Registration of the 'localnest_health' tool within the registerCoreTools function.
    registerJsonTool(
      'localnest_health',
      {
        title: 'Health',
        description: 'Return a compact runtime health summary for fast smoke checks.',
        inputSchema: {},
        annotations: {
          readOnlyHint: true,
          destructiveHint: false,
          idempotentHint: true,
          openWorldHint: false
        }
      },
      async () => {
        const status = await buildServerStatus();
        return {
          name: status.name,
          version: status.version,
          mode: status.mode,
          health: status.health,
          roots_count: Array.isArray(status.roots) ? status.roots.length : 0,
          update_recommendation: status.updates?.recommendation || 'up_to_date',
          background_health: getLastHealthReport?.() ?? null
        };
      }
    );

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/wmt-mobile/localnest'

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