Skip to main content
Glama

gb_get_bank_info

Reads Game Boy cartridge header data to report MBC type, total ROM bank count, and current ROM bank, and returns an error if no ROM is loaded.

Instructions

Return MBC type, total bank count, and current ROM bank.

    Reads cartridge type (0x0147) and ROM size (0x0148) from the header,
    delegates to domain/bank_info for interpretation.
    Returns error if no ROM loaded.
    

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gb_get_bank_info"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the header addresses read, the derivation step, and the error condition when no ROM is loaded. However it never explicitly states the operation is read-only and non-mutating, and the implementation note about delegating to domain/bank_info adds internal detail rather than agent-relevant behavior.

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

Conciseness3/5

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

Returns are front-loaded in the first sentence, which is good, but the middle sentence about delegating to domain/bank_info is an implementation detail that does not help an agent select or invoke the tool. The irregular indentation of the description text also slightly hurts scanability.

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

Completeness4/5

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

With no output schema and no annotations, the description must name the return values, and it does (MBC type, bank count, current ROM bank) while also covering the failure mode. Given the trivial zero-parameter surface, this is nearly complete; only the read-only nature and output shape of the error remain unstated.

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

Parameters4/5

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

The tool takes zero parameters, so the baseline is 4 and there is nothing for the description to disambiguate. The description correctly adds no parameter claims that would conflict with the empty schema.

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

Purpose4/5

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

Uses a specific verb ('Return') plus the exact resources returned: MBC type, total bank count, and current ROM bank. This is concrete and distinguishable, but it never mentions the sibling get_rom_header, which reads the same header bytes (0x0147/0x0148), so the boundary between the two is left for the agent to infer.

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?

There is no when-to-use guidance and no comparison with alternative tools. The only conditional statement is 'Returns error if no ROM loaded,' which is a precondition, not routing guidance for choosing this over get_rom_header or get_memory_map.

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