Skip to main content
Glama

update_toggle

Update a toggle's body content by searching for its title on a page and replacing its children with the provided markdown. Use dry_run to preview changes before execution.

Instructions

DESTRUCTIVE — no rollback: this tool preserves the matched toggle container block ID, then deletes its body children and appends replacement body blocks. Child block IDs inside the body change, and if the write fails mid-call the toggle can be left partially or fully emptied. For irreplaceable content, duplicate_page the target first so you have a restore point.

Update the body of one toggle by title from a page. Searches recursively and matches plain toggle blocks plus toggleable heading_1, heading_2, and heading_3 blocks using case-insensitive trimmed text. The markdown is replacement body content, not a wrapper that renames the toggle. If the markdown parses as one matching top-level toggle or toggleable heading wrapper, that wrapper is ignored and only its children are used as the replacement body.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYesPage ID
titleYesToggle title to find (case-insensitive)
markdownYesReplacement markdown for the toggle body
dry_runNoPreview validation and planned effect without mutating Notion. Default false.
Behavior5/5

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

With no annotations provided, the description fully discloses behavioral traits: it is destructive with no rollback, preserves toggle container, deletes and replaces body children, warns of partial failure risks, and explains case-insensitive recursive search. It also details handling of markdown wrappers. This addresses safety and failure modes comprehensively.

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?

The description is efficiently written, with critical warning front-loaded ('DESTRUCTIVE — no rollback'). Every sentence adds necessary detail about behavior, risks, and parameter nuances. There is no redundant or filler content, and the structure logically flows from warning to purpose to specifics.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and no annotations, the description provides complete context for an agent: what the tool does, how it works, important behavioral traits (destructive, case-insensitive, markdown handling), and a recommendation to duplicate page for safety. All essential aspects are covered, making it unlikely an agent would misuse the tool if the description is followed.

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?

Input schema has 100% coverage with descriptions for all 4 parameters. The description adds significant value beyond schema: it clarifies that the markdown parameter is replacement body content (not a wrapper that renames the toggle) and explains how wrappers in markdown are handled. This extra context enhances agent understanding beyond the schema alone.

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?

The description clearly states the tool's purpose: 'Update the body of one toggle by title from a page.' It specifies the verb (update), resource (toggle body), and scope (by title from a page). The description also explains the search behavior and matching criteria, making it distinct from sibling tools that might update other elements.

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?

The description warns about destructiveness and suggests duplicating the page for irreplaceable content, providing implicit usage context. However, it does not explicitly state when to use this tool versus alternatives (e.g., read_toggle, archive_toggle). No exclusion criteria or alternative tool names are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Grey-Iris/easy-notion-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server