Skip to main content
Glama

Restyle the page

set_trip_theme
Idempotent

Restyle one trip's page within a fixed set of tokens — colours, heading face, photo treatment. Colours are checked for contrast and rejected if unreadable. Send only the tokens you want to change. Full list: learn('theme').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokensYes
replaceNoReplace the whole theme instead of merging; unsent tokens go back to default.
trip_idYes(must not be empty)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that colours are contrast-checked and rejected if unreadable, and that styling is constrained to a fixed set of tokens. This adds meaningful runtime behavior; it does not contradict the idempotent or non-destructive hints.

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?

Four short sentences, each earning its place: the action, the token scope, the validation behavior, and the way to get the full list. No filler or repetition.

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 moderately complex tool with nested token objectsys, the description covers the key behavioral and partial-update aspects and directs the agent to learn('theme') for the authoritative token list. The schema covers the remaining parameter details, and no output schema is required for a restyle operation.

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?

The description adds useful partial-update semantics ('Send only the tokens you want to change') and categorizes tokens as colours, heading face, and photo treatment. However, the schema already documents most parameters, and the description does not explain the replace flag or individual token constraints.

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 ('Restyle') and resource ('one trip's page') and scopes the work to a fixed set of tokens. This clearly separates it from sibling tools like set_trip_head or set_trip_ending, which target different aspects of a trip.

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 an explicit usage rule ('Send only the tokens you want to change') and points to learn('theme') for the full token list. It does not explicitly contrast with sibling tools, but the purpose statement and sibling names make the appropriate context clear.

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