Skip to main content
Glama

function_fingerprint

Retrieve a function's recorded fingerprint—names, length, strings, constants, and call counts—to understand version-match results or choose search strings.

Instructions

What the function index recorded for one function of one version: its names (Ghidra's, its export ordinals, names from the D2MOO and Redivivus source clones), length, the strings it uses, its distinctive constants, and how many functions and imports it calls. Useful to see why a function_across_versions match was made, or to pick a string to search for with decomp_search when it wasn't. function, version and binary as for function_across_versions. Strings shown as label: are only known from Ghidra's 32-character labels. Up to 6 strings and 8 constants.

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": {
      "function": "<function>",
      "version": "<version>"
    },
    "name": "function_fingerprint"
  }
}

Input Schema

NameRequiredDescriptionDefault
binaryNo
versionYes
functionYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the whole burden, and it does substantial work: it discloses result truncation ('Up to 6 strings and 8 constants') and a data-provenance caveat about 'label:' strings coming from Ghidra's 32-character labels. It never explicitly says the operation is read-only or what happens when the function is not found, which keeps it from a 5.

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 description front-loads the returned content before the usage and parameter notes, and every sentence adds information (limits, caveats, alternatives) rather than restating the name. The 'Strings shown as label:' clause is tersely worded and slightly cryptic, but it is not padding.

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?

An output schema exists, yet the description still usefully previews the return content and its truncation limits; combined with named alternatives and the sibling parameter reference, an agent has enough to call it correctly. The remaining gap is parameter typing/format and not-found behavior, which is minor for a read-only inspection call.

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 0%, with only bare titles (Binary, Version, Function), so the description must compensate. It does so only by cross-reference: 'function, version and binary as for function_across_versions,' which conveys shared semantics but gives no identifier format or examples for an agent that has not seen the sibling.

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 enumerates exactly what the tool returns for one function of one version: names from multiple sources (Ghidra labels, export ordinals, D2MOO and Redivivus clones), length, strings used, distinctive constants, and call/import counts. It implicitly differentiates itself from function_across_versions and decomp_search, though it never uses an explicit verb like 'Get' or 'Return' to anchor the operation.

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

Usage Guidelines4/5

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

'Useful to see why a function_across_versions match was made, or to pick a string to search for with decomp_search when it wasn't' gives two concrete scenarios and names the alternative tool with the condition that selects it. It does not state when not to use the tool or any prerequisite (e.g., that the function must already be indexed).

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