Skip to main content
Glama

Patch Page Types

patch_types
Destructive

Atomically update Page Types. propertyDefinitions replaces a Type's complete list. Renaming or recoloring an option keeps its UUID id, which Pages and Views store, so they are not rewritten. Removing an ID, its definition, or its property key is rejected while any assigned Page (including trash) or saved View filter still references it.

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": {
      "workspaceId": "<workspaceId>",
      "types": "<types>"
    },
    "name": "patch_types"
  }
}

Input Schema

NameRequiredDescriptionDefault
typesYes
workspaceIdYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, yet the description still adds real behavioral context beyond them: atomicity, full-list replacement for propertyDefinitions, UUID stability when renaming/recoloring options so Pages and Views are not rewritten, and rejection of removals still referenced by assigned Pages (including trash) or saved View filters. It omits concurrency/conflict behavior for expectedVersion and any authorization requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action in four dense sentences, each carrying non-redundant information. The final sentence is long and stacks several conditions, but nothing is filler.

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?

For a destructive bulk-mutation tool with an output schema and reasonable annotations, the description covers the risky parts an agent must know: atomicity, replacement semantics, ID preservation, and blocked removals. The main gap is expectedVersion conflict handling, which matters when a required version field gates the write.

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?

With top-level schema description coverage at 0%, the description does compensate for the most ambiguous parameter by explaining that propertyDefinitions is a full replacement and that option IDs are immutable keys. However, workspaceId, the types array wrapper, typeId, and the required expectedVersion (optimistic-lock) semantics are left entirely to the schema.

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?

States a specific verb ('Atomically update') and resource ('Page Types'), plus the defining behavior that propertyDefinitions replaces the complete list. It is distinguishable from create_types/list_types, but it never names a sibling alternative explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the replacement semantics and the rejection rules tell an agent this is an edit path, not a creation path, but there is no explicit 'use this when...' or 'use create_types instead for...' guidance.

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