Skip to main content
Glama

gridstack_enable

Activate or deactivate the grid system to control widget layout functionality within dashboard interfaces.

Instructions

Enable or disable the grid

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doEnableNoEnable (true) or disable (false) the grid

Implementation Reference

  • The main handler function that executes the gridstack_enable tool. It destructures the doEnable parameter and generates GridStack code to either enable or disable the grid instance using grid.enable() or grid.disable().
    private async enable(params: EnableParams): Promise<string> { const { doEnable = true } = params; return this.utils.generateGridStackCode("enable", { doEnable, code: doEnable ? `grid.enable();` : `grid.disable();`, }); }
  • Tool registration in the listTools() method, defining the name, description, and input schema for the gridstack_enable tool.
    { name: "gridstack_enable", description: "Enable or disable the grid", inputSchema: { type: "object", properties: { doEnable: { type: "boolean", description: "Enable (true) or disable (false) the grid", default: true, }, }, }, },
  • Dispatcher case in the callTool switch statement that routes gridstack_enable calls to the enable handler method.
    case "gridstack_enable": return this.enable(args as EnableParams);
  • Input schema definition specifying the expected boolean parameter doEnable with default true.
    inputSchema: { type: "object", properties: { doEnable: { type: "boolean", description: "Enable (true) or disable (false) the grid", default: true, }, }, },

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/raghavsharma-simpplr/gridstack-mcp-server'

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