Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

SayShape draws interactive interfaces inside the chat from a short spec: charts, tables, dashboards, stat cards, forms, calculators, trackers and checklists. show_interface draws a spec. Its description has a map of SayShape, enough to write a report at once; sayshape_docs returns the guide for every capability and element a screen needs, in one call. An interface's theme and sizes come from the chat app, so a request to restyle one (dark mode, bigger text) doesn't change it.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
sayshape_docsA

Returns one SayShape guide for every capability and element you name together: the syntax, how they connect, and a short example. Ask once, for everything the screen needs, e.g. topics: ["forms", "calculations"], elements: ["slider"]. With nothing named, returns the map.

show_interfaceA

Draws an interactive interface from a spec, with the SayShape engine: suited to charts, tables, dashboards, stat cards, forms, calculators and trackers. This chat app can't show it in the conversation, so when the spec has nothing to fix the result gives a small web page that draws it, to publish or save for the person. Specs can't run code or choose colors. The result lists lines the parser skipped, with the docs for those elements, so you can fix them.

HOW SAYSHAPE FITS TOGETHER (one element per line, children indented 2 spaces, no code)

  • state holds values: state budget=500 picked="All". derive works a value out from others and updates by itself: derive left={budget - spent}

  • {…} reads them in text and props. Controls write them with bind=; on= actions change them (set, inc, add) or tell the app (emit)

  • each repeats elements for every item of a list; if= shows or hides an element

  • data from the app may hold numbers and dates as text: read them with num('$36,626') and date('9 Jan 2026') (YYYY-MM-DD; month(), quarter(), year() of it), and tidy names with tidy() so they group. Totals and charts already read numbers written as text

CAPABILITIES (building blocks; name several together)

  • lists: lists and records in state: repeat with each; filter, sort, group and total them

  • calculations: values worked out from other values with derive, updating as people change inputs

  • forms: fields, choices and buttons people fill in: required=, error= and disabled= checks, and emit: to send it

  • actions: what presses do: change state (set, inc, add, remove), go between screens, notify, or tell the app (emit)

  • layout: cards, rows, grids, columns, accordions, carousels, scroll areas, dialogs and slide decks

  • content: text, images, badges, avatars, callouts, icons and code

  • data: numbers and records: charts, tables, stats, meters, details, compare, boards, trees, flows, schedules

  • navigation: several screens, tabs, breadcrumbs and pages

  • feedback: progress, loading placeholders and empty states

  • full: the whole guide, when nothing narrower fits

ELEMENTS (ask for one by name for its props and example)

  • layout: column, row, overlap, grid, card, list, list-item, accordion, divider, spacer, each, timeline, step, carousel, scroll, deck, slide

  • content: text, image, code, badge, avatar, callout, icon, tile

  • data: stat, rating, chart, chart-line, chart-rule, chart-band, chart-note, meter, table, table-column, compare, compare-row, details, detail, schedule, board, tree, flow

  • input: button, link, check, switch, radio, select, date-picker, stepper, slider, input, segmented, menu, menu-item

  • navigation: screen, tabs, tab, breadcrumb, pagination

  • feedback: progress, skeleton, empty, dialog

For anything else, call sayshape_docs once with every capability and element the screen needs, such as topics: ["forms", "calculations"], elements: ["slider"], then write it. Other topics: expressions, rules, examples, chat.

IN A CHAT: under 600px. Title, filters, a few KPIs in grid min=140, one main chart; no nested cards. Caption estimates.

  • This chat app shows interfaces as a page outside the chat, so emit: can't reach you: don't use it. Buttons can still change the page (set:, inc:, go:); ask the person to reply in the chat for anything you need back.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
SayShape interfaceDraws a SayShape spec with the SayShape engine.

TDQS

A4.3/5.0

Scored across 2 tools

Disambiguation5/5

The two tools have clearly distinct purposes: one retrieves documentation, the other renders an interface from a spec. There is no practical overlap, and the workflow between them is obvious.

Naming Consistency4/5

Both names use snake_case, but sayshape_docs uses a server-prefix pattern while show_interface follows verb_noun. This is a minor inconsistency rather than a readability problem.

Tool Count5/5

Two tools are well matched to the server's purpose: documentation lookup and interface rendering. Neither feels superfluous, and the small surface keeps the workflow focused.

Completeness5/5

The set covers the full lifecycle: retrieve relevant docs, then render and surface parser issues with documentation for fixing them. No obvious operation is missing for generating SayShape interfaces.

Maintenance

ActivityActive
ResponsivenessNo recent community issues