Skip to main content
Glama

add_item

Add a work item to the open goal, deduplicated by external reference so the same email or issue is never added twice. Route proposed actions to human approval, record completed auto actions, or refuse off categories.

Instructions

Add a work item to the open goal. Always pass external_ref for things that come from outside (an email, an issue) so the same thing is never added twice — an existing item is returned instead. With an action: "propose" categories create an item that waits for human approval (do not act until approved), "auto" categories record an action you already took (or, once the run has read untrusted content such as mail or a web page, propose it instead), "off" categories are refused.

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": {
      "goal": "<goal>"
    },
    "name": "add_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYesShort description of the work item, e.g. "Reply to Alice about Thursday"
notesNo
actionNoAn action this item is about. "propose" categories create an item that waits for human approval; "auto" categories record an action you already took; "off" categories are refused.
resultNoFor auto actions: what you did
statusNoFor items without an action (default pending)
run_scopeNoA goal run passes its run id here; anyone else leaves it out.
ask_personNotrue: this item asks the person for something only they can give or do (a choice, details, connecting a service, allowing a site). It waits under Needs you and alerts them; their answer arrives as memory. Keep goal to the short question and put what they need to answer it (the options, what you would do and why) in notes: the Goals pane shows notes under the question. With an action too, their answer (or Done) also approves that action, as approving a proposal does: it shows approved_to_execute, so carry it out as the answer says (doing nothing if the answer asks for nothing), then complete the item.
external_refNoStable ID of the thing this is about, e.g. "gmail:18c2f…". If an item with this ref already exists it is returned instead of creating a duplicate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.32.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / action / additionalProperties
      Removed value: -false
    • addedInput schema / properties / action / properties / params / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses idempotency (an existing item is returned rather than duplicated), approval gating for propose categories, refusal for off categories, and the ask_person lifecycle including the approved_to_execute signal and arriving answer. It also warns not to act before approval, which is exactly the safety behavior an agent needs before calling a mutation tool.

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?

The core action is front-loaded in the first clause and every subsequent sentence encodes a behavioral rule rather than filler. The ask_person passage, however, is a long run-on that packs approval semantics, UI placement and follow-up steps into one sentence, making it harder to parse than the rest.

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 an eight-parameter, nested-object mutation tool with no output schema, the description covers the decision-critical behavior: idempotent returns, approval flow, refusal, and human-question handling. It stops short of describing what a newly created item looks like in the response, but the idempotent-return note covers the main ambiguity.

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 coverage is 88%, so the schema already documents goal, notes, action.category, summary, params, result, status, run_scope and external_ref, and much of the description's action-mode text restates the action field's own description. The genuinely additive parts are the convention of putting the short question in goal and answer context in notes, and the external_ref dedup framing, which is already in the schema too.

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 opens with a specific verb and resource, 'Add a work item to the open goal', which tells an agent exactly what is created and where it lands. It does not distinguish itself from siblings such as todo_add or decide_item, so the agent must infer the boundary from other tools' definitions.

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 concrete conditional guidance: always pass external_ref for things from outside, use propose categories when the action needs approval, use auto only for actions already taken, and switch to propose once untrusted content has been read. What is missing is any explicit statement of when to reach for add_item versus sibling creation tools, leaving that comparison to inference.

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