Skip to main content
Glama

Add or rename field

set_field
Destructive

Add a custom field (a column) to a project, or rename one. Without fieldId, adds a string, number, datetime or select field to every view. With fieldId (from list_fields or the fieldIds of list_tasks), renames it and can add select options. A name that another field has is refused. A type change is refused. It never deletes a field.

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": {
      "projectId": "<projectId>",
      "name": "<name>"
    },
    "name": "set_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe field name. No other field of the project can have it.
typeNoNeeded to add a field. A rename cannot change it.
fieldIdNoOmit to add a field. Give a field id to rename that field.
optionsNoSelect option titles. On a new select field, its options. On a rename, options to add after the stored ones. Option ids are made on the server.
currencyNoFor numberFormat currency: an ISO 4217 code such as USD
projectIdYesProject ID from `list_projects`
numberFormatNoFor a new number field (default decimal)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare mutation, non-idempotency, and destructiveHint, while the description adds meaningful constraints: duplicate names are refused, type changes are refused, fields are never deleted, new fields apply to every view, and rename options are appended after existing ones. These details materially improve the agent's understanding of side effects and failure modes.

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?

Four short sentences, front-loaded with the core action and then the mode-specific rules. Every sentence carries useful operational or constraint information without repetition.

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

Completeness5/5

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

For a seven-parameter mutation tool with no output schema, the description covers both operation modes, key refusal cases, view scope, and the no-deletion guarantee. The schema and annotations fill in the remaining parameter and safety details, leaving nothing essential missing for correct invocation.

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 useful operational meaning by tying `fieldId` presence to add versus rename and by naming valid sources for field IDs. Most other parameter details, such as `currency`, `numberFormat`, and option limits, are already well covered by the schema.

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 specific verbs (add and rename) and the resource (a custom field/column), and uses presence of `fieldId` to distinguish the two modes. This clearly separates schema-level field editing from task-value editing.

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?

Explicitly explains the add branch when `fieldId` is omitted and the rename branch when `fieldId` is supplied, including where to get field IDs from `list_fields` or `list_tasks`. It does not explicitly say when to use this instead of a task-value tool such as `set_task_field_value`, but the add-vs-rename conditions are clear.

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.