Skip to main content
Glama

Modify Forms key set

forms_keysets_update
Idempotent

Replace a key set's settings; returns the updated Keyset.

Instructions

Replace a key set's settings; returns the updated Keyset.

Despite the PATCH verb, the API validates the body as a full record: name, total and is_enabled must all be set or the request is rejected with 400. total can only grow: a number smaller than the set has now is refused.

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": {
      "survey_id": "<survey_id>",
      "keyset_id": "<keyset_id>",
      "body": "<body>"
    },
    "name": "forms_keysets_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesFull key set record — name, total and is_enabled are all required.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
keyset_idYesKey set id (integer) from ``keysets_list``.
survey_idYesForm id (24-char hex) the key set belongs to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.142.2
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).",
      +  "type": "boolean"
      +}
  2. First observedv0.67.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare idempotent and non-destructive, and the description stays consistent with that while adding behavior the annotations cannot express: full-record validation despite PATCH, a 400 rejection mode, and the monotonic `total` rule. Auth requirements and what happens to already-issued keys are not covered, so it is not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the action and return value, then the two failure modes. No filler, and the surprising PATCH-vs-full-record detail is placed where it will be read before the call.

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

Completeness4/5

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

For a 4-parameter mutation tool with no output schema, it covers the required body, the rejection behavior and the return value, which is enough to invoke it correctly. It does not say what happens to previously generated keys when `total` grows or whether other keyset attributes survive the replace.

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% and the nested body already documents `name`, `total` and `is_enabled` as all required, so the description largely restates the schema. The one genuine addition is the constraint that `total` may only grow, which is not in the schema; with the baseline of 3 for full coverage, this is an appropriate score.

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 ("Replace a key set's settings") plus the return value, which cleanly separates it from the create/get/list/delete siblings by name. It stops short of naming which sibling to use for non-replacement needs, so it is clear but not fully differentiated in prose.

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?

Gives concrete call conditions: the body is validated as a full record even though the verb is PATCH, and a shrinking `total` is refused. Those are real when/when-not constraints, but there is no guidance on when to prefer this over `forms_keysets_create` or `forms_keysets_delete`.

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

Deploy Server

Other Tools