Skip to main content
Glama

Forms Set Form Publish Settings

forms_set_form_publish_settings
Idempotent

Publish or unpublish a Google Form and open or close it to responses by setting its publish state, so you can control whether the form is live and accepting submissions.

Instructions

Publish or unpublish a Google Form, or open and close it for responses. For questions and form info use forms_batch_update_form (extended tool tier); the form_id comes from drive_list_files, search_workspace or forms_create_form. Returns status ok, form_id, published and accepting_responses as they stand after the call. Legacy forms, whose forms_get_form result has null published, do not support this.

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

Input Schema

NameRequiredDescriptionDefault
form_idYesGoogle Forms form ID: the Drive file ID, also the long ID in the form's edit URL (not the responder URL).
update_maskNoWhich publishSettings fields to write: 'publishState' or '*' (all fields, the default).*
publish_settingsYesForms API publishSettings object, e.g. {"publishState": {"isPublished": true, "isAcceptingResponses": true}}. Set both fields of publishState; isAcceptingResponses true with isPublished false is rejected.

Output Schema

NameRequiredDescriptionDefault
statusNoMachine-readable operation status.
form_idNo
publishedNo
accepting_responsesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false, openWorldHint=true), so the bar is lower. The description still adds real context: the legacy-form limitation and the post-call state returned. The state-validation rule (isAcceptingResponses=true with isPublished=false is rejected) lives in the schema rather than the description, which caps this slightly.

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?

Three sentences, front-loaded with the action, then the sibling routing, then the return shape and the legacy caveat. No filler; every clause carries operational information.

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?

With a rich nested-parameter schema at 100% coverage, an output schema, and full annotations, the description need not restate field semantics. It covers the remaining gaps an agent would hit: form_id provenance, sibling routing, and the legacy-form failure mode.

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 baseline is 3, but the description adds where form_id comes from (drive_list_files, search_workspace, forms_create_form), which the schema does not say. It does not add meaning beyond the schema for publish_settings or update_mask, whose semantics are already fully documented inline.

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?

States a specific verb set (publish/unpublish, open/close for responses) against a specific resource (a Google Form), and explicitly names forms_batch_update_form as the tool for questions and form info instead. An agent can distinguish it from siblings without opening the 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?

Gives explicit routing: use forms_batch_update_form for questions and form info, and obtain form_id from drive_list_files, search_workspace, or forms_create_form. It also states a clear exclusion — legacy forms whose forms_get_form result has null published are unsupported — which is exactly the when-not guidance an agent needs.

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