Skip to main content
Glama

boj_cartridge_invoke

Execute commands on specific cartridges to perform operations like database management or version control through a unified server gateway.

Instructions

Invoke a BoJ cartridge operation. Send a command to a specific cartridge for execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesCartridge name (e.g. database-mcp, git-mcp)
paramsNoParameters to pass to the cartridge invocation

Implementation Reference

  • The `invokeCartridge` function acts as the handler for the tool, making an HTTP POST request to the BoJ server to invoke the specified cartridge.
    async function invokeCartridge(name, params) {
      if (!isValidCartridgeName(name)) {
        return { error: `Invalid cartridge name: ${name}` };
      }
      try {
        const res = await fetch(`${BOJ_BASE}/cartridge/${encodeURIComponent(name)}/invoke`, {
          method: "POST",
          headers: { "Content-Type": "application/json" },
          body: JSON.stringify(params || {}),
        });
        return await res.json();
      } catch {
        return { error: "BoJ REST API not reachable. Invocation requires a running server.", cartridge: name, hint: "Start with: systemctl --user start boj-server" };
      }
    }
  • Registration of the `boj_cartridge_invoke` tool in the MCP server setup.
    tools.push({
      name: "boj_cartridge_invoke",
      description:
        "Invoke a BoJ cartridge operation. Send a command to a specific cartridge for execution.",
      inputSchema: {
        type: "object",
        properties: {
          name: {
            type: "string",
            description: "Cartridge name (e.g. database-mcp, git-mcp)",
          },
          params: {
            type: "object",
            description: "Parameters to pass to the cartridge invocation",
          },
        },
        required: ["name"],
      },
    });
  • The switch case block in the request handler that routes requests for `boj_cartridge_invoke` to the `invokeCartridge` function.
    case "boj_cartridge_invoke": {
      const result = await invokeCartridge(args.name, args.params);
      sendResult(id, {
        content: [
          { type: "text", text: JSON.stringify(result, null, 2) },
        ],
      });
      break;
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden but provides minimal behavioral insight. It mentions 'invoke' and 'send a command,' implying a write/mutation operation, but does not disclose permissions, side effects, error handling, or response format. This is inadequate for a tool that likely performs actions with potential consequences.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is brief (two sentences) and front-loaded with the core action. It avoids redundancy, though it could be more informative without sacrificing conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations, no output schema, and a tool that likely performs operations (implied by 'invoke'), the description is incomplete. It lacks details on behavior, return values, error cases, or how it fits with siblings, leaving significant gaps for an agent to use it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so parameters 'name' and 'params' are documented in the schema. The description adds no extra meaning (e.g., examples of cartridge names or param structures), but the baseline is 3 since the schema handles parameter documentation adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool 'invoke[s] a BoJ cartridge operation' and 'send[s] a command to a specific cartridge for execution,' which clarifies the verb (invoke/send) and resource (cartridge). However, it lacks specificity about what 'invoke' entails (e.g., running a script, querying data) and does not differentiate from siblings like 'boj_cartridge_info' or 'boj_cartridges,' making it vague in context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description mentions sending a command to a cartridge but does not specify scenarios, prerequisites, or exclusions compared to sibling tools (e.g., 'boj_cartridge_info' for metadata). This leaves usage unclear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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