Skip to main content
Glama

Get form theme

formTheme_get
Read-only

Get the theme for one color mode of a form. Returns theme (the form's custom theme or null when none set), defaultTheme (neutral baseline matching the schema; for a first apply, call formTheme_set with merge:false and supply all 7 sections (foundation, input, choice, rating, button, question, feedback); for subsequent tweaks, use merge:true to patch only changed fields), and hasTheme (whether a custom theme exists).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesColor-mode theme to operate on. Light and dark themes are stored independently.
formIdYesThe form ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is known. The description adds useful behavioral detail by naming the returned fields (`theme`, `defaultTheme`, `hasTheme`) and explaining the null case when no custom theme is set. It does not cover errors or permissions, but that is minor for a read-only tool.

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

Conciseness3/5

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

The purpose is front-loaded, but the single sentence becomes a run-on with deeply nested parentheses that embed lengthy instructions for `formTheme_set`. Those setter details are only tangentially related to this getter, making the description less focused and harder to scan than it should be.

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?

Because there is no output schema, the description carries the burden of explaining return values: it covers `theme`, `defaultTheme`, and `hasTheme`, including the null case. It is largely complete for a read-only getter, though it does not describe the internal shape of the theme object or error behavior.

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 the schema already documents both `formId` and `mode`, including the enum values light and dark. The description mentions 'one color mode' but adds no syntax, format, or constraint beyond what the schema provides. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

Starts with a specific verb and resource: 'Get the theme for one color mode of a form.' This clearly distinguishes the read operation from the sibling setter formTheme_set, which is also referenced for context. An agent can identify the scope without opening the schema.

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 usage by explaining that `defaultTheme` is for a first apply and that `formTheme_set` should be used with merge:false or merge:true. However, it never explicitly states when to call formTheme_get versus alternatives or what conditions trigger its use. The workflow hints are more about the setter than about this getter.

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.