Skip to main content
Glama

basic_blocks

Retrieves control-flow basic blocks for the function containing a specified virtual address, aiding reverse engineering and disassembly analysis.

Instructions

Basic blocks of the function containing an address.

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": {
      "key": "<key>",
      "va": "<va>"
    },
    "name": "basic_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaYes
keyYes
sessionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/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 behavioral burden and largely drops it. It does not state that this is a read-only query, what happens with an unknown/out-of-range address, whether the address must belong to a currently loaded module/session, or how the 'key' scopes the operation. The only behavioral hint is that the lookup is by containing function rather than exact address.

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?

It is a single short phrase with zero padding, which is good, but it is under-specified rather than concise — the brevity costs required information rather than removing waste. Front-loading the resource name is fine.

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

Completeness2/5

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

An output schema exists, so return values need not be described, but the definition is still thin for a 3-parameter tool with 0% schema coverage and no annotations. Missing: what 'key' and 'session' mean, whether the call requires an active session, and any hint of the expected structure or cost of the result.

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

Parameters2/5

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

Schema description coverage is 0%, so all three parameters (va, key, session) are undocumented in the schema and only 'address' is indirectly explained by the description. The critical 'key' parameter and the default-empty 'session' parameter receive no meaning at all, leaving the agent to guess what they identify.

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 names a specific resource ('basic blocks') and the scoping input ('the function containing an address'), so an agent can tell this is a CFG-listing tool rather than a raw instruction lister. It stops short of differentiating itself from siblings like disassemble/decompile and reads as a noun fragment rather than a full statement of action.

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 at all: nothing tells the agent to prefer this over disassemble or decompile, no prerequisites are stated, and no condition under which this should not be called. The only implied usage is the address input.

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