Skip to main content
Glama

kb_annotate

Annotate Game Boy ROM addresses with labels, types, and comments to document code and data; existing annotations for the same address and bank are updated.

Instructions

Annotate a ROM address with a label, type, and/or comment.

    UPSERT: updates the existing annotation if address+bank already exists.
    Type must be one of: code, data, gfx, audio, text.
    

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "address": "<address>"
    },
    "name": "kb_annotate"
  }
}

Input Schema

NameRequiredDescriptionDefault
bankNo
typeNo
labelNo
addressYes
commentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it delivers only partially. The UPSERT disclosure is genuinely useful (this is an idempotent write keyed on address+bank), but it never says whether omitted fields are preserved or cleared on the overwrite path, nor whether the operation is reversible or what it returns.

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?

Three short lines, front-loaded with the core action and followed by the two highest-value caveats. The enum is inlined rather than bulleted, but nothing is wasted.

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

Completeness3/5

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

For a five-parameter mutation tool with no annotations and no output schema, the description covers the essentials of what it writes and its upsert key but omits field-preservation semantics on update, address/bank conventions, and any return information. Adequate to attempt a call, insufficient to predict its effect precisely.

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 0%, so the description is the only source of parameter meaning. It supplies a real enum for `type` (code, data, gfx, audio, text) that the schema lacks, which is valuable, but leaves `bank` semantics (range, null meaning) and `address` format (native vs. PC offset) unexplained.

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?

States a specific verb and resource ('Annotate a ROM address') and enumerates the attachable fields (label, type, comment). It does not, however, distinguish itself from nearby symbol-definition siblings such as kb_define_variable or kb_import_symbols, so an agent must infer which one applies.

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 or when-not-to-use guidance and no named alternative among the many kb_define_* siblings. The only contextual cue is the 'address+bank already exists' condition, which describes mechanics rather than selection guidance.

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