Skip to main content
Glama

renameFunction

Destructive

Rename a function/workspace

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": {
      "functionName": "<functionName>",
      "newName": "<newName>"
    },
    "name": "renameFunction"
  }
}

Input Schema

NameRequiredDescriptionDefault
newNameYesThe new name for the function (just the name, not username/)
functionNameYesThe function identifier in format 'username/functionName' (e.g., 'david/func1')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known from structured data. The description adds nothing beyond that: it does not say whether the old name stops resolving, what happens to deployments or references bound to the function, or whether the operation is reversible — all material for a destructive rename.

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?

It is a single short phrase with no wasted words and is front-loaded, but the terseness comes at the cost of the behavioral detail a destructive mutation needs, so brevity here is not entirely an asset.

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

Completeness2/5

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

For a destructive, two-required-parameter mutation with no output schema, the description leaves out consequences (old identifier invalidation, effect on existing deployments or consumers) and prerequisites. Annotations supply safety hints but not the operational context an agent needs before invoking it.

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%, including the 'username/functionName' format and the note that newName excludes the username prefix, so the schema carries the semantics. The description contributes no additional meaning about naming constraints, collisions, or reserved names, making this baseline.

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?

Uses a specific verb (rename) on a named resource, which separates it from createFunction, updateFunctionCode, and updateFunctionSettings. The '/workspace' wording is slightly ambiguous about whether a workspace or a function is being renamed, but the required parameter functionName makes the intent recoverable.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over updateFunctionSettings or updateFunctionCode, nor any stated prerequisite such as needing the function to exist or being permitted to rename it. The agent must infer usage entirely from the name and schema.

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