Skip to main content
Glama

boj_health

Check the operational status of the BoJ-server to verify its availability and functionality.

Instructions

Check BoJ server health status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The fetchHealth function that retrieves the status of the BoJ server.
    async function fetchHealth() {
      try {
        const res = await fetch(`${BOJ_BASE}/health`);
        return await res.json();
      } catch {
        return { status: "offline", message: "BoJ REST API not reachable. Start the server with: systemctl --user start boj-server" };
      }
    }
  • Registration of the boj_health tool.
    tools.push({
      name: "boj_health",
      description: "Check BoJ server health status",
      inputSchema: { type: "object", properties: {} },
    });
  • The switch case handler in the main tool execution logic for boj_health.
    case "boj_health": {
      const health = await fetchHealth();
      sendResult(id, {
        content: [
          { type: "text", text: JSON.stringify(health, null, 2) },
        ],
      });
      break;
    }

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/hyperpolymath/boj-server'

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