Skip to main content
Glama

add_widget_to_page

Add a grid, chart, form, or card widget to an existing Grist page by specifying the page, table, and widget type.

Instructions

Add a widget to an existing page.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "page_name": "<page_name>",
      "table_id": "<table_id>",
      "type": "<type>"
    },
    "name": "add_widget_to_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesWidget type: grid (spreadsheet), card (single record), card_list (scrollable cards), chart, form, custom
titleNoWidget title
doc_idNoDocument ID
group_byNoGroup-by columns (for summary table)
table_idYesTable to display
page_nameYesName of the existing page
chart_typeNoChart type (for chart widgets)
link_columnNoColumn for reference-based linking
chart_optionsNoChart options
link_to_widgetNoTitle or table ID of an existing widget on this page to link to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden for a mutation tool with 10 parameters, yet it says nothing about permissions, whether the widget is appended or positioned, whether titles must be unique, or what is returned. Only the bare mutating action is disclosed.

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?

A single front-loaded sentence with no waste, but its brevity reflects under-specification rather than disciplined editing. It is efficient yet too thin for a tool of this complexity.

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?

For a 10-parameter mutation with a nested options object and no annotations or output schema, the description omits placement behavior, dependencies between link_to_widget and link_column, and side effects. It is not adequate to call this tool confidently from the description alone.

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 description coverage is 100%, so every parameter including the enum for type and the nested chart_options is already documented. The description adds no meaning beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource (add a widget) and narrows scope to an existing page, which distinguishes it from create_page or configure_page_layout. It stops short of naming a sibling or describing what a widget placement entails.

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

Usage Guidelines2/5

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

"existing page" implies a precondition but nothing more: no statement of when to use this versus create_page, configure_page_layout, or link_widgets, and no note on what to do if the page does not exist. The agent must infer all routing.

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