Skip to main content
Glama

finish_target_function

Runs the target until the current function returns, enabling step-out debugging and caller inspection.

Instructions

Run until the current function returns.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "finish_target_function"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden, yet it says nothing about whether the call blocks until return, what happens if the frame is the outermost one, whether breakpoints inside the function still trigger, or what state the target is left in. It only restates the run-until-return condition.

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?

One short sentence with the stopping condition front-loaded and no wasted words. It is not verbose, but its brevity reflects under-specification rather than disciplined economy.

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 target-control action in a debugger toolset, the description omits prerequisites (target must be stopped), blocking behavior, and error cases such as being at the top frame. With no annotations and no output schema to lean on, the description is too thin 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?

The tool takes zero parameters and the schema is empty, so there is no parameter semantics to explain; the baseline of 4 applies. Nothing in the description misrepresents or omits a parameter.

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?

"Run until the current function returns" names a specific debugger action (step-out/finish) and a specific stopping condition, which an agent can distinguish from the step/next semantics of siblings. It never names those siblings or the concept of "finish" explicitly, so differentiation is inferred rather than stated.

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 prefer this over step_target, next_target, or resume_target, and no stated precondition such as the target being halted inside a function. The agent must infer all selection logic from the terse phrase.

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