Skip to main content
Glama

set_rule

Modify dashboard rules at runtime by setting specific values for sections like KPI formatting, chart defaults, or layout settings without editing YAML files.

Instructions

Set a specific rule value in the active dashboard rules.

This allows admins to modify rules at runtime without editing YAML files. Changes persist for the current session and can be exported with export_rules().

Args: section: Rule section name. Options: "kpi" — KPI formatting (font_size, font_color, bold, row_height, max_kpis, default_format) "charts" — Chart defaults (max_charts, theme, bar_top_n, pie_max_slices) "layout" — Layout settings (width, height, background_color, card_background) "bar_chart_rules" — Bar chart enforcement "theme_rules" — Theme enforcement "map_rules" — Map chart enforcement key: The specific setting to change. Examples: "font_size", "max_charts", "theme", "background_color", "default_format" value: New value (string — will be auto-parsed to int/float/bool as needed). Examples: "28", "modern-dark", "#2D2D2D", "true", "$#,##0.00"

Returns: Confirmation of the change or error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sectionYes
keyYes
valueYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: it's a mutation tool (implied by 'Set'), requires admin privileges, has session-level persistence, can be exported via export_rules(), and returns confirmation or error messages. It doesn't mention rate limits or destructive consequences beyond the rule change.

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?

The description is appropriately sized and well-structured with clear sections (purpose, context, parameters, returns). Every sentence adds value, though the parameter documentation is quite detailed which is necessary given the schema coverage gap.

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?

Given the tool's complexity (3 parameters, mutation operation, no annotations) and 0% schema coverage, the description provides excellent completeness. It covers purpose, usage context, detailed parameter semantics, and behavioral traits. The presence of an output schema means the description doesn't need to explain return values in detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by providing comprehensive parameter documentation. It clearly explains all three parameters (section, key, value) with detailed options, examples, and formatting guidance that goes far beyond what the bare schema provides.

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 specific action ('Set a specific rule value'), target resource ('active dashboard rules'), and user role ('admins'). It distinguishes from siblings by focusing on runtime rule modification rather than other dashboard operations like export_rules or reset_rules.

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

Usage Guidelines4/5

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

The description provides clear context for when to use this tool ('modify rules at runtime without editing YAML files') and mentions persistence behavior ('Changes persist for the current session'). It explicitly references the complementary export_rules() function but doesn't specify when NOT to use this tool or compare it to all alternatives like reset_rules.

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/subhatta123/twilize'

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