> This page is for Workforce.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Google Forms

Use Google Forms to find forms in Drive, create or update a questionnaire, or read submissions from a specific form.

**Authentication:** OAuth. See [Magic Link](/merge-agent-handler/features/magic-link) for the runtime auth flow. Inbound webhooks require [your own OAuth app](/merge-agent-handler/admin-setup/add-oauth-credentials) and Cloud Pub/Sub in the same Google Cloud project.

## Sample use cases

* Find the customer feedback form you own in Drive.
* Add an optional short-answer question to your onboarding survey.
* Read submissions received after September 1, 2026 at 00:00 UTC.

## Available Tools

Use the editable form ID returned by `list_forms` or `create_form`, or copy it from the form's `/forms/d/ID/edit` URL. Don't use the ID in the responder URL (`/forms/d/e/ID/viewform`).

#### batch_update_form

Apply a batch of structural updates to a form (add/update/delete/move items, update form info or settings) in a single atomic call.

#### create_form

Create a new Google Form with a title and optional Drive document title.

#### create_watch

Create a watch that notifies a Pub/Sub topic when a form changes.

#### delete_watch

Delete a watch from a form, stopping its notifications.

#### get_form

Retrieve a Google Form by ID, including its info, settings, publishSettings, and items (questions).

#### get_response

Retrieve a single form submission by ID, including respondent email (if collected), timestamps, quiz score, and answers.

#### list_forms

Find accessible, non-trashed Google Forms, including shared files and shared drives by default.

#### list_responses

List submissions to a form, with pagination and an optional server-side timestamp filter.

#### list_watches

List all watches registered on a form. Each watch notifies a Pub/Sub topic on SCHEMA or RESPONSES events.

#### renew_watch

Renew a watch to extend its expiration and reset an error state back to active.

#### set_publish_settings

Publish or unpublish a form and control whether it accepts responses.

### Tool parameters

* **Find forms:** `list_forms` searches accessible forms, including shared drives, unless you set `owned_only` to `true`. `limit` accepts 1 to 1000 and defaults to 100. Pass `null` for the first `page_token`, then use `page_info.next_page_token` to continue. If `incomplete_search` is true, Drive did not search every drive.
* **Create and publish:** `create_form` takes a title and optional Drive document title. To add a description, questions, or settings, call `batch_update_form` after creation. Set `include_form_in_response` to `true` if you need the updated form. When calling `set_publish_settings`, provide both `is_published` and `is_accepting_responses` under `publish_settings.publish_state`.
* **Read submissions:** Pass an RFC 3339 UTC timestamp filter such as `timestamp > 2026-09-01T00:00:00Z` to `list_responses`. Use `>=` to include the boundary. `limit` accepts 1 to 5000 and defaults to 100. On later pages, pass `page_info.next_page_token` with the same form ID and filter. Use the returned response IDs with `get_response`.

## Inbound webhooks

Google Forms sends schema and response notifications through Cloud Pub/Sub. To forward these events to your application, follow the [inbound webhook setup](/merge-agent-handler/advanced/webhooks#inbound-webhooks) and configure Google Cloud as follows:

1. Enable Cloud Pub/Sub and billing in the Google Cloud project that owns [your OAuth app](/merge-agent-handler/admin-setup/add-oauth-credentials). Webhooks don't require additional user OAuth scopes.
2. Create a service account that can create and delete topics, attach subscriptions to topics, read and set topic IAM policies, and create, read, update, and delete subscriptions. Give it Service Account User (`roles/iam.serviceAccountUser`) on itself so it can configure authenticated push. Make sure the Pub/Sub service agent can mint tokens for that account. See [Google's authenticated push setup](https://docs.cloud.google.com/pubsub/docs/authenticate-push-subscriptions).
3. Set `pubsub_project_id` to that project's ID and supply the service account key JSON in the private `pubsub_service_account_secret` registration field.
4. Set `form_ids` to a comma-separated list of IDs for forms the linked user can edit, or `ALL` to select the user's owned, non-trashed forms. Registration rejects selections of more than 25 forms.

Registration creates a topic and an authenticated push subscription, grants Google Forms permission to publish to the topic, and creates a schema and a response watch per form. Refresh renews the watches on that registration's topic. Watches expire after seven days if not renewed. If Google reports a watch conflict on another topic, use `list_watches` to identify it and `delete_watch` to remove it if it is no longer needed.

| Event               | Payload                                                                                                                                                                                                                                                                           |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `schema.updated`    | The current form.                                                                                                                                                                                                                                                                 |
| `responses.changed` | A batch of new or edited responses from a five-minute lookback. If a batch reaches the ten-page limit and more pages remain, pass the fields in `response_page` and the event's `form_id` to `list_responses` to continue. Agent Handler doesn't fetch those pages automatically. |

Agent Handler doesn't persist a response cursor between deliveries, so delayed notifications can replay or miss submissions. Deduplicate by response ID and last submission time, and reconcile with `list_responses` if you need a complete record.

Disabling the webhook doesn't remove Google Cloud resources automatically. Delete the watches with `delete_watch` or let them expire, then delete the subscription and topic in Cloud Pub/Sub.