Skip to main content
Glama

Change a form (AI)

edit_form
Destructive

Change an EXISTING form by instruction — 'make the phone number required', 'add a question about allergies', 'rename it to Summer Party 2027'. The FormBuilder builds the change and saves it. Pass the instruction complete and in the user's language. Uses the AI quota. Not for a new form (create_form) and not for opening or closing (set_form_open). Form ids come from list_forms.

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": {
      "form_id": "<form_id>",
      "instruction": "<instruction>"
    },
    "name": "edit_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
form_idYesThe website's id — from list_sites.
instructionYesWhat to change, concrete and complete (3–1000 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Adds real context beyond the annotations: it discloses that an AI FormBuilder performs the change and saves it, and that the call consumes AI quota — a cost signal annotations cannot express. It does not state whether the change is reversible or what happens if the instruction is interpreted incorrectly, which matters given destructiveHint=true.

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?

Purpose and scope are front-loaded in the first clause, with examples, alternatives and prerequisites in descending order of importance. The three illustrative instructions consume meaningful space but clarify expected phrasing and AI-quota behavior, so they largely earn their place.

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 two-parameter, annotation-rich mutation tool with no output schema, the description covers purpose, cost, prerequisites and alternatives adequately. The one residual risk is the mismatch between its "form ids come from list_forms" and the schema's "from list_sites" for form_id, which an agent could resolve incorrectly if it trusts the schema.

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 baseline is 3, and the description earns an extra point by adding instruction-writing guidance ("complete and in the user's language") that the schema does not convey. It also states that form ids come from list_forms, which usefully corrects the schema's apparent copy-paste error describing form_id as "The website's id — from list_sites."

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?

"Change an EXISTING form by instruction" gives a specific verb (change) plus resource (existing form) and a mechanism (AI FormBuilder), with three concrete example instructions that pin down the granularity expected. It also names its siblings create_form and set_form_open so an agent can discriminate without opening another schema.

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

Usage Guidelines5/5

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

Explicit when-to-use (changing an existing form via natural-language instruction), explicit when-not-to (not for a new form, not for opening/closing), and it names the alternative tools for those cases. It even routes the agent to list_forms to obtain the required id, covering the prerequisite step.

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