Skip to main content
Glama

context_fields_rename

Starts a background task that moves each lead's value from the old key to new_key, then renames the field itself. Leads that already hold new_key keep their existing value and are reported as conflicts.

Filters, views, automations and ${key} templates are not rewritten — call context_fields_references first to see what will be left dangling.

Returns {task_sqid}; poll jobs_get for progress.

Method: POST /api/v1/workspaces/{workspace_sqid}/context-fields/{sqid}/rename/

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": {
      "sqid": "<sqid>",
      "new_key": "<new_key>"
    },
    "name": "context_fields_rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes
new_keyYesThe key to move every lead's value to. Must be unused in this workspace, start with a letter, and contain only letters, digits and underscores.

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?

With no annotations, the description carries the full burden and does well: it discloses that this is an async background task, that conflict handling keeps existing values for leads already holding `new_key`, that dangling references are not rewritten, and the return payload. It omits reversibility/undo behavior and any permission or quota requirements, which matters for a destructive-ish migration.

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?

Front-loaded with the core action, followed by conflict behavior, side-effect warnings, and return/polling info in a tight sequence. The trailing HTTP method line is marginally redundant but confirms the mutation semantics without disrupting structure.

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?

No output schema exists, and the description compensates by naming the `{task_sqid}` return and the `jobs_get` polling path. Combined with conflict and side-effect disclosure, it covers nearly everything needed to invoke correctly, lacking only permission and reversibility details.

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%: `new_key` is well documented in the schema, and the description adds that it is the target key and that pre-existing values are preserved as conflicts. `sqid` is undocumented in both schema and description, leaving it to be inferred as the context field identifier being renamed.

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 (rename a context field) plus the exact data migration semantics: values move from the old key to `new_key`, then the field itself is renamed. It also distinguishes the operation from adjacent ones by noting that references, views, automations and `${key}` templates are not rewritten and pointing to `context_fields_references`.

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

Usage Guidelines4/5

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

Gives concrete sequencing guidance: call `context_fields_references` first to see what will be left dangling, and poll `jobs_get` for progress after the call. It stops short of saying when to prefer an alternative over renaming (e.g. for pure type changes), but the ordering instructions are actionable.

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.