Skip to main content
Glama
marvkr

Better Design

Get Better Widget Guide

get-widget-guide
Read-onlyIdempotent

Plan and build interactive article widgets—calculators, estimators, converters, generators, quizzes, or checklists—or dataset-driven page families with scoped build briefs and design rules.

Instructions

Plan and build a Better Widget for an article, guide, or landing page, or a page family built from a dataset.

Call this whenever the user asks for a calculator, estimator, converter, generator, quiz, checklist, SEO widget, or interactive article tool. Pass every known intake field. If the response lists missing items, ask only for those items and call the tool again before implementation.

For a page family, meaning programmatic SEO pages or one page for each row of a CSV or a database table, pass format "page-family". The brief covers the data source, one template, slugs, the sitemap, canonical URLs, and the rule that every page carries something only its row provides.

The completed response combines a scoped build brief with Better Design's stable rules for calculation trust, form and result behavior, search visibility, performance, analytics, privacy, and review. It routes shared visual and interaction decisions through get-ui-principle and get-ux-principle, then requires get-review-rules and check-comprehension after the widget exists. It never promises search rankings.

Input Schema

NameRequiredDescriptionDefault
formatNoWhat to build: one widget (the default), or a page family, meaning one page for each row of a dataset such as a CSV or a database table.
inputsNoRequired inputs, including units, allowed ranges, and defaults.
resultNoWhat the result shows, explains, and lets the user do next.
contextNoOptional. One sentence on WHY you are calling this and what the user asked for (e.g. 'adding nav icons for the fintech dashboard'). Used only for usage analytics; does not change the result.
userGoalNoWho will use the widget or read each page, and the decision or task it helps them complete.
maxTokensNoMaximum tokens to return. Truncates content to fit. Recommended: 5000-10000.
dataSourceNoPage family: where the rows live, such as a CSV path or a table, and about how many rows there are.
urlPatternNoPage family: the route and slug rule, such as /integrations/[slug].
widgetTypeNoWidget kind: calculator, estimator, converter, generator, quiz, or checklist.
interactionNoHow readers tune inputs and see feedback, including presets, custom controls, direct manipulation, and exact-value entry.
uniqueValueNoPage family: what each page gives a reader that only its row provides, such as its data or a widget filled with its values.
hostFrameworkNoThe host framework and the page or component that will contain the widget.
visualContextNoExisting design tokens, components, or brand reference the widget must match.
transformationNoFormula, scoring rule, conversion, or transformation that produces the result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond them: it describes the shape of the response (a scoped build brief fused with stable design rules), the intake loop ('Pass every known intake field. If the response lists missing items, ask only for those items and call the tool again before implementation'), the delegation chain, and an explicit non-promise ('It never promises search rankings'). These are workflow facts an agent cannot infer from the schema.

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?

Purpose is front-loaded in sentence one and the structure follows a logical progression: trigger, intake loop, page-family branch, response contents. Some redundancy exists, notably re-explaining 'page family' as CSV/database rows when the format parameter's schema already says exactly that, but the length is defensible for a 14-parameter planning tool.

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 14-parameter, zero-required-parameter tool with no output schema, the description supplies what is missing elsewhere: what the response contains, how to recover from missing intake fields, and which sibling calls follow. An agent can call this correctly and act on the result without further inference.

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 per-parameter meaning is already documented; the description adds the cross-parameter conditional that dataSource, urlPattern, and uniqueValue are page-family-only, and that passing format 'page-family' changes what the brief covers (data source, template, slugs, sitemap, canonicals). That conditional relationship is real added meaning, though individual parameters like transformation or visualContext are not elaborated in prose.

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 verb pair and resource: 'Plan and build a Better Widget for an article, guide, or landing page, or a page family built from a dataset.' It immediately establishes two distinct output shapes (single widget vs. page family) and is clearly separable from siblings like get-ui-principle or get-review-rules, which it references rather than overlaps with.

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

Usage Guidelines5/5

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

Explicit triggering conditions are given ('Call this whenever the user asks for a calculator, estimator, converter, generator, quiz, checklist, SEO widget, or interactive article tool') plus the branch selector ('For a page family... pass format "page-family"'). It also names the alternatives it delegates to (get-ui-principle, get-ux-principle) and the mandatory downstream steps (get-review-rules, check-comprehension), so sequencing is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.