update_tag

Updates a tag by tagId. Wraps the updateTag RPC.

Use with an AI agent

Export this page as Markdown or bundle it with a task for your agent.

Try a task
Preview the prompt that will be copied

Access

  • Effect: Changes data
  • Required scope: write (the mcp scope also grants it)

Example request

The JSON-RPC message an MCP client sends to call this tool. Your client builds it for you; this is for reference and debugging in a tool such as MCP Inspector.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_tag",
    "arguments": {
      "tag": {}
    }
  }
}

Example IDs refer to fictional demo data. Replace them with IDs from your account before calling the real server.

Description

Updates a tag by tagId. Wraps the updateTag RPC.

If tagId is unknown, pass tagName with the current tag name (or hint like "business").

Get tagId from list_tags.
If tagFieldMasks is omitted, masks are inferred from the provided tag fields.

Input parameters

NameTypeRequiredDescription
tagobjectYes
tagFieldMasksarrayNo
tagIdstringNo
tagNamestringNo
Full input schema (JSON Schema)
json
{
  "additionalProperties": false,
  "properties": {
    "tag": {
      "additionalProperties": false,
      "properties": {
        "color": {
          "type": [
            "null",
            "string"
          ]
        },
        "description": {
          "type": [
            "null",
            "string"
          ]
        },
        "name": {
          "type": [
            "null",
            "string"
          ]
        }
      },
      "type": "object"
    },
    "tagFieldMasks": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "path": {
            "type": "string"
          }
        },
        "required": [
          "path"
        ],
        "type": "object"
      },
      "type": [
        "null",
        "array"
      ]
    },
    "tagId": {
      "type": "string"
    },
    "tagName": {
      "type": [
        "null",
        "string"
      ]
    }
  },
  "required": [
    "tag"
  ],
  "type": "object"
}