Skip to main content
Glama

Write user settings

write_user_settings
DestructiveIdempotent

Write the personal settings of users — portlets on the home page, favourite items, or the settings of a view table (DataGrid) — the same way the Portlets, Favourites and Customize dialogs do. The settings object has the shape get_user_settings returns. Items that the user has no rights to are removed right after the write, exactly as the user interface removes them, and are reported as dropped. Read the current settings with get_user_settings first.

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": {
      "kind": "<kind>",
      "users": "<users>",
      "settings": "<settings>"
    },
    "name": "write_user_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesportlets, favorites or datagrid.
modeNoportlets and favorites only: replace (default) replaces the whole list, add appends the items, remove removes them. Not allowed for datagrid.
usersYesArray of the target users and user groups in the rights format, e.g. ["U12", "G3"]. A group stands for all its members.
portletNodatagrid only: 'true' writes the settings of the DataGrid shown as a portlet. Only for viewpagecontrol.
settingsYesJSON object with the settings. portlets: {"columns": [[{"viewPageControlId": 12, "name": "…"}], [], []], "refreshInterval": 0, "showImage": true} — three columns of the home page; name defaults to the name of the control; without columns only refreshInterval and showImage are written. favorites: {"items": [{"viewPageId": 5, "name": "…"}, {"separator": true}], "showOnHomePage": true}. datagrid: any of recordsPerPage, sortColumnId, sortDirection (ASC, DESC), sortColumn2Id, sortDirection2, showFilters, showDetails, showToolTip, showGrid, showFooter, showUpperToolbar, tableColumns, detailColumns (toolTipColumns for a portlet) — properties left out keep their current value.
control_idNodatagrid only: id of the DataGrid control, as returned by get_model.
control_typeNodatagrid only: viewpagecontrol or formcontrol.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag this as destructive, non-read-only and idempotent, but the description adds a non-obvious side effect those flags cannot convey: items the user has no rights to are silently pruned after the write and reported as dropped. That is exactly the kind of hidden mutation an agent needs warned about. It does not describe the response payload beyond the 'dropped' reporting or any rate/permission constraints on writing to groups.

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 tight sentences ordered purpose → side effects → prerequisite, with the destructive behaviour placed before the call-to-action rather than buried. No filler, though the parenthetical 'the same way the Portlets, Favourites and Customize dialogs do' and the clause about the UI removing items partially overlap.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive 7-parameter mutation with no output schema, the description covers the core behaviour and the read-first workflow. However, it never addresses authorization for writing another user's or a whole group's settings (the users parameter accepts groups) and only gestures at the return value via 'reported as dropped', leaving gaps an agent would want filled.

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

Parameters4/5

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

Schema coverage is 100%, so the per-parameter documentation already carries most of the load and the baseline would be 3. The description adds one genuinely useful semantic anchor the schema lacks: the settings object has the same shape that get_user_settings returns, which tells the agent this is a read-modify-write round trip. It adds nothing further about kind, mode, users or control_type beyond what the schema states.

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 gives a specific verb plus resource ('Write the personal settings of users') and enumerates the three setting kinds it covers — home-page portlets, favourites, and DataGrid view-table settings. It is clearly distinguishable from the sibling get_user_settings, which is named as the read counterpart.

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?

It explicitly states the prerequisite workflow: 'Read the current settings with get_user_settings first,' and ties the write to the behaviour of the Portlets, Favourites and Customize dialogs so an agent knows which UI action it replicates. It does not spell out conditions where a write should be refused or an alternative write tool (e.g. write_model) preferred, so it stops short of full when/when-not guidance.

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.

Resources