Skip to main content
Glama

Rename a file

tarkle_rename_file
Idempotent

Rename one file. The same rules as the app apply: a name already used in that folder is refused (NAME_TAKEN), and the file extension is part of the name. A file that is protected (team folder, file request, system folder), sold, or held by a share link is refused with the reason.

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": {
      "workspaceId": "<workspaceId>",
      "fileId": "<fileId>",
      "name": "<name>"
    },
    "name": "tarkle_rename_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe new full name, including the extension.
fileIdYesA fileId from tarkle_list_files or tarkle_list_bin.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
workspaceIdYesThe workspace's id, from tarkle_list_workspaces.

Output Schema

NameRequiredDescriptionDefault
fileNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=true, so safety is partly covered. The description usefully adds behavior beyond that: folder-level name uniqueness enforced, extension treated as part of the name, and refusal with a reason for protected, sold, or share-link-held files. It stops short of stating the success result shape, but an output schema exists to cover that.

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 sentences, front-loaded with the action and then the governing rules, with no filler. Every clause carries either scope or a refusal condition an agent must know.

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?

Given a mutation tool with full annotations, a full schema, and an output schema, the description covers the key failure modes an agent must plan around. It leaves out only how to recover from NAME_TAKEN and what a successful rename returns, both minor given the structured data available.

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 100%, so all four parameters are already documented, including that name includes the extension and fileId comes from list_files/list_bin. The description reinforces the extension rule but adds no new syntax or constraint detail, so the baseline of 3 applies.

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?

States a specific verb and resource ("Rename one file") with an explicit cardinality constraint ("one"), which implicitly separates it from tarkle_rename_folder and tarkle_rename_tag. It does not name a sibling outright, but the resource noun and the extension remark make file scope 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?

There is no explicit when-to-use or when-not-to-use guidance relative to alternatives such as move_file or copy_file; usage is inferred from the verb. The refusal conditions (NAME_TAKEN, protected/sold/share-link-held) describe failure states rather than selection guidance, though they do help an agent anticipate when this call will not succeed.

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.