Skip to main content
Glama

apply_user_actions

Apply raw Grist UserActions arrays to run schema operations not covered by higher-level tools, including renaming tables or columns and adding columns.

Instructions

Apply raw Grist UserActions for operations not covered by other tools. Actions are arrays like ["AddTable", "Name", [{id: "Col", type: "Text"}]]. Use sparingly — prefer the higher-level tools when possible.

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": {
      "actions": "<actions>"
    },
    "name": "apply_user_actions"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idNoDocument ID
actionsYesUserActions to apply. Examples: ["RenameTable", "OldName", "NewName"], ["RenameColumn", "Table", "OldCol", "NewCol"], ["AddColumn", "Table", "Col", {"type": "Text"}]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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 behavioral burden. It signals this is low-level and discouraged, but never states that it mutates the document, whether a batch of actions is atomic, what happens when one action in the array fails, or what permissions are required — all critical for a raw mutation tool.

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?

Three short sentences, front-loaded with the purpose, then the data shape, then the caution. The inline example earns its space by illustrating the format; nothing is redundant.

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 raw, unannotated mutation tool with no output schema, the description omits too much: no statement of return value, error/rollback semantics, or that actions bypass normal validation. An agent knows how to format the call but not what to expect from it.

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 both parameters are already documented, including an examples array for actions. The description repeats the array-of-arrays shape and adds one example action, but supplies no additional constraint (ordering, batching limits, doc_id default) beyond the schema.

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?

States a specific verb and resource: applying raw Grist UserActions, and scopes it as covering operations not handled by other tools. It is clearly an escape hatch for the sibling CRUD/schema tools, though it does not name any specific alternative.

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?

"Use sparingly — prefer the higher-level tools when possible" gives an explicit when-not condition and points at the alternatives as a class. It does not say which specific sibling handles which operation, but the routing rule is clear.

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