Skip to main content
Glama

Replace a page

journal-set-page
DestructiveIdempotent

Replaces a journal page's entire HTML content with the provided markup, overwriting existing content.

Instructions

Replace the whole HTML content of a text page with the given HTML, stored as sent. Nothing is appended or wrapped. For content larger than one message, write the first chunk here and add the rest with journal-append-page, or use journal-page-from-file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesThe new HTML content of the page.
pageIdYesId of the page, from list-journals.
journalIdYesId of the journal, from list-journals.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv14.2609.4

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the destructive/idempotent annotations, it discloses that the HTML is stored exactly as sent, that the entire page content is replaced, and that no wrapping or appending occurs. This tells an agent exactly what side effect to expect.

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?

Three short sentences lead with the core operation, then state the boundary, then give alternatives. There is no redundant or generic filler.

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?

With only three required parameters, full schema coverage, and annotations that already define danger (destructive), the description provides the remaining operational context an agent needs to call the tool correctly. It even answers the likely 'what about large HTML?' question.

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?

Schema coverage is 100%, so the parameters are already documented. The description adds the useful nuance that html must be the full replacement content, stored verbatim rather than modified into a wrapper.

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 first sentence names the exact operation ('Replace the whole HTML content...') and the text-page resource. 'Nothing is appended or wrapped' explicitly separates it from content-writing siblings such as journal-append-page and journal-page-from-file.

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?

It gives concrete guidance on when this tool is appropriate and what to do instead for larger content: write the first chunk here and append the rest, or use journal-page-from-file. This is direct routing advice rather than a general hint.

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

Deploy Server

Other Tools