Skip to main content
Glama

unfour.api.rename_folder

unfour.api.rename_folder

Renames a folder while using expectedUpdatedAt to prevent overwriting concurrent edits.

Instructions

Renames a folder. expectedUpdatedAt from list_folders prevents overwriting a concurrent edit.

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": {
      "folderId": "<folderId>",
      "name": "<name>",
      "expectedUpdatedAt": "<expectedUpdatedAt>"
    },
    "name": "unfour.api.rename_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
folderIdYes
workspaceIdNo
expectedUpdatedAtYes

Output Schema

NameRequiredDescriptionDefault
folderYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (write, non-destructive, non-idempotent), the description discloses an optimistic-concurrency contract: expectedUpdatedAt is mandatory and prevents clobbering a concurrent edit. That is real behavioral context the schema does not convey. It stops short of saying what happens on a stale value (error type, retry path) or that folder contents are unaffected.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the action and followed by the one non-obvious constraint. Nothing is redundant or padded.

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

Completeness3/5

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

For a mutation tool with a documented output schema and existing annotations, the definition covers the key prerequisite but omits what a stale expectedUpdatedAt produces and whether workspaceId is required or optional. Adequate to call correctly in the happy path, incomplete for error handling.

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 0% across four parameters, so the description must carry the load. It adds genuine meaning for expectedUpdatedAt by naming its source (list_folders) and purpose, but says nothing about workspaceId, folderId scope, or any constraints on name beyond minLength.

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?

"Renames a folder" states a specific verb and resource, so an agent can identify the operation immediately. It does not differentiate itself from nearby siblings such as move_folder or unfour.workspace.rename, but the core purpose is unambiguous.

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

Usage Guidelines3/5

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

The description implies the call should follow list_folders (to obtain expectedUpdatedAt) and that this field guards against concurrent edits. It never states when to use this versus move_folder or unfour.workspace.rename, and it gives no explicit when-not guidance.

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