Skip to main content
Glama

kb_get_function_info

Look up a function by name or address to get its definition, local variables, cross-references, and comments for analyzing Game Boy ROM code.

Instructions

Retrieve all information about a function by name or address.

Accepts a function name (string match) or address (integer or hex string like "0x0150"). Returns function definition, local variables, cross-references, and comments.

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": {
      "name_or_address": "<name_or_address>"
    },
    "name": "kb_get_function_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
name_or_addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 behavioral burden. It discloses that this is a retrieval operation and lists the returned content (definition, local variables, cross-references, comments), but it does not state behavior when the function is not found, how name matching works, or whether lookup is exact or ambiguous.

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?

The description is short and front-loaded: purpose first, then accepted input forms, then return contents. Every sentence contributes useful information without padding.

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?

For a simple one-parameter getter with no annotations and no output schema, the description covers purpose, accepted input forms, and returned fields. It is largely complete, with only minor gaps around not-found or ambiguous-match behavior.

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 single parameter has 0% schema description coverage, so the description must compensate. It does so by explaining that the argument can be a function name with string matching or an address in hexadecimal format such as "0x0150", adding meaningful semantics beyond the bare string schema, though "integer" conflicts slightly with the schema type.

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?

The description uses a specific verb and resource: retrieve information about a function by name or address. It clearly distinguishes the lookup purpose from sibling mutation tools like kb_define_function, though it does not explicitly name alternatives or contrast with kb_search or gb_disassemble_function.

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 explicit guidance on when to use this tool versus siblings such as kb_define_function, kb_search, or gb_disassemble_function. The description implies a lookup use case but provides no exclusions, prerequisites, or decision rules.

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