Skip to main content
Glama

function.report

Generates a structured report for a target function, including signature, variables, call graph edges, cross-references, and decompiled output to support reverse-engineering analysis.

Instructions

Return a richer function report with signature, variables, call graph edges, xrefs, and decompilation output.

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.report"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes
function_startYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/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. It does disclose the report's content categories, which is genuine information beyond the schema, but it says nothing about cost/latency (this is clearly a heavy aggregation involving decompilation), permissions, or whether results are truncated for large functions.

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 no filler; the enumerated content list is dense but each item conveys real information. Slightly list-heavy, but nothing is redundant.

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?

With no output schema and no annotations, the description is the only source of truth about the return value, and its field list is only a partial picture of the report's shape and size. The undocumented 'function_start' input format is the most consequential gap for correct invocation.

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% for both required parameters, so the description must compensate and largely does not. 'session_id' is self-explanatory by convention, but 'function_start' accepts either an integer or a string (address vs. name?) and the description gives no hint which forms are valid or how to obtain the value.

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?

Specific verb ('Return') plus a clearly named resource ('function report'), and it enumerates what the report contains (signature, variables, call graph edges, xrefs, decompilation). The word 'richer' signals it aggregates what narrower siblings like function.variables or function.callers return individually, though no sibling is named explicitly.

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 explicit when-to-use or when-not-to-use guidance, and no alternative tool is named. The comparative 'richer' faintly implies this is a bundled alternative to the narrow single-purpose tools, but the agent must infer that entirely on its own.

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