Skip to main content
Glama

Update a trademark draft

update_filing_draft
Destructive

Patch permitted fields of your draft using its expectedRevision. Omitted fields are preserved; null clears permitted text fields. Add goods/services with account-bound selection tokens from search_taxonomy, remove existing item IDs. Never supply external labels/classes or identity numbers. Outdated items require a new search. The typed signature prepares the filing authorization; the customer still reviews and submits on the website.

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": {
      "orderId": "<orderId>",
      "expectedRevision": "<expectedRevision>",
      "patch": "<patch>"
    },
    "name": "update_filing_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYes
orderIdYes
expectedRevisionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "draft": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "accountUrl": {
      -            "format": "uri",
      -            "type": "string"
      -          },
      -          "applicantName": {
      -            "type": "string"
      -          },
      -          "applicantType": {
      -            "anyOf": [
      -              {
      -                "enum": [
      -                  "individual",
      -                  "company"
      -                ],
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "contactName": {
      -            "type": "string"
      -          },
      -          "draftRevision": {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "filingSignature": {
      -            "anyOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "name": {
      -                    "type": "string"
      -                  },
      -                  "styleId": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "name",
      -                  "styleId"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "fullAddress": {
      -            "type": "string"
      -          },
      -          "id": {
      -            "exclusiveMinimum": 0,
      -            "maximum": 9007199254740991,
      -            "type": "integer"
      -          },
      -          "nationalityRegion": {
      -            "type": "string"
      -          },
      -          "phone": {
      -            "type": "string"
      -          },
      -          "postalCode": {
      -            "type": "string"
      -          },
      -          "priorityApplicationNumber": {
      -            "type": "string"
      -          },
      -          "priorityClaimType": {
      -            "anyOf": [
      -              {
      -                "enum": [
      -                  "none",
      -                  "earlier-filing",
      -                  "exhibition"
      -                ],
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "priorityCountryRegion": {
      -            "type": "string"
      -          },
      -          "priorityFilingDate": {
      -            "type": "string"
      -          },
      -          "registrationType": {
      -            "anyOf": [
      -              {
      -                "enum": [
      -                  "word-mark",
      -                  "figurative-mark"
      -                ],
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "selectedItems": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "classNumber": {
      -                  "maximum": 45,
      -                  "minimum": 1,
      -                  "type": "integer"
      -                },
      -                "groupCode": {
      -                  "type": "string"
      -                },
      -                "groupLabel": {
      -                  "type": "string"
      -                },
      -                "groupLabelZh": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "itemCode": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "itemId": {
      -                  "type": "string"
      -                },
      -                "label": {
      -                  "type": "string"
      -                },
      -                "labelZh": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "standardItem": {
      -                  "type": "boolean"
      -                }
      -              },
      -              "required": [
      -                "itemId",
      -                "classNumber",
      -                "label",
      -                "labelZh",
      -                "standardItem",
      -                "itemCode",
      -                "groupCode",
      -                "groupLabel",
      -                "groupLabelZh"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "status": {
      -            "enum": [
      -              "draft",
      -              "pending_payment",
      -              "paid",
      -              "in_review",
      -              "filed",
      -              "completed",
      -              "cancelled"
      -            ],
      -            "type": "string"
      -          },
      -          "trademarkName": {
      -            "type": "string"
      -          },
      -          "updatedAt": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "status",
      -          "draftRevision",
      -          "trademarkName",
      -          "registrationType",
      -          "updatedAt",
      -          "accountUrl",
      -          "applicantType",
      -          "applicantName",
      -          "nationalityRegion",
      -          "fullAddress",
      -          "phone",
      -          "contactName",
      -          "postalCode",
      -          "priorityClaimType",
      -          "priorityCountryRegion",
      -          "priorityFilingDate",
      -          "priorityApplicationNumber",
      -          "filingSignature",
      -          "selectedItems"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "draft"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "code": {
      -        "maxLength": 128,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "code"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "draft": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "accountUrl": {
      +            "format": "uri",
      +            "type": "string"
      +          },
      +          "applicantName": {
      +            "type": "string"
      +          },
      +          "applicantType": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "individual",
      +                  "company"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "contactName": {
      +            "type": "string"
      +          },
      +          "draftRevision": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "filingSignature": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "name": {
      +                    "type": "string"
      +                  },
      +                  "styleId": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "name",
      +                  "styleId"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "fullAddress": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "exclusiveMinimum": 0,
      +            "maximum": 9007199254740991,
      +            "type": "integer"
      +          },
      +          "nationalityRegion": {
      +            "type": "string"
      +          },
      +          "phone": {
      +            "type": "string"
      +          },
      +          "postalCode": {
      +            "type": "string"
      +          },
      +          "priorityApplicationNumber": {
      +            "type": "string"
      +          },
      +          "priorityClaimType": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "none",
      +                  "earlier-filing",
      +                  "exhibition"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "priorityCountryRegion": {
      +            "type": "string"
      +          },
      +          "priorityFilingDate": {
      +            "type": "string"
      +          },
      +          "registrationType": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "word-mark",
      +                  "figurative-mark"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "selectedItems": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "classNumber": {
      +                  "maximum": 45,
      +                  "minimum": 1,
      +                  "type": "integer"
      +                },
      +                "groupCode": {
      +                  "type": "string"
      +                },
      +                "groupLabel": {
      +                  "type": "string"
      +                },
      +                "groupLabelZh": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "itemCode": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "itemId": {
      +                  "type": "string"
      +                },
      +                "label": {
      +                  "type": "string"
      +                },
      +                "labelZh": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "standardItem": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "required": [
      +                "itemId",
      +                "classNumber",
      +                "label",
      +                "labelZh",
      +                "standardItem",
      +                "itemCode",
      +                "groupCode",
      +                "groupLabel",
      +                "groupLabelZh"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "status": {
      +            "enum": [
      +              "draft",
      +              "pending_payment",
      +              "paid",
      +              "in_review",
      +              "completed",
      +              "cancelled"
      +            ],
      +            "type": "string"
      +          },
      +          "trademarkName": {
      +            "type": "string"
      +          },
      +          "updatedAt": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "status",
      +          "draftRevision",
      +          "trademarkName",
      +          "registrationType",
      +          "updatedAt",
      +          "accountUrl",
      +          "applicantType",
      +          "applicantName",
      +          "nationalityRegion",
      +          "fullAddress",
      +          "phone",
      +          "contactName",
      +          "postalCode",
      +          "priorityClaimType",
      +          "priorityCountryRegion",
      +          "priorityFilingDate",
      +          "priorityApplicationNumber",
      +          "filingSignature",
      +          "selectedItems"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "draft"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "maxLength": 128,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "code"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations establish that this is a destructive, non-idempotent mutation, and the description adds the context that matters most: omitted fields are preserved, null clears text fields, outdated tokens are rejected, and the typed signature only prepares authorization while the customer still submits on the website. That last point is a genuine side-effect clarification not derivable from any structured field.

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 sentences, each carrying distinct information, with the core patching rule front-loaded before the constraints and signature caveat. No filler or repetition of what the schema already states.

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?

An output schema exists so return values need no explanation, and the description covers concurrency, clearing semantics, token sourcing, and submission flow. Minor gaps remain: nothing says what happens on a revision mismatch (error vs retry) and orderId's role is unstated, but an agent could call this correctly.

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 0%, so the description carries the burden, and it does explain expectedRevision, the null-vs-omit patch convention, addSelectionTokens/removeSelectedItemIds, and filingSignature. However, orderId is never explained and most patch fields (priority claim fields, applicantType, registrationType, address fields) get no guidance, leaving the agent to infer formats and conditional dependencies from bare type definitions.

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?

Opens with a specific verb and resource ("Patch permitted fields of your draft") and immediately binds it to the optimistic-concurrency mechanism (expectedRevision). Combined with the title, an agent can distinguish it from create_filing_draft, get_filing_draft, and list_filing_drafts without inspecting any schema.

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 routing: goods/services must come from search_taxonomy selection tokens, and stale items require a fresh search, which tells the agent to re-invoke search_taxonomy rather than guess. It does not explicitly say when to use this versus create_filing_draft or validate_taxonomy_items, so the sibling boundary is only implied.

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