Skip to main content
Glama

Publish form

publish_form
DestructiveIdempotent

Publish a draft native form so clients can receive assignments and respond in the portal. Reads the draft and publishes it unchanged; edit questions in Settings > Forms first if needed. A published form is locked: its title and questions can't change, and publishing it again fails. A form with a signature question is refused: signatures belong in agreements, sent from the gig. CRM managers only. Runs on the first call; there is no confirmation step.

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>"
    },
    "name": "publish_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
form_idYesform id from list_forms
organization_idNoorganization to act in, an id from get_me; omit to use your active organization

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { title, items [{ kind, id, markdown, file, missing, label, type, required, and 5 more fields }], preview_ignored, revision, published, terms, merge_fields [{ key, label, needs_gig }] } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the draft is published unchanged, the form becomes locked, republishing fails, signature forms are refused, permissions are restricted to CRM managers, and there is no confirmation step. This is unusually rich behavioral context for a destructive mutation.

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?

The description is compact and front-loaded: it states the action first, then the lock behavior, refusal cases, permission scope, and lack of confirmation. Each sentence adds material information without repetition.

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

Completeness5/5

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

For a destructive, non-idempotent-in-practice publish operation with an output schema, the description covers prerequisites, mutation effects, failure cases, authorization, and the absence of a confirmation step. Nothing essential for calling it correctly is missing.

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 in the input schema. The description does not add format or usage detail for form_id or organization_id beyond what the schema provides, so the baseline of 3 applies.

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 uses a specific verb and resource: publish a draft native form so clients can receive assignments and respond. It clearly distinguishes publishing from editing or saving the form and states the user-visible outcome.

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 explains when to use the tool and gives important exclusions: edit questions first, signature questions are refused, and CRM managers only. It does not explicitly route to a sibling such as save_form, but the prerequisites and restrictions are clear.

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.