Skip to main content
Glama

function.flags.set

Updates flags on a Ghidra function—such as varargs, inline, noreturn, or custom storage—so reverse-engineering analysis reflects the function's intended behavior.

Instructions

Update function flags such as varargs, inline, noreturn, or custom storage.

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.flags.set"
  }
}

Input Schema

NameRequiredDescriptionDefault
inlineNo
varargsNo
noreturnNo
session_idYes
custom_storageNo
function_startYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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 it discloses almost nothing: it does not say whether omitted flags are left unchanged, whether setting a flag is reversible, what happens with an invalid function_start, or whether the update is applied immediately to the database. Only the field list hints at the mutation semantics.

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 short sentence with the resource and the flag list front-loaded and no filler. It is efficient, though its brevity edges toward under-specification rather than genuine conciseness.

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 six-parameter mutation tool with no annotations, no output schema, and zero schema description coverage, the definition is far too thin. An agent cannot determine how to identify the target function, what the required session_id represents, or what response to expect.

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 six parameters, and the description only names four of the boolean flags, adding no meaning about accepted values or effect. The two required parameters, session_id and function_start, are never mentioned, and the oneOf integer/string form of function_start (address vs. name) is left completely unexplained.

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 clear verb+resource pair ("Update function flags") and enumerates the concrete flags affected (varargs, inline, noreturn, custom storage), which lets an agent distinguish it from siblings like function.calling_convention.set or function.return_type.set. It stops short of an explicit statement that this is a per-function mutation keyed by an address/name, but the purpose is unmistakable.

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 guidance on when to use this tool versus the many adjacent setters (calling convention, return type, signature, thunk), nor any note on prerequisites such as needing a valid function_start or an active session. The reader must infer the usage context entirely.

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