Skip to main content
Glama

function.thunk.set

Mark a function as a thunk to another function to identify wrapper calls and clarify cross-references during reverse-engineering analysis.

Instructions

Mark a function as a thunk to another function.

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>",
      "thunk_target": "<thunk_target>"
    },
    "name": "function.thunk.set"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes
thunk_targetYes
function_startYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.3/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and falls short. It does not say whether the marking is persisted, reversible, what happens to an existing thunk relation, whether it triggers reanalysis, or whether the target function must exist in the session. Only the bare mutation intent is conveyed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with no filler, but the brevity is under-specification rather than economy — nothing is front-loaded beyond a restatement of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A mutation tool with three required parameters, zero schema description coverage, no annotations, and no output schema is described in one sentence that explains none of them. The agent has no basis to call it correctly without guessing at parameter roles and side effects.

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% for all three required parameters, so the description must compensate and does not. It implies two function operands but never maps them to function_start versus thunk_target, and session_id is entirely unaddressed. The oneOf integer-or-string forms for both function parameters are also left unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The sentence names a verb ("mark") and a resource ("a function") and adds the two-endpoint relation ("as a thunk to another function"), which goes slightly beyond the name. However, "thunk" is unexplained domain jargon and the description never says what marking actually changes — analysis metadata, the function's body, or its call graph. It is not clearly distinguishable in effect from siblings like function.calling_convention.set or function.flags.set.

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 versus alternatives, no prerequisites (e.g., both functions must already exist), and no statement about when not to use it. The agent must infer the use case entirely from the tool name.

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