Skip to main content
Glama

function.create

Creates a new function at a specified address in a Ghidra session, letting AI agents define function boundaries during reverse-engineering analysis.

Instructions

Create a new function at a given 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": {
      "session_id": "<session_id>",
      "address": "<address>"
    },
    "name": "function.create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
addressYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.5/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full disclosure burden and delivers almost none of it. It does not say what happens if a function already exists at that address, whether the operation requires a live session, whether it is reversible, or what the call returns — all critical for a mutating create tool. Flagging as severe under-disclosure rather than a contradiction, since nothing stated conflicts with the schema.

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 front-loaded sentence with zero filler; nothing is wasted. The terseness is a consequence of missing content rather than padding, so it is efficient but not fully informative.

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?

For a mutating tool with three fully undocumented parameters, no annotations, and no output schema, the definition is well short of sufficient. An agent could not confidently call it without inspecting the schema and guessing at session semantics and failure behavior.

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% across three parameters, and the description only gestures at the address. It never explains what session_id identifies, whether name is optional or auto-generated when omitted, or why address accepts either an integer or a string (raw address vs. symbolic name). All of that meaning is left entirely undocumented.

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 gives a specific verb plus resource and a qualifying location: create a new function at a given address. An agent can tell it produces a new function entity rather than reading or modifying one. However, it does nothing to separate itself from the sibling external.function.create, so an agent has no basis for choosing between the two.

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, no mention of prerequisites, and no alternatives offered. With siblings such as external.function.create and function.at in the catalog, the absence of any routing hint leaves selection entirely to guesswork.

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