Skip to main content
Glama

Compose a section

compose_section
Read-only

Designs one finished section of the app (hero, nav, features, stats, cta or loading) around Louis Studios components tailored to the direction: colours, copy, speed and layout set for this user. Returns a ready TSX file and the components to install for it.

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>",
      "kind": "<kind>"
    },
    "name": "compose_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
copyNoText for this part, in the user's words.
kindYesWhich section.
itemsNoCards for features or stats: a title (or number) and one line each.
buttonNoOptional slug of a Louis Studios button for the call to action.
componentNoOptional slug to build the section around instead of the designer's pick.
import_baseNoWhere installed components live, as the import path (default "@/components/ui").
direction_idYesThe direction_id from create_direction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description adds the substantive behavioral fact that the output is a ready TSX file plus a list of components to install, which tells the agent what it is receiving. It does not state whether a file is persisted anywhere or whether the section is registered in the project state, which is the one remaining ambiguity for a generative tool marked read-only.

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?

Two sentences: the first is front-loaded with the action and its scope, the second covers the return value. Dense and waste-free, though the parenthetical kind list and the branded phrase "Louis Studios components" carry some redundancy against the schema enum.

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 7-parameter tool with nested copy/items objects and no output schema, the description correctly compensates by naming the return value (TSX plus install list). The only real gap is that it does not say whether the returned component slugs are meant to be passed to install_component next.

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?

Schema coverage is 100%, so every parameter including copy, items, component, button and import_base is already documented in the schema. The description adds only the framing that colours, copy, speed and layout come from the user's direction, and does not clarify the designer's-pick fallback for component or button. Baseline 3 applies.

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?

"Designs one finished section" gives a specific verb and a bounded resource, and the parenthetical enumerates the exact section kinds (hero, nav, features, stats, cta, loading). It is clear on its own, but it never contrasts itself with compose_block or compose_page, so the granularity boundary is left to inference from the tool names.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Tailored to the direction" implies this runs after a direction exists, and the direction_id param is required, but the description states no explicit precondition or when-to-use-versus-alternative rule. An agent must infer that compose_page/compose_block cover the assembly cases this tool does not.

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