Skip to main content
Glama

AgentStack read

agentstack.read
Read-onlyIdempotent

Read-only batch (effect read/evaluate). Same {steps, context, options} body as agentstack.execute. Wire alias: tools/call accepts agentstack_read. Server rejects mutate steps.

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

Input Schema

NameRequiredDescriptionDefault
stepsYesSame items as agentstack.execute.
contextNosession.v1.
optionsNoSame keys as agentstack.execute options.

Output Schema

NameRequiredDescriptionDefault
okNoFalse when the batch is partial or otherwise fails.
trace_idNoSupport trace.
error_codeNoStable failure code.
partial_successNoSome work completed, but the batch remains incomplete.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / steps / items / properties / dependsOn
      Added value: +{
      +  "description": "Prior step ids (DAG).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / steps / items / properties / depends_on
      Added value: +{
      +  "description": "Snake-case alias of dependsOn.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed2 schema fields changed
    • changedOutput schema / properties / ok / description
      Previous value: -"False on total failure."New value: +"False when the batch is partial or otherwise fails."
    • changedOutput schema / properties / partial_success / description
      Previous value: -"Some steps failed."New value: +"Some work completed, but the batch remains incomplete."
  3. Changed18 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +true
    • changedInput schema / description
      Previous value: -"batch.v1 execute. Direct call: options.execution_intent=direct and no goal. {action, params} is accepted and becomes one step. goal binds a playbook."New value: +"Same body as agentstack.execute. Writes rejected."
    • addedInput schema / properties / context / additionalProperties
      Added value: +true
    • changedInput schema / properties / context / description
      Previous value: -"session.v1; project_id required."New value: +"session.v1."
    • addedInput schema / properties / options / additionalProperties
      Added value: +true
    • changedInput schema / properties / options / description
      Previous value: -"batch.v1 controls."New value: +"Same keys as agentstack.execute options."
    • removedInput schema / properties / options / properties
      Removed value: -{
      -  "async": {
      -    "description": "Queue; poll discovery.job_status.",
      -    "type": "boolean"
      -  },
      -  "continueOnError": {
      -    "description": "Continue after failure.",
      -    "type": "boolean"
      -  },
      -  "envelope": {
      -    "description": "compact (default) | full — ADR MCP_EXECUTE_ENVELOPE_COMPACT_V2",
      -    "enum": [
      -      "compact",
      -      "full"
      -    ],
      -    "type": "string"
      -  },
      -  "execution_intent": {
      -    "description": "Batch lane: direct, workflow, or validate.",
      -    "enum": [
      -      "direct",
      -      "workflow",
      -      "validate"
      -    ],
      -    "type": "string"
      -  },
      -  "focus_node_id": {
      -    "description": "Work graph node id from agents.work_next packet.",
      -    "type": "string"
      -  },
      -  "goal": {
      -    "description": "Binds the batch to a playbook. A direct call uses execution_intent direct and omits goal. Per-step query must match this text.",
      -    "type": "string"
      -  },
      -  "idempotency_key": {
      -    "description": "Retry receipt key.",
      -    "type": "string"
      -  },
      -  "plan_execute_mode": {
      -    "description": "Bind plan_execute lane for graph mutations.",
      -    "type": "boolean"
      -  },
      -  "recipe_id": {
      -    "description": "MCP recipe id.",
      -    "type": "string"
      -  },
      -  "semantic_strict": {
      -    "description": "Reject batch_semantic_anchor_conflict when anchor set.",
      -    "type": "boolean"
      -  },
      -  "stopOnError": {
      -    "description": "Stop on first failure.",
      -    "type": "boolean"
      -  }
      -}
    • changedInput schema / properties / steps / description
      Previous value: -"Steps; one heavy LLM per sync execute."New value: +"Same items as agentstack.execute."
    • addedInput schema / properties / steps / items / additionalProperties
      Added value: +true
    • changedInput schema / properties / steps / items / properties / action / description
      Previous value: -"Dotted action from /mcp/actions."New value: +"Dotted action."
    • changedInput schema / properties / steps / items / properties / id / description
      Previous value: -"Step id in batch."New value: +"Step id."
    • changedOutput schema / description
      Previous value: -"result.v1 batch envelope."New value: +"Same result.v1 envelope as agentstack.execute."
    • removedOutput schema / properties / agent_os
      Removed value: -{
      -  "description": "Follow next_step.",
      -  "type": "object"
      -}
    • removedOutput schema / properties / execution_mode
      Removed value: -{
      -  "description": "async when queued.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / job_id
      Removed value: -{
      -  "description": "Poll id.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / recovery
      Removed value: -{
      -  "description": "Next action when blocked.",
      -  "type": "object"
      -}
    • removedOutput schema / properties / response_bytes
      Removed value: -{
      -  "description": "Approximate serialized JSON size of the batch root.",
      -  "type": "integer"
      -}
    • removedOutput schema / properties / timings
      Removed value: -{
      -  "additionalProperties": {
      -    "type": "number"
      -  },
      -  "description": "Batch phase ms (hydrate_ms, preflight_ms, …).",
      -  "type": "object"
      -}
  4. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the description isn't carrying the safety burden alone. It still adds genuinely non-structured context: that the server enforces rejection of mutate steps, and that a wire alias 'agentstack_read' is accepted via tools/call.

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?

Four short, front-loaded sentences with no filler; the read-only constraint comes first and the alias detail comes last. The telegraphic style is dense but each sentence carries distinct information.

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

Completeness4/5

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

An output schema exists, so return values need no explanation, and the nested steps/DAG structure is fully covered by the schema. The remaining ambiguity is what 'evaluate' actually does at execution time, which is a minor gap for a batch tool of this shape.

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% and every parameter (steps, context, options) is documented inline, so the baseline is 3. The description only adds that the body mirrors agentstack.execute and that options shares the same keys, without explaining step semantics beyond the schema.

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 names a specific verb+resource ('Read-only batch') and narrows the effect to 'read/evaluate', which separates it from the write-capable sibling agentstack.execute. It stops short of a full statement of what a batch read returns, but an agent can tell what the tool does at a glance.

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 gives a clear when-not ('Server rejects mutate steps'), which effectively routes write intents to agentstack.execute, and notes the shared body shape so callers can reuse execute payloads. The alternative is only implied rather than named explicitly, which keeps it out of the top band.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.