Skip to main content
Glama
leestott

mcpdemos

by leestott

demo7_gallery_state

Get the current component gallery state or set a new state with specific component, variant, and theme to update the UI on next render.

Instructions

Get or set the component gallery state. When setting, the server updates its state which the UI can read on next render.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesGet current state or set new state
componentNoComponent to display (for set)
variantNoVariant to display (for set)
themeNoTheme (for set)
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It explains that setting updates server state for the next UI render, but does not confirm that get is read-only or disclose other behavioral traits like idempotency or error handling.

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

Conciseness5/5

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

The description is two sentences, front-loaded with the purpose, and contains no unnecessary words. Every sentence adds value.

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

Completeness2/5

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

No output schema, and the description does not explain what get returns (e.g., the current state structure) or what set returns (e.g., success/error). For a tool with 4 parameters, this leaves a significant gap for an agent.

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 description coverage is 100% with parameter descriptions. The description adds context about the server-side update and UI render for set, which enhances understanding beyond the schema.

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 clearly states the tool gets or sets the component gallery state, with a specific verb and resource. It distinguishes this tool from sibling tools which handle different domains (e.g., CLI, scaffolds, consent, palette, exports).

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?

The description implies when to use set (to update UI state) but does not explicitly guide on when to use get vs set, nor compare with alternative tools. No when-not or exclusionary criteria are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/leestott/mcpdemos'

If you have feedback or need assistance with the MCP directory API, please join our Discord server