Skip to main content
Glama

Update Record Layout Settings

peek.update_options
DestructiveIdempotent

Patch a peek's options. A form (kind form): theme { preset workspace | paper | sand | ocean | forest | dusk, appearance auto | light | dark }, accent (a palette token color-N), header { logo, cover, width narrow | normal | wide, direction auto | ltr | rtl } and submit { label }; its questions and layout change with form.update. A record layout (how a row opens): color, accentColor, border, size, direction, rows, header text/background/size/align, and record — saving (auto | button), buttons { saveAndNew, discard, rowNav } (shown with a Save button), readOnly, openAs (panel | dialog | page), use { newRow (the layout + New uses; one per sheet, so true clears it on the sheet's other layouts), openAsMenu (listed in the Open as menu) }. record is merged key by key into the stored one. To make a layout the sheet's default when a row opens, use sheet.update defaultFormId. Pass only the keys you want to change — existing options are preserved. Booking-specific options are not exposed via this tool.

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": {
      "options": "<options>"
    },
    "name": "peek.update_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
peekIdNo
optionsYes

Output Schema

NameRequiredDescriptionDefault
okYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • addedInput schema / properties / options / additionalProperties
      Added value: +false
    • addedInput schema / properties / options / properties / accent
      Added value: +{
      +  "description": "A palette token (color-N) for Submit, selections and progress",
      +  "pattern": "^color-\\d{1,2}$",
      +  "type": "string"
      +}
    • removedInput schema / properties / options / properties / autosave
      Removed value: -{
      -  "type": "boolean"
      -}
    • addedInput schema / properties / options / properties / header / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "align": {
      +        "type": "string"
      +      },
      +      "background": {
      +        "type": "string"
      +      },
      +      "color": {
      +        "type": "string"
      +      },
      +      "size": {
      +        "type": "number"
      +      },
      +      "text": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cover": {
      +        "description": "Show the cover band",
      +        "type": "boolean"
      +      },
      +      "direction": {
      +        "description": "auto follows the visitor's language",
      +        "enum": [
      +          "auto",
      +          "ltr",
      +          "rtl"
      +        ],
      +        "type": "string"
      +      },
      +      "logo": {
      +        "description": "Show the workspace logo above the title",
      +        "type": "boolean"
      +      },
      +      "width": {
      +        "description": "The public form card: 560, 680 or 840 px",
      +        "enum": [
      +          "narrow",
      +          "normal",
      +          "wide"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / options / properties / header / properties
      Removed value: -{
      -  "align": {
      -    "type": "string"
      -  },
      -  "background": {
      -    "type": "string"
      -  },
      -  "color": {
      -    "type": "string"
      -  },
      -  "size": {
      -    "type": "number"
      -  },
      -  "text": {
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / options / properties / header / type
      Removed value: -"object"
    • removedInput schema / properties / options / properties / navButtons
      Removed value: -{
      -  "type": "boolean"
      -}
    • removedInput schema / properties / options / properties / newButton
      Removed value: -{
      -  "type": "boolean"
      -}
    • removedInput schema / properties / options / properties / readonly
      Removed value: -{
      -  "type": "boolean"
      -}
    • addedInput schema / properties / options / properties / record
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "buttons": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "discard": {
      +          "type": "boolean"
      +        },
      +        "rowNav": {
      +          "type": "boolean"
      +        },
      +        "saveAndNew": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "openAs": {
      +      "enum": [
      +        "panel",
      +        "dialog",
      +        "page"
      +      ],
      +      "type": "string"
      +    },
      +    "readOnly": {
      +      "type": "boolean"
      +    },
      +    "saving": {
      +      "enum": [
      +        "auto",
      +        "button"
      +      ],
      +      "type": "string"
      +    },
      +    "use": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "newRow": {
      +          "type": "boolean"
      +        },
      +        "openAsMenu": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedInput schema / properties / options / properties / resetButton
      Removed value: -{
      -  "type": "boolean"
      -}
    • removedInput schema / properties / options / properties / saveAndNewButton
      Removed value: -{
      -  "type": "boolean"
      -}
    • addedInput schema / properties / options / properties / submit
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "label": {
      +      "description": "The Submit button's text",
      +      "maxLength": 40,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "label"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / options / properties / theme
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "appearance": {
      +      "description": "auto follows the visitor's light or dark setting",
      +      "enum": [
      +        "auto",
      +        "light",
      +        "dark"
      +      ],
      +      "type": "string"
      +    },
      +    "preset": {
      +      "enum": [
      +        "workspace",
      +        "paper",
      +        "sand",
      +        "ocean",
      +        "forest",
      +        "dusk"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "preset"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructive=true, idempotent=true and openWorld=true, so the bar is lower, yet the description still adds real behavior: 'Pass only the keys you want to change — existing options are preserved' and '`record` is merged key by key into the stored one' define patch semantics. Most valuable is the disclosed side effect that use.newRow is 'one per sheet, so true clears it on the sheet's other layouts' — information an agent could not obtain from annotations and could easily trigger by accident.

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?

Well front-loaded ('Patch a peek's options' first, alternatives and merge rules last) with zero filler sentences, and every clause maps to a real option key in the schema. It is nonetheless a single dense paragraph whose long parenthetical enumerations of layout fields are harder to scan than a short bulleted split between form and record modes.

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 patch over a deeply nested options object, the description covers merge behavior, mode differences, cross-tool routing and the one-per-sheet trap; an output schema exists, so return values legitimately need no explanation. Remaining holes are minor but real: no statement of authentication/permission requirements for mutating a peek, and no mention of what the optional peekId defaults to when omitted.

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?

With schema description coverage reported at 0%, the description carries the burden and largely does: theme presets, accent as a color-N palette token, header logo/cover/width/direction, submit label, the record layout fields and the use.newRow/openAsMenu flags are all given meaning beyond the raw JSON. The gap is that peekId — the key that identifies which peek is patched — is never described, and the publish/responsive/accentColor top-level keys are passed over.

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 precise verb+resource ('Patch a peek's options') and immediately splits the resource into its two distinguishable shapes (a form, `kind form`, vs a record layout) with the actual option keys named for each. An agent can tell this apart from form.update and sheet.update without opening 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?

Explicit routing is given for two adjacent jobs: 'its questions and layout change with form.update' and 'To make a layout the sheet's default ... use sheet.update defaultFormId', plus an exclusion ('Booking-specific options are not exposed via this tool'). It stops short of full coverage — the sibling peek.update_field_options is never contrasted, so an agent must guess whether a field change belongs here or there.

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