Skip to main content
Glama

function.signature.get

Retrieve the full signature of a function from a Ghidra session to identify its parameters and return type during reverse engineering.

Instructions

Return the full signature of a function.

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": {
      "session_id": "<session_id>",
      "function_start": "<function_start>"
    },
    "name": "function.signature.get"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes
function_startYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/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 of behavioral disclosure. 'Return' implies a read, but the description says nothing about what happens if the function_start does not resolve to a function, whether a session must be open, or what the returned signature structure contains. Without annotations, this is a significant gap.

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?

A single clean, front-loaded sentence with no filler or redundancy. Its brevity is appropriate in form even though the content is thin; nothing in it should be cut.

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?

The tool is structurally simple (a two-parameter getter with no nested objects and no output schema), so the description does not need to document return fields. Still, with no annotations and 0% schema coverage, at minimum the meaning of function_start and the failure mode should have been stated.

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 both parameters are undocumented in structured form. The description does not explain session_id or function_start, and notably ignores the oneOf integer/string union on function_start, which is the most confusing part of the schema (address vs. index vs. name). Low coverage required compensation that is entirely absent.

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: 'Return the full signature of a function.' An agent can tell this is the read counterpart to function.signature.set. However, 'signature' is ambiguous in a binary-analysis context (function prototype vs. byte-pattern signature) and the description does nothing to disambiguate, which is why it falls short of 5.

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?

The get/set pairing with sibling function.signature.set implies the usage of retrieving signature data, so the intended usage is inferable from the verb. But there is no explicit when-to-use, no mention of alternatives such as function.report or decomp.high_function.summary that may also surface signature-like information, and no stated prerequisites.

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

Deploy Server

Other Tools