Skip to main content
Glama

Update folder

folder_update
DestructiveIdempotent

Give any folder a new slug (newSlug), set any folder's history (how many earlier versions its files' whole-file updates keep; null follows the workspace; a workspace folder's by anyone in the workspace but a viewer, and that of the folder holding the workspace's guide only by the workspace's owner or a member of the team that owns it), or set its description (what it holds, one line first; null clears it), one per call: id is the folder's id (any kind: personal, team or workspace), or its slug: in workspaceId when given, else in team, else one of your personal folders. The workspace is the folder's own. A workspace folder's change needs why; expectedWorkspaceRevision is optional: send the folder's workspace_revision to refuse (CONFLICT) if it changed since. A description counts toward storage: one that does not fit is refused STORAGE_LIMIT_REACHED.

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": {
      "id": "<id>"
    },
    "name": "folder_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe folder: its id (any kind), or its slug: in workspaceId when given, else in team, else one of your personal folders.
whyNoRequired for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters.
teamNoWith a folder slug: the team (slug or id) it belongs to.
historyNoHow many earlier versions whole-file updates of the files in it keep: off, all, or a number from 1 to 100; null follows the workspace (default off). A file's own setting wins. Takes effect at each file's next write; deletes nothing now.
newSlugNoThe folder's new slug.
descriptionNoWhat the folder holds: one line first (lists show the first line), at most 64000 characters; null clears it.
workspaceIdNoWith a folder slug: the workspace it is in (its id or its slug).
expectedWorkspaceRevisionNoOptional, a workspace folder's: refuse (CONFLICT) if the folder changed since this workspace_revision.

Output Schema

NameRequiredDescriptionDefault
folderYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters."New value: +"Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters."
  2. Changed4 schema fields changed
    • addedInput schema / properties / description
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "What the folder holds, so others can pick it without opening it: one line first (lists show the first line), at most 64000 characters.",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "What the folder holds: one line first (lists show the first line), at most 64000 characters; null clears it."
      +}
    • addedOutput schema / properties / folder / properties / description
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "What the folder holds, null when none. folder_show has it whole; lists and write receipts carry its first line, at most 280 characters."
      +}
    • addedOutput schema / properties / folder / properties / descriptionCut
      Added value: +{
      +  "description": "true when description is only part of it (a later line or the end of a long first line was left out); folder_show reads it whole.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / folder / required
      Previous value: -[
      -  "id",
      -  "slug",
      -  "owner_id",
      -  "team_id",
      -  "artifact_count",
      -  "history",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "id",
      +  "slug",
      +  "description",
      +  "descriptionCut",
      +  "owner_id",
      +  "team_id",
      +  "artifact_count",
      +  "history",
      +  "created_at",
      +  "updated_at"
      +]
  3. Changed3 schema fields changed
    • removedInput schema / properties / folder
      Removed value: -{
      -  "description": "The folder: its id (any kind), or its slug: in workspaceId when given, else in team, else one of your personal folders.",
      -  "maxLength": 200,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The folder: its id (any kind), or its slug: in workspaceId when given, else in team, else one of your personal folders.",
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "folder"
      -]New value: +[
      +  "id"
      +]
  4. Changed2 schema fields changed
    • removedInput schema / properties / audience
      Removed value: -{
      -  "description": "A workspace folder's new audience: internal or shared (sharing shows the folder to external members; its files keep theirs).",
      -  "enum": [
      -    "internal",
      -    "shared"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / folder / properties / audience
      Removed value: -{
      -  "enum": [
      -    "internal",
      -    "shared"
      -  ],
      -  "type": "string"
      -}
  5. Changed3 schema fields changed
    • addedInput schema / properties / history
      Added value: +{
      +  "anyOf": [
      +    {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "off",
      +            "all"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "maximum": 100,
      +          "minimum": 1,
      +          "type": "integer"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "How many earlier versions whole-file updates of the files in it keep: off, all, or a number from 1 to 100; null follows the workspace (default off). A file's own setting wins. Takes effect at each file's next write; deletes nothing now."
      +}
    • addedOutput schema / properties / folder / properties / history
      Added value: +{
      +  "anyOf": [
      +    {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "off",
      +            "all"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "maximum": 100,
      +          "minimum": 1,
      +          "type": "integer"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / folder / required
      Previous value: -[
      -  "id",
      -  "slug",
      -  "owner_id",
      -  "team_id",
      -  "artifact_count",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "id",
      +  "slug",
      +  "owner_id",
      +  "team_id",
      +  "artifact_count",
      +  "history",
      +  "created_at",
      +  "updated_at"
      +]
  6. Changed5 schema fields changed
    • changedInput schema / properties / workspaceId / description
      Previous value: -"With a folder slug: the workspace it is in."New value: +"With a folder slug: the workspace it is in (its id or its slug)."
    • removedInput schema / properties / workspaceId / format
      Removed value: -"uuid"
    • addedInput schema / properties / workspaceId / maxLength
      Added value: +64
    • addedInput schema / properties / workspaceId / minLength
      Added value: +1
    • removedInput schema / properties / workspaceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  7. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true, but the description adds genuinely non-obvious behavior: a history change 'takes effect at each file's next write; deletes nothing now', a description counts toward storage and can fail with STORAGE_LIMIT_REACHED, and revision mismatch returns CONFLICT. It also clarifies the permission rules for setting a workspace folder's history, which no annotation conveys.

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?

Everything is crammed into one long sentence with deeply nested parentheses, so key constraints like 'one per call' and the STORAGE_LIMIT_REACHED failure are buried mid-clause. No sentence is wasted, but the structure makes the definition hard to scan.

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 8-parameter mutation tool with an output schema, it covers permissions, conflict signaling, storage limits, and the deferred effect of history changes. It omits what happens on slug collision (e.g., whether a taken slug is refused) and whether renaming affects links or references, which are the remaining gaps.

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 cross-parameter semantics the schema cannot: mutually exclusive per-call targets, the precedence order among workspaceId/team for slug resolution, and the rule that a workspace folder's change needs 'why'. Parenthetical clauses restate some schema text, so it is not fully additive.

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 opening sentence names specific mutable fields (newSlug, history, description) on a specific resource (any folder, personal/team/workspace), which is far more than a restated title. It also distinguishes the tool from siblings through the 'one per call' rule and the id-resolution path, though no sibling is named explicitly.

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 usable preconditions: one change per call, workspace folders require 'why', and expectedWorkspaceRevision is optional for optimistic concurrency. The id-resolution ladder (workspaceId, else team, else personal) tells the agent exactly which scoping parameter to supply for each folder kind, though it never names an alternative tool such as folder_create or folder_delete.

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.