Skip to main content
Glama
dmang-dev

mcp-dolphin

dolphin_get_info

Reports the bridge version and Dolphin label for diagnostic purposes. Returns multi-line text.

Instructions

PURPOSE: Report what the bridge knows about its environment (bridge version, Dolphin label). v0.1.0 doesn't query game metadata — Felk's API doesn't expose disc ID / title directly, those have to be read from OS_GLOBALS at 0x80000020 yourself via dolphin_read_range. USAGE: Diagnostic. For game state, use dolphin_read_range(0x80000000, 32) and decode: bytes 0-3 are the disc ID (4-char ASCII), 4-5 are maker code, 6 is disc number, 7 is disc version. BEHAVIOR: No side effects. Same underlying call as dolphin_ping but presents fields explicitly. RETURNS: Multi-line text — Bridge version, Dolphin label.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool schema definition for 'dolphin_get_info' — declares the tool name, description (documenting it uses bridge.ping under the hood), and an empty input schema (no required parameters).
    {
      name: "dolphin_get_info",
      description:
        "PURPOSE: Report what the bridge knows about its environment (bridge version, Dolphin label). v0.1.0 doesn't query game metadata — Felk's API doesn't expose disc ID / title directly, those have to be read from OS_GLOBALS at 0x80000020 yourself via dolphin_read_range. " +
        "USAGE: Diagnostic. For game state, use dolphin_read_range(0x80000000, 32) and decode: bytes 0-3 are the disc ID (4-char ASCII), 4-5 are maker code, 6 is disc number, 7 is disc version. " +
        "BEHAVIOR: No side effects. Same underlying call as dolphin_ping but presents fields explicitly. " +
        "RETURNS: Multi-line text — Bridge version, Dolphin label.",
      inputSchema: { type: "object", properties: {} },
    },
  • Handler for 'dolphin_get_info' — calls bridge.ping via the DolphinClient and returns a formatted string with the bridge version and Dolphin label.
    case "dolphin_get_info": {
      const r = await dol.call<{ bridge_version: string; dolphin: string }>("bridge.ping");
      return ok(
        `Bridge version: ${r.bridge_version}\n` +
        `Dolphin label:  ${r.dolphin}`,
      );
    }
  • src/tools.ts:488-490 (registration)
    Registration of tools — the 'registerTools' function sets up the ListToolsRequestSchema handler that exposes the TOOLS array (which includes dolphin_get_info) to the MCP server.
    export function registerTools(server: Server, dol: DolphinClient): void {
      server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS }));
  • The DolphinClient.call() method — generic RPC call used by the dolphin_get_info handler (calls bridge.ping). Sends a JSON request over TCP and awaits the ticketed response.
    async call<T = unknown>(method: string, params: unknown[] = []): Promise<T> {
      await this.ensureConnected();
      return new Promise<T>((resolve, reject) => {
        const id = this.nextId++;
        const pending: PendingCmd = {
          id,
          resolve: (r) => resolve(r as T),
          reject,
        };
    
        const timer = setTimeout(() => {
          this.inflight.delete(id);
          reject(new Error(
            `Dolphin bridge call "${method}" timed out (${this.timeoutMs}ms) — ` +
            `is the mcp_bridge.py script still loaded in Dolphin's Scripting panel?`,
          ));
        }, this.timeoutMs);
        const origResolve = pending.resolve, origReject = pending.reject;
        pending.resolve = (r) => { clearTimeout(timer); origResolve(r); };
        pending.reject  = (e) => { clearTimeout(timer); origReject(e); };
    
        this.inflight.set(id, pending);
        const msg = JSON.stringify({ id, method, params });
        if (process.env.MCP_DOLPHIN_DEBUG) {
          process.stderr.write(`[trace] TX: ${msg}\n`);
        }
        this.sock!.write(msg + "\n");
      });
    }
Behavior5/5

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

Discloses no side effects and notes it uses the same underlying call as dolphin_ping, which is valuable behavior insight beyond what annotations (absent) provide.

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

Conciseness5/5

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

Well-structured with clear section headings (PURPOSE, USAGE, BEHAVIOR, RETURNS), concise yet comprehensive, every sentence earns its place.

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

Completeness5/5

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

Given zero parameters, no output schema, and no annotations, the description covers purpose, usage, behavior, and return format completely, leaving no gaps.

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

Parameters5/5

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

With zero parameters, schema coverage is 100%. The description adds value by explaining the return content (multi-line text) and its diagnostic nature, fully compensating for the lack of parameters.

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

Purpose5/5

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

The description clearly states the tool reports what the bridge knows about its environment (bridge version, Dolphin label), and distinguishes from siblings by specifying that v0.1.0 does not query game metadata, directing users to dolphin_read_range for game state.

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

Usage Guidelines5/5

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

Explicitly states it is for diagnostic use, and provides an alternative (dolphin_read_range with specific parameters and decoding instructions) for game state queries.

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/dmang-dev/mcp-dolphin'

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