Skip to main content
Glama

Get Next Pending Step

task_next_step
Read-only

Retrieve the next pending or awaiting-approval step from a task plan along with its current status, so AI agents can continue multi-step browser automation and pause for human approval.

Instructions

Retrieve the next pending or awaiting-approval step from the task plan along with task status.

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": {
      "task_id": "<task_id>"
    },
    "name": "task_next_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYesTask ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already establish the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the bar is lower. The description does add that the result includes both the step and task status, which is useful. It omits the meaningful edge case for a polling-style tool — what is returned when no pending or awaiting-approval step exists.

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 sentence with no wasted words, and the key qualifier ("next pending or awaiting-approval") is front-loaded where it matters most. It is tightly sized for the amount of information conveyed.

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?

There is no output schema, so the description carries the burden of describing the return, and it does so only partially by naming two components (step, task status) without structure or empty-result behavior. For a simple single-parameter read it is close to adequate, but the terminal/empty case is a real gap for a "next step" tool.

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?

With one parameter at 100% schema description coverage, the schema already documents task_id and the description adds no constraints, format, or sourcing detail beyond it. The baseline of 3 for high-coverage schemas applies.

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 uses a specific verb and resource ("Retrieve the next pending or awaiting-approval step from the task plan") and scopes the result with "along with task status." An agent can tell this is a read of the plan's next actionable item. It does not, however, distinguish itself from siblings such as task_status or task_checkpoint, which a 5 would require.

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 is only implied: the phrase "next pending or awaiting-approval step" signals a plan-execution loop, so an agent can infer this is the call to make between task steps. There is no explicit when-not guidance, no mention of what to do when nothing is pending, and no pointer to related tools like task_approve_action for approval handling.

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