Skip to main content
Glama

Change a wrap's text, font or colours

update_wrap_text
Destructive

Change a wrap's back-cover text, font, spine colour or flat back colour, and get fresh files. Free and immediate (no AI runs), so never make a second wrap for these. Works on wraps made in the app too. Fields you omit stay as they are; "" clears one. Hand-placed blocks stay where they are. solid_color on an AI back replaces the art for good (warning back_converted_to_solid): ask the user first. Read the current text with get_wrap.

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": {
      "wrap_id": "<wrap_id>"
    },
    "name": "update_wrap_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
blurbNo
presetNoRe-run a back layout. Not applied to a wrap laid out by hand (warning preset_not_applied).
taglineNo
wrap_idYesThe wrapId (from get_wrap or a finished wrap job).
author_bioNo
font_familyNoDefault: the wrap's current font.
solid_colorNoHex colour for a flat back cover.
spine_colorNoHex colour for a flat spine (a blended continuation spine becomes flat).
spine_titleNo
layout_stateNoA full layout from get_wrap, edited, to move or restyle blocks. It replaces the stored one; preset is ignored. At most 5 images, each already in this account.
spine_authorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say destructive=true, not idempotent, not read-only. The description adds real behavior: no AI runs so it is free and immediate, omitted fields are preserved, empty string clears, hand-placed blocks are untouched, preset is skipped on hand-laid wraps, and solid_color permanently destroys AI art with a named warning code.

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?

Every sentence carries a distinct operational rule, and the highest-risk fact (solid_color destroys art, ask first) is placed prominently. No filler or restatement of the title.

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 an 11-parameter destructive mutation with a nested object and no output schema, the definition covers mutation semantics, warnings and prerequisites well. It is slightly thin on what "fresh files" means as a return value and on layout_state limits (max 5 images, account-scoped), though the schema covers the latter.

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 55%, and the description compensates with the most important global rule an agent needs: omitted fields stay as they are and "" clears one, plus the permanence of solid_color and the layout_state override of preset. It still says nothing about tagline, author_bio, spine_title, spine_author or font_family semantics beyond what the schema enumerates.

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 plus the exact editable surface: back-cover text, font, spine colour, flat back colour, and that fresh files are produced. It also implicitly separates itself from the read path by pointing at get_wrap, so an agent can tell what this tool is and is not without opening the 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 when-to-use (any edit to text/font/colours), explicit when-not ("never make a second wrap for these"), a prerequisite ("Read the current text with get_wrap"), and a human-in-the-loop rule ("ask the user first" before solid_color). That is the full when/when-not/alternative set.

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