Skip to main content
Glama

AgentStack execute

agentstack.execute

Runs one or more backend actions in a single request across auth, data, payments, CRM, hosting, RAG, bots, scheduling, and automation, with batch controls for async jobs and error handling.

Instructions

AUTH-FIRST: auth.get_profile before mutate. IDE: Connect; no auth.login in chat. Unauth: auth_choices; skip work_next. Mutate: OAuth/PAT (mcp:execute). Anon: bootstrap_ack+create_project_anonymous. Spine: plan_get->work_next->plan_claim->plan_execute. WG: work_next->plan_claim->plan_execute; follow packet.next_action. Prompts: session_setup, execute_budget.

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": {
      "steps": "<steps>"
    },
    "name": "agentstack.execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesSteps; one heavy LLM per sync execute.
contextNosession.v1; project_id required.
optionsNobatch.v1 controls.

Output Schema

NameRequiredDescriptionDefault
okNoFalse on total failure.
job_idNoPoll id.
timingsNoBatch phase ms (hydrate_ms, preflight_ms, …).
agent_osNoFollow next_step.
recoveryNoNext action when blocked.
trace_idNoSupport trace.
error_codeNoStable failure code.
execution_modeNoasync when queued.
response_bytesNoApproximate serialized JSON size of the batch root.
partial_successNoSome steps failed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnly=false, openWorld=true, idempotent=false, destructive=false, so the safety profile is covered. The description adds genuinely new behavioral context beyond those hints: mutation requires OAuth/PAT, anonymous callers must bootstrap_ack+create_project_anonymous, and unauthorized callers should bail to auth_choices and skip work_next. This is above the bar the annotations set, though it omits what happens on partial batch failure outside the stopOnError flags.

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

Conciseness2/5

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

The text is a wall of colon-delimited fragments and undefined acronyms (AUTH-FIRST, WG, IDE, PAT, spine) with no sentences, and it is not front-loaded on what the tool does — the leading content is an auth precondition. Several items (prompts: session_setup, execute_budget) read as unfollowable references that consume space without conveying actionable instruction.

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?

For a complex batch-execution tool, the definition covers auth paths, workflow sequencing, and lane selection, and an output schema exists so return values need not be explained. However the core contract — that steps are catalog actions executed as one batch, with one heavy LLM per sync call — is only in the schema, and the acronym-heavy phrasing leaves an agent guessing about several referenced subsystems.

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 100%, so the parameters are already documented and the baseline is 3. The description does add one cross-parameter relationship — that a direct call sets options.execution_intent=direct and omits goal, and that per-step query text must match the goal string — which is meaningful meaning beyond the schema. Those additions are diluted by surrounding jargon, so it does not rise above baseline substantially.

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 description never plainly states that this tool runs a batch of catalog actions — that only surfaces in the schema text ('batch.v1 execute', '{action, params} is accepted and becomes one step'). Instead it opens with 'AUTH-FIRST: auth.get_profile before mutate' and a chain of acronyms (WG, IDE, PAT), so the agent must reconstruct the purpose from the schema. It is distinguishable from the single sibling agentstack.read only by inference, not by an explicit contrast.

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?

It does give real routing rules: use auth.get_profile before mutating, 'IDE: Connect; no auth.login in chat' for unauthenticated callers, and explicit spine sequences (plan_get->work_next->plan_claim->plan_execute, and the WG variant work_next->plan_claim->plan_execute with 'follow packet.next_action'). The guidance is directive but compressed into telegraphic shorthand, and the referenced alternatives are external tools rather than the listed sibling, so an agent must decode a lot to act on it.

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