Skip to main content
Glama

Remove Field From Record Layout

peek.remove_layout_item
DestructiveIdempotent

Remove an item from a record layout (how a row opens; a form is refused: take a question off it with form.update removeFields). Identify the item by layoutItemId (returned by peek.read) or by attributeCode (removes the first attribute item matching that code — useful for 'remove cover/icon'). Removing from the layout does NOT delete the underlying sheet attribute; use sheet.remove_attribute for that. Removing a field shown under the title takes it off the layout altogether; to move it back into the body instead, use peek.reorder_layout underTitle without it.

Input Schema

NameRequiredDescriptionDefault
peekIdNo
layoutItemIdNo
attributeCodeNo

Output Schema

NameRequiredDescriptionDefault
okYes
removedCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations supply the safety profile (destructiveHint=true, idempotentHint=true, readOnlyHint=false), and the description adds real value on top: the non-obvious guarantee that removing a layout item does NOT delete the underlying sheet attribute, and the asymmetry that removing a title-level field drops it from the layout entirely. The remaining gap is the return shape, which is covered by the output schema.

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?

The core action is front-loaded in the first clause and each subsequent sentence handles a concrete confusion case rather than padding. The parenthetical-heavy phrasing and semicolon chains make it dense to parse, but nothing is redundant.

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 mutation with an output schema and modest branching (two identification modes), the description covers consequences, alternatives, and side effects thoroughly. The only meaningful omission is the peekId parameter, which is central to scoping the operation but left entirely undocumented.

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 coverage is 0% with three params and none required, so the description must carry the load. It does well on two: layoutItemId is sourced ('returned by peek.read') and attributeCode's first-match behavior is spelled out, which also implies the either/or selection logic. However, peekId is never mentioned at all despite being a distinct parameter whose meaning is unexplained and whose requiredness is ambiguous.

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 a specific verb and resource ('Remove an item from a record layout') and immediately scopes it against two lookalike operations (form fields via form.update, sheet attributes via sheet.remove_attribute). An agent can distinguish this from peek.add_layout_item, peek.reorder_layout, and sheet.remove_attribute 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 Guidelines5/5

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

Explicit routing is given for every adjacent case: forms use form.update `removeFields`, underlying attributes use sheet.remove_attribute, and fields under the title that should be moved rather than removed use peek.reorder_layout `underTitle`. It also names the 'remove cover/icon' scenario as the intended use of attributeCode.

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