Skip to main content
Glama

Rename

rename
Destructive

Rename a space, chat, roll, collection, or a picture, clip or sound in a space's Files (kind media, with space_id). A doc renames with update_doc_info; an uploaded document keeps its name. Everyone who can open it sees the new name.

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

Input Schema

NameRequiredDescriptionDefault
idYesIts id from list_spaces or list_space (collection_id for a collection, media_id for media).
kindYes
nameYes
space_idNoMedia only: the space whose Files hold it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"Its id from list_spaces or list_space (collection_id for a collection)."New value: +"Its id from list_spaces or list_space (collection_id for a collection, media_id for media)."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "space",
      -  "chat",
      -  "roll",
      -  "collection"
      -]New value: +[
      +  "space",
      +  "chat",
      +  "roll",
      +  "collection",
      +  "media"
      +]
    • addedInput schema / properties / space_id
      Added value: +{
      +  "description": "Media only: the space whose Files hold it.",
      +  "format": "uuid",
      +  "pattern": "^([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)$",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=true, openWorldHint=false); the description adds the blast radius, stating that everyone who can open the item sees the new name. It does not state whether the prior name is recoverable or what permission level is required, which matters given destructiveHint=true.

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?

Two tight sentences, front-loaded with the action and supported resource kinds before the doc exception. The parenthetical '(kind media, with space_id)' is slightly compressed but not wasteful.

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?

With no output schema, the description should cover scope and effect; it does so via the visibility sentence and the resource list. Remaining gaps (permissions, name-collision handling, failure modes) are modest for a simple rename operation whose annotations already signal it is a destructive, closed-world write.

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 50%: id and space_id are documented in the schema, and the description usefully binds kind=media to the space_id requirement. However, the enum's individual meanings are only loosely implied by the resource list, and the name parameter's constraints (1-100 chars, uniqueness/collision behavior) are not addressed by either source.

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?

Specific verb (rename) plus an explicit enumeration of the resources it covers: space, chat, roll, collection, and media items in a space's Files. It also names the sibling that handles the adjacent case ('A doc renames with update_doc_info'), so an agent can route correctly without opening another schema.

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?

Gives concrete when-to-use boundaries by resource type and states two exclusions: documents go through update_doc_info, and an uploaded document keeps its name. The alternative is named with the condition that selects it, leaving little to inference.

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.

Resources