Skip to main content
Glama

boj_cartridges

Display the cartridge matrix showing protocol-domain combinations served by cartridges in the BoJ-server MCP ecosystem.

Instructions

Show the BoJ cartridge matrix — protocol x domain grid showing which cartridges serve which protocol/domain combinations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool handler logic for 'boj_cartridges' in the main message switch.
    case "boj_cartridges": {
      const matrix = await fetchCartridges();
      sendResult(id, {
        content: [
          { type: "text", text: JSON.stringify(matrix, null, 2) },
        ],
      });
      break;
  • Helper function to fetch the cartridge matrix from the BoJ REST API.
    async function fetchCartridges() {
      try {
        const res = await fetch(`${BOJ_BASE}/cartridges`);
        return await res.json();
      } catch {
        return { note: "Offline mode — cartridge matrix available when BoJ REST API is running", cartridges: Object.keys(OFFLINE_MENU.tier_teranga.concat(OFFLINE_MENU.tier_shield).reduce((acc, c) => { acc[c.name] = c.domain; return acc; }, {})) };
      }
  • Registration of the 'boj_cartridges' tool in the tool listing function.
    tools.push({
      name: "boj_cartridges",
      description:
        "Show the BoJ cartridge matrix — protocol x domain grid showing which cartridges serve which protocol/domain combinations",
      inputSchema: { type: "object", properties: {} },
    });

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