Skip to main content
Glama

Build GB Studio project to ROM

build_rom

Compile a GB Studio project into a ROM, Pocket, or web target. Returns build status, exit code, and output path. Call after structural edits to verify the build.

Instructions

Invoke upstream gb-studio-cli (make:rom) to compile the project. Captures stdout+stderr to the configured compile log (read via read_compile_log). Returns { success, exitCode, romPath?, elapsedMs, stderrTail }. ALWAYS call this after structural edits before declaring work done. Requires GBS_CLI_PATH env var OR an installed GB Studio app in a standard location.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNoBuild target. 'rom' → .gb/.gbc; 'pocket' → Analogue Pocket; 'web' → web bundle.rom
outputNameNoFilename stem for the output (default: basename of the .gbsproj). Extension is chosen by target.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses invocation of an external CLI, capture of stdout/stderr to a compile log, the return object shape, and a required environment variable. It could mention potential overwriting of output files, but overall it's transparent.

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 five sentences, each adding value: action, log capture, return format, usage emphasis, and requirements. It is front-loaded with the verb and resource, and no filler is present.

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?

Given no output schema, the description describes the return object and links to read_compile_log via naming convention. It mentions environment requirements. For a build tool, it covers the main behavioral and usage aspects, though failure modes could be elaborated.

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 coverage is 100% and both parameters have descriptions. The tool description does not add extra meaning beyond the schema; it only mentions compilation in general. Baseline 3 is appropriate since the schema already documents the 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 invokes an upstream CLI to compile a GB Studio project to ROM. It immediately distinguishes itself from sibling editing/reading tools by being the build step, and the mention of 'ALWAYS call this after structural edits' reinforces its unique role.

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

Usage Guidelines4/5

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

The description gives explicit when-to-use guidance ('ALWAYS call this after structural edits before declaring work done') and prerequisite (env var). It doesn't explicitly state when not to use or list alternatives, but the context among siblings makes it clear, so a 4 is appropriate.

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/gbs-toolkit/mcp-server'

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