Skip to main content
Glama

containers-update

DestructiveIdempotent

Update a folder within the connected user's personal Hjarni account or an authorized team workspace — rename, change description or negative_space (what does NOT belong here), move to a different parent, set display position, or archive/unarchive it. Works for both personal and team containers the current user can edit (team containers require the editor role). Refuses the space's root (root: true in containers-get); set that space's instructions with instructions-update instead, and pass parent_id null, not the root's id, for a top-level folder. Required: id (integer). Optional: name, description, negative_space (pass null to clear it), parent_id (null for root, must be in the same scope), position (integer, lower = first). Archiving: archived (boolean) archives or unarchives the folder itself; add include_notes: true to also retire/reactivate every note filed in it IN BULK, and include_nested: true to sweep nested sub-folders (and, with include_notes, their notes) too. This is THE way to retire a whole folder — e.g. a finished project or a large import whose notes keep surfacing in dashboards — in one call; never loop notes-update over each note for that. The response then includes containers_changed and notes_changed counts (rows actually flipped; note bodies are not returned). On team containers an include_nested sweep requires the editor role on every affected sub-folder. Caveat on reversing: an unarchive sweep reactivates EVERYTHING it touches — include_nested resurrects sub-folders, and include_notes resurrects notes, that the user had archived individually before the sweep. When that matters, unarchive selectively: archived: false on specific folders, and individual notes via notes-update. Unarchiving a nested folder also reactivates its archived ancestor folders, so the restored folder stays reachable. Find archived folders again later with containers-list scope 'archived'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesContainer ID (required)
nameNoNew name
archivedNoArchive (true) or unarchive (false) the folder. On its own this only flags the folder; combine with include_notes/include_nested to retire its contents too.
positionNoDisplay order position (lower numbers appear first)
parent_idNoNew parent container ID, or null to move the container to root level. Must belong to the same scope as the container.
descriptionNoNew description
include_notesNoWith archived: also set the same archived state on every kept note filed in the folder (and in its sub-folders when include_nested is true), in one bulk update. Default: false.
include_nestedNoWith archived: apply the same archived state to all nested sub-folders as well. Default: false.
negative_spaceNoWhat does NOT belong in this folder, or null to clear it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / archived
      Added value: +{
      +  "description": "Archive (true) or unarchive (false) the folder. On its own this only flags the folder; combine with include_notes/include_nested to retire its contents too.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / include_nested
      Added value: +{
      +  "description": "With archived: apply the same archived state to all nested sub-folders as well. Default: false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / include_notes
      Added value: +{
      +  "description": "With archived: also set the same archived state on every kept note filed in the folder (and in its sub-folders when include_nested is true), in one bulk update. Default: false.",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / parent_id / description
      Previous value: -"New parent container ID (null for root). Must belong to the same scope as the container."New value: +"New parent container ID, or null to move the container to root level. Must belong to the same scope as the container."
    • changedInput schema / properties / parent_id / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / negative_space
      Added value: +{
      +  "description": "What does NOT belong in this folder, or null to clear it.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / parent_id / description
      Previous value: -"New parent container ID (null for root)"New value: +"New parent container ID (null for root). Must belong to the same scope as the container."
  5. Changed2 schema fields changed
    • changedInput schema / description
      Previous value: -"Update an existing container (rename, change description, move to a different parent, or set display position)."New value: +"Update an existing container."
    • changedInput schema / properties / id / description
      Previous value: -"Container ID"New value: +"Container ID (required)"
  6. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the safety profile (destructiveHint=true, idempotentHint=true); the description adds substantial behavior beyond that: root refusal, the editor-role requirement for team containers, the include_notes/include_nested bulk semantics, the response containing containers_changed and notes_changed counts, and a detailed caveat that an unarchive sweep resurrects individually-archived items and reactivates ancestor folders.

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?

Front-loads the core action and scope before the operational details, and every sentence carries real information. It is dense and long, with some repetition around archiving semantics, but nothing is truly wasted given the mutation's complexity.

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

Completeness5/5

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

For a 9-parameter destructive mutation with no output schema, it covers prerequisites (editor role), edge cases (root refusal, ancestor reactivation), reversal caveats, and even the response shape (containers_changed/notes_changed). An agent has everything needed to call it correctly.

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 100%, so the baseline is 3, but the description adds genuine inter-parameter semantics the schema lacks: parent_id null (not the root's id) for top-level, negative_space null clears the field, and how archived combines with include_notes/include_nested. This meaningfully exceeds the per-field schema docs, though individual field definitions largely mirror the schema.

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?

Opens with a specific verb and resource ('Update a folder within the connected user's personal Hjarni account or an authorized team workspace') and enumerates every supported operation: rename, description/negative_space, move parent, position, archive/unarchive. It explicitly distinguishes itself from siblings by naming containers-get, instructions-update, and notes-update as the correct tools in specific situations.

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?

Provides explicit when-to-use and when-not-to-use guidance: refuses the space root and routes the agent to instructions-update, and says to pass parent_id null rather than the root's id. It also gives a strong alternative-routing rule ('never loop notes-update over each note') and a conditional fallback for selective unarchiving.

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.