Skip to main content
Glama

Rename Collection

rename_collection
Idempotent

Renames a collection, addressed by its current name or id, and sets its smart filter. The new name must be free; an existing collection is never merged into. A query and/or a tag turn the collection into a smart one (its members are resolved by the search); an empty query removes the filter.

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": {
      "collection": "<collection>",
      "new_name": "<new_name>"
    },
    "name": "rename_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoThe new tag filter. An empty string removes it. Leave the argument out to keep it.
queryNoThe new search query. An empty string removes it. Leave the argument out to keep it.
new_nameYesThe new collection name.
collectionYesCurrent collection name or id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-readonly, idempotent, non-destructive, so the safety profile is partly covered; the description still adds real value beyond them by disclosing that an existing collection is never merged into and by explaining that supplying a query and/or tag converts the collection into a smart one. It does not describe what happens to existing membership or permissions on rename, so it falls short of a 5.

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?

Three sentences, front-loaded with the operation, then the conflict rule, then the smart-filter semantics. No filler or restatement of the tool name.

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 four parameters, no output schema, and annotations covering safety hints, the description supplies nearly everything an agent needs, including the non-obvious empty-string versus omitted distinction. It is slightly thin on what the call returns or whether items are affected, which matters for a mutation with no output schema.

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 meaning the schema cannot: it clarifies that 'collection' accepts a name or id, and that 'query' and 'tag' jointly determine smart-filter membership and that an empty query removes the filter. That interaction between the two optional parameters is genuinely beyond the per-field schema text.

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?

States a specific verb and resource ("Renames a collection") and immediately narrows scope with "addressed by its current name or id." The resource distinction from the sibling rename_tag is obvious from the noun itself, and the added smart-filter clause clarifies the full effect of the operation.

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 explains mechanics and edge cases (name must be free, never merges) but never states when an agent should choose this over an alternative such as delete_collection plus create_collection, or when renaming should be avoided. Usage is implied by the operation itself rather than guided.

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.