Skip to main content
Glama

Keep, discard or undo agent work

decide_suggestions
Destructive

Keep, discard, or undo an agent's suggested changes on a shared slate, including selected items, so only approved work is saved to the canvas.

Instructions

Keep (save) or discard what an agent suggested on a shared slate (one action or some of its items), or undo one agent action that was kept or saved directly.

Keep/discard/undo. Decide what an agent's work on a slate becomes, as the canvas does. keep or discard: what it suggested, as Keep and Discard on each ghost: name the action (actionId, from your edit or slates.get include=suggestions), optionally some of its items (itemIds); Keep all on an agent's chip decides each of its actions. Keeping saves them as one change (a line brings the new notes at its ends); an item whose note is gone is refused and says why. Discarding saves nothing. undo: one action (actionId) that was kept or saved directly, as Undo in the agent's activity list: only that action, and only what nobody changed since (left[] says what stayed and why), so it never undoes another agent's work or a person's. Needs the edit right on the slate. Only people keep: an agent never keeps suggestions, and undoes only its own work. An invited agent's action card (a waiting note that stands for a change outside Slatebox, such as a new Linear issue) is approved by keeping that note on its own (itemIds) and declined by discarding it; Keep all never approves one, and held[] says why a card waits.

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": {
      "shareId": "<shareId>",
      "decision": "<decision>",
      "actionId": "<actionId>"
    },
    "name": "decide_suggestions"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
itemIdsNoOnly these items of the action.
shareIdYesThe slate ID from its address: /canvas/<shareId>.
actionIdYesThe action, as list_suggestions gives it (actions[].actionId).
decisionYes
idempotencyKeyNoSend with confirm: the idempotencyKey from the confirmation_required result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only flag destructiveHint=true and idempotentHint=false; the description goes well past that by explaining what each decision does to stored state (keeping saves one change, discarding saves nothing), partial-failure behavior (an item whose note is gone is refused with a reason), the non-clobbering guarantee of undo (left[] reports what stayed and why, it never reverses another agent's or a person's work), and the held[] reason for waiting cards.

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?

The core routing sentence is front-loaded and useful, but the body is a dense run-on mixing mode semantics, permission rules, edge cases and jargon (ghost, chip, line, card) without paragraph or bullet separation. Some content restates itself ('keep or discard: what it suggested'), so length is not fully repaid by clarity.

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?

For a destructive mutation with no output schema, it covers the important ground: permissions, per-mode effects, undo limits, refusal reasons, and partial-response indicators (left[], held[]). The notable omission is the confirmation flow implied by the confirm and idempotencyKey parameters, which an agent must handle to call this successfully.

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?

Schema coverage is 83%, so the baseline is 3; the description adds meaning by explaining that actionId selects the action (with its provenance), that itemIds narrows to some of its items or, for an invited agent's card, must be the note alone, and that decision's three values imply different target sets. It never explains the confirm/idempotencyKey confirmation path, and its cited source for actionId ('your edit or slates.get include=suggestions') does not match the schema's 'list_suggestions actions[].actionId'.

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

Purpose5/5

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

The first sentence states the specific verb set and resource: keep (save) or discard what an agent suggested on a shared slate, or undo one kept action. It scopes the resource ('on a shared slate', per-action or per-item) and implicitly separates itself from siblings like undo_my_edit by restricting undo to agent actions that were kept or saved directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing across the three decision modes: keep/discard operate on the named action with optional itemIds, while undo targets exactly one action and only what nobody changed since. It also gives hard preconditions (needs the edit right on the slate), role restrictions (only people keep; an agent never keeps and undoes only its own work) and the special-case rule that an invited agent's action card is approved only by keeping its note alone, never by Keep all.

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