Skip to main content
Glama

ida_function

Retrieves full details for one IDA Pro function by address or name, including bounds, prototype, basic-block count, and up to 40 callers and callees.

Instructions

Everything about one function: bounds, prototype, basic-block count, and up to 40 callers and callees.

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": {
      "target": "<target>"
    },
    "name": "ida_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesAddress or name: '0x401000', 'sub_401000', a defined name, 'libUE4.so+0x1234', or a unique part of a function name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden. It does disclose genuine behavioral traits — the return contents and the 'up to 40' truncation cap on callers/callees — which is valuable. It is silent on read-only nature, behavior when the target does not resolve, and whether an IDA database must already be open.

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?

One sentence, front-loaded with the payoff ('Everything about one function') followed immediately by a concrete field list. No filler; slightly overstated by 'Everything' given truncation at 40 callers/callees, but that caveat is stated inline.

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 one-parameter read tool with no output schema, the description enumerates the returned data well enough that an agent knows what it gets and knows the caller/callee lists are capped. Missing only error/empty-result behavior and any note on database state.

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 100% and the single 'target' parameter already documents accepted address/name forms in detail, so the description needs to add nothing. It adds no extra semantics beyond the schema, which is the correct baseline of 3.

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 resource ('one function') and enumerates exactly what is returned: bounds, prototype, basic-block count, callers/callees. This implicitly distinguishes it from the sibling decompile/disasm tools by making clear it is a metadata summary, not code retrieval, though it never names those siblings.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the summary lookup for a single function, but there is no explicit when-to-use, no statement of when another tool (e.g. call_graph, decompile) is preferable, and no prerequisites or failure handling mentioned.

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