Skip to main content
Glama

Edit page

edit_page
Destructive

Create, change or delete a page of charts that the user sees in freddy. Send the whole page: without page_id it creates one; with page_id and version it replaces the title and cells; with delete: true it deletes the page. Up to 12 cells. Each cell is checked against the user's data, and the result says what each cell shows.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "edit_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
cellsNoEvery cell of the page, in order. Replaces the cells it had.
titleNo
deleteNoDelete the page (with page_id and version).
page_idNoLeave it out to create a page.
versionNoThe version list_pages gave. Needed with page_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / cells / items / properties / formula
      Added value: +{
      +  "description": "Only when the user asks for their own score or calculation: a formula drawn in place of the metrics. The page keeps the formula; each view computes its values, and freddy stores none of them. a is metric, b to d are more in order (with a formula, more takes any source and unit; one value per day each). Numbers, + - * /, brackets, min(x, y), max(x, y), avg(a, N) = mean of the N days before (N up to 90). Kinds series, bars, figure, calendar; no unit.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed2 schema fields changed
    • changedInput schema / properties / cells / items / properties / kind / enum
      Previous value: -[
      -  "series",
      -  "bars",
      -  "figure",
      -  "calendar",
      -  "range",
      -  "table"
      -]New value: +[
      +  "series",
      +  "bars",
      +  "figure",
      +  "calendar",
      +  "range",
      +  "table",
      +  "dots"
      +]
    • changedInput schema / properties / cells / items / properties / more / description
      Previous value: -"series: up to 3 more lines, any source, same unit (Oura and Garmin HRV). bars: up to 3 more metrics of the same source, stacked (sleep stages). range: one, the high end (metric is the low end). table: up to 59 more rows of the same source, in display order (lab results). With no provider, provider and device are the cell's."New value: +"series: up to 3 more lines, any source, same unit (Oura and Garmin HRV). bars: up to 3 more metrics of the same source, stacked (sleep stages). range: one, the high end (metric is the low end). table and dots: up to 59 more rows of the same source, in display order (lab results). With no provider, provider and device are the cell's."
  4. Changed1 schema field changed
    • addedInput schema / properties / cells / items / properties / unit
      Added value: +{
      +  "description": "Draw the values in this unit, only when the user asks for one. Stored values do not change.",
      +  "enum": [
      +    "hours",
      +    "kg",
      +    "g",
      +    "mg",
      +    "mcg",
      +    "lb",
      +    "oz",
      +    "m",
      +    "km",
      +    "mi",
      +    "ft",
      +    "cm",
      +    "in",
      +    "kcal",
      +    "kJ",
      +    "m/s",
      +    "km/h",
      +    "mph",
      +    "min/km",
      +    "min/mi",
      +    "mL",
      +    "L",
      +    "fl oz"
      +  ],
      +  "type": "string"
      +}
  5. Changed4 schema fields changed
    • changedInput schema / properties / cells / items / properties / label / description
      Previous value: -"The name of this line or layer in the legend, in the user's words (\"Light\", \"Deep\"). Leave it out for one line."New value: +"The name of this line or layer in the legend, in the user's words (\"Light\", \"Deep\"). Leave it out for one line. In a table, the row's name in the user's words and language (\"LDL cholesterol\"); left out, the row shows the name the source printed."
    • changedInput schema / properties / cells / items / properties / metric / maxLength
      Previous value: -64New value: +200
    • changedInput schema / properties / cells / items / properties / more / items / properties / label / description
      Previous value: -"The name of this line or layer in the legend, in the user's words (\"Light\", \"Deep\"). Leave it out for one line."New value: +"The name of this line or layer in the legend, in the user's words (\"Light\", \"Deep\"). Leave it out for one line. In a table, the row's name in the user's words and language (\"LDL cholesterol\"); left out, the row shows the name the source printed."
    • changedInput schema / properties / cells / items / properties / more / items / properties / metric / maxLength
      Previous value: -64New value: +200
  6. Changed2 schema fields changed
    • addedInput schema / properties / cells / items / properties / label
      Added value: +{
      +  "description": "The name of this line or layer in the legend, in the user's words (\"Light\", \"Deep\"). Leave it out for one line.",
      +  "maxLength": 40,
      +  "type": "string"
      +}
    • addedInput schema / properties / cells / items / properties / more / items / properties / label
      Added value: +{
      +  "description": "The name of this line or layer in the legend, in the user's words (\"Light\", \"Deep\"). Leave it out for one line.",
      +  "maxLength": 40,
      +  "type": "string"
      +}
  7. Changed3 schema fields changed
    • changedInput schema / properties / cells / items / properties / kind / enum
      Previous value: -[
      -  "series",
      -  "bars",
      -  "figure",
      -  "calendar",
      -  "range"
      -]New value: +[
      +  "series",
      +  "bars",
      +  "figure",
      +  "calendar",
      +  "range",
      +  "table"
      +]
    • changedInput schema / properties / cells / items / properties / more / description
      Previous value: -"series: up to 3 more lines, any source, same unit (Oura and Garmin HRV). bars: up to 3 more metrics of the same source, stacked (sleep stages). range: one, the high end (metric is the low end). With no provider, provider and device are the cell's."New value: +"series: up to 3 more lines, any source, same unit (Oura and Garmin HRV). bars: up to 3 more metrics of the same source, stacked (sleep stages). range: one, the high end (metric is the low end). table: up to 59 more rows of the same source, in display order (lab results). With no provider, provider and device are the cell's."
    • changedInput schema / properties / cells / items / properties / more / maxItems
      Previous value: -3New value: +59
  8. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds real value beyond them: it discloses that replacement overwrites both title and cells (what gets destroyed), the 12-cell ceiling, and that each cell is validated against the user's data with per-cell results returned. It omits error behavior when validation fails and does not restate that delete requires page_id and version (only implied).

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?

Five short sentences, front-loaded with what the tool does and what it sends, followed by the mode branches and the caps/validation caveats. No filler, no repetition of schema field names.

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 nested, multi-mode mutation tool with no output schema, the description covers the important operational facts: whole-page payload, mode branching, cell limit, and that a result reports each cell's rendering. Remaining gap is failure semantics — what happens when a cell fails validation — which an agent would want before sending a destructive payload.

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 80%, so baseline is 3, but the description adds cross-parameter meaning the schema cannot express: how page_id, version and delete combine into the three modes, and that cells is a full ordered replacement set capped at 12. That is genuine interpretive value above the per-field descriptions.

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 concrete verb set and resource: 'Create, change or delete a page of charts that the user sees in freddy', and immediately enumerates the three operational modes so the agent knows this single tool multiplexes create/replace/delete. It does not name a sibling (e.g. list_pages) to route reading traffic away, so it stops short of full differentiation.

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?

Gives explicit mode-selection conditions: no page_id creates, page_id + version replaces title and cells, delete:true deletes. It also warns 'Send the whole page', which tells the agent this is full replacement rather than a partial patch. No when-not guidance or named alternatives, so not a 5.

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