Skip to main content
Glama

Save the direction

set_direction

Call this once the user has picked one of the design_options (pass the same brief plus option 1, 2 or 3), or straight away when the user already knows the look (pass world, blend and knobs, or a tweak in plain words). Saves the direction and returns its direction_id, a description to tell the user, and the theme CSS for both light and dark: save it as styles/louis-studios-theme.css and import it once in the root layout. Every other designer tool takes this direction_id.

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": {
      "app": "<app>"
    },
    "name": "set_direction"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesWhat 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.
tweakNoChanges in plain words to apply before saving, as in adjust_direction.
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.
optionNoWhich of the three design_options for this same brief.
sublineNoOne supporting sentence.
audienceNoWho it is for.
headlineNoThe main headline.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations mark this as a non-read-only, non-destructive write, and the description goes well beyond them: it discloses that the call returns a direction_id, a human-readable description for the user, and theme CSS for both light and dark, and it instructs saving that CSS to styles/louis-studios-theme.css and importing it once in the root layout. That downstream file-handling requirement and the client-facing return payload are exactly the behavioral context annotations cannot carry.

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?

It is front-loaded with the trigger, then the payload, then the return values, then the CSS file instruction, so an agent can act after the first clause. It is a single dense paragraph with several clauses chained by colons and semicolons, which is efficient but slightly heavy to parse.

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?

For a 15-parameter mutation tool with a nested knobs object and no output schema, the description covers invocation conditions, the key parameter groupings, the shape of the return value, what to do with the returned CSS, and the direction_id dependency for all other designer tools. Nothing an agent needs to call it correctly is missing.

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 all 15 parameters are already documented, which sets the baseline at 3. The description adds real meaning on top by explaining the two calling patterns and their parameter relationships: option 1/2/3 must be paired with the same brief, while world/blend/knobs act as explicit overrides and tweak expresses the same changes in plain words. It does not, however, clarify precedence when world, knobs and tweak are supplied together.

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 description opens with a specific trigger and verb: 'Call this once the user has picked one of the design_options... Saves the direction and returns its direction_id.' It distinguishes the tool from design_options and from adjust_direction, and states the tool's central role ('Every other designer tool takes this direction_id'), so an agent can place it in the workflow without opening further schemas.

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?

It gives two explicit entry conditions: after the user picks an option from design_options (pass the same brief plus option 1, 2 or 3), or immediately when the user already knows the look (world, blend and knobs, or a plain-words tweak). It also states the downstream requirement that every other designer tool consumes the returned direction_id. It does not say how this differs from the sibling create_direction or update_direction, which leaves some routing ambiguity among the direction tools.

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