Skip to main content
Glama

rename_function

Assign a stable name to a function address so later tools report that name instead of sub_x; persist labels to a .phantomscope.json sidecar or keep them for the session.

Instructions

Name a function; every later tool reports that name instead of sub_x.

Names persist to <file>.phantomscope.json next to a PE loaded from disk, and live for the session otherwise (a memory capture has no local file). The identifier must look like a symbol: decrypt_config, ?f@@YAXH@Z.

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": "<name>"
    },
    "name": "rename_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaYes
keyYes
nameYes
sessionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/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 and does substantial work: it discloses the side effect of writing to `<file>.phantomscope.json` beside the PE, the session-only fallback for memory captures, and the global effect on all later tool output. The identifier-format constraint is also behavioral guidance. Missing: error/overwrite behavior and whether an existing name is replaced.

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?

The main effect is front-loaded in the first clause, followed by persistence semantics and then format constraints - a sensible ordering. The parenthetical about memory captures is slightly digressive but earns its place by preventing a wrong assumption about persistence.

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?

An output schema exists, so return values need no explanation, and the naming side effects are covered well. But for a mutation tool with zero annotation coverage and four undocumented parameters, leaving `key`, `va`, and `session` unexplained makes the definition incomplete for correct invocation.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It only explains the `name` parameter (symbol-shaped identifiers with two concrete examples like `decrypt_config` and `?f@@YAXH@Z`). The `key`, `va`, and `session` parameters are left entirely undefined by both schema and description, which is a real gap for a 4-parameter tool, limiting this to a 2.

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 and resource ("Name a function") plus the downstream effect: "every later tool reports that name instead of sub_x." That is concrete and distinguishable from read-only introspection siblings. It does not explicitly separate itself from the `annotations` sibling, which may also attach metadata to addresses, so it stops short of a 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?

Usage context is implied by the persistence explanation: it clarifies the disk-loaded-PE case versus the memory-capture case, which tells the agent what to expect. However, there is no explicit "use this when / use X instead" routing and no stated precondition (e.g. that the address must be a known function).

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