Skip to main content
Glama

Adjust the direction

adjust_direction

Call this whenever the user wants the look changed after a direction exists, before composing or fitting anything again. Say the change in plain words in "tweak" ("square corners", "slower", "serif headings", "no glow", "more air", "compact", "glass", "grain off", "darker", "warmer", "accent teal", "luxury + sakura", "less playful") or set explicit knobs. Works on any direction_id, including ones made by create_direction. Returns what changed, anything it did not understand, the new description and the new theme CSS to replace the saved file; compose and fit again afterwards so everything follows.

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": {
      "direction_id": "<direction_id>"
    },
    "name": "adjust_direction"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoWhat the site or app is and does, in a sentence or two.
ctaNoThe call to action label.
moodNoHow it should feel, in the user's words. Naming worlds works too: "luxury + sakura", "brutalist", "Y2K".
avoidNoWhat the user does not want, for example "playful" or "glow".
blendNoA second world mixed in, or "none".
brandNoBrand or product name.
knobsNoExplicit settings that override the world. Every one can also be said in plain words through "tweak".
themeNoThe default theme. Leave out to let the world decide; both themes are always made.
tweakNoThe change in plain words.
worldNoForce a world instead of letting the brief choose.
colorsNoBrand colours as hex or names, most important first. Kept exact. Leave out to let the designer choose.
sublineNoOne supporting sentence.
audienceNoWho it is for.
headlineNoThe main headline.
direction_idYesThe direction_id from set_direction or create_direction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent mutation. Beyond that, the description adds real value: it says what comes back (what changed, what was not understood, the new description and new theme CSS to replace the saved file) and what the caller must do next (compose and fit again). It does not cover permissions, whether the previous direction state is recoverable, or what happens on a partially understood tweak.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The trigger condition is front-loaded in the first clause, and the return/next-step information is packed into the final sentence. The long illustrative list of tweak phrases is useful but stretches the middle of an already dense sentence; slightly tighter phrasing would read better without losing meaning.

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

Completeness3/5

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

For a 15-parameter tool with a deeply nested knobs object and no output schema, the description does the important work of describing the return payload and the required follow-up calls. What it omits is the interaction between the top-level brief fields (app, mood, headline, colors) and the change being requested, and how conflicts between 'tweak' and explicit 'knobs' are resolved, which matters given the schema marks knobs as overriding the world.

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 baseline is 3, and the description goes beyond it by explaining the relationship between the two main input paths: free-form 'tweak' versus explicit 'knobs', with 'every one can also be said in plain words through tweak'. The parenthetical examples ('square corners', 'slower', 'no glow', 'luxury + sakura') show the expected granularity of plain-word input in a way the schema does not.

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?

The description states a specific verb and resource ('the look changed after a direction exists') and constrains it to a mutation of an existing direction, so an agent knows it is not creating one from scratch. It also notes it works on any direction_id 'including ones made by create_direction'. However, it never distinguishes itself from the sibling update_direction or set_direction, leaving the closest alternative ambiguous.

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?

Timing is explicit: use it 'after a direction exists, before composing or fitting anything again', and it closes by saying to 'compose and fit again afterwards'. That is a clear use-context and a clear follow-up workflow. There are no explicit exclusions, so it does not say when a sibling such as update_direction is the better choice.

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