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 for the runtime auth flow. Inbound webhooks require your own OAuth app 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).
Tool parameters
- Find forms:
list_formssearches accessible forms, including shared drives, unless you setowned_onlytotrue.limitaccepts 1 to 1000 and defaults to 100. Passnullfor the firstpage_token, then usepage_info.next_page_tokento continue. Ifincomplete_searchis true, Drive did not search every drive. - Create and publish:
create_formtakes a title and optional Drive document title. To add a description, questions, or settings, callbatch_update_formafter creation. Setinclude_form_in_responsetotrueif you need the updated form. When callingset_publish_settings, provide bothis_publishedandis_accepting_responsesunderpublish_settings.publish_state. - Read submissions: Pass an RFC 3339 UTC timestamp filter such as
timestamp > 2026-09-01T00:00:00Ztolist_responses. Use>=to include the boundary.limitaccepts 1 to 5000 and defaults to 100. On later pages, passpage_info.next_page_tokenwith the same form ID and filter. Use the returned response IDs withget_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 and configure Google Cloud as follows:
- Enable Cloud Pub/Sub and billing in the Google Cloud project that owns your OAuth app. Webhooks don’t require additional user OAuth scopes.
- 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. - Set
pubsub_project_idto that project’s ID and supply the service account key JSON in the privatepubsub_service_account_secretregistration field. - Set
form_idsto a comma-separated list of IDs for forms the linked user can edit, orALLto 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.
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.