Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration.
VariableRequiredDescription
NETLIFY_AUTH_TOKENYesNetlify personal access token (User settings > Applications > Personal access tokens) Docs.

Setup

  1. Sign in to Netlify: Go to https://app.netlify.com and sign in (the free Starter plan with one deployed site is sufficient for testing).
  2. Create a personal access token: Open User settings > Applications > Personal access tokens (https://app.netlify.com/user/applications#personal-access-tokens), select New access token, name it, and set an expiration.
  3. Set the environment variable: Add the token to your .env as NETLIFY_AUTH_TOKEN=…
  4. Verify access: Run List Sites. Site IDs accept either the UUID or the site’s domain (e.g. my-site.netlify.app).
  • Tokens are sent as ‘Authorization: Bearer <token>’
  • List endpoints paginate with page/per_page (max 100) and return next/prev links in the Link response header
  • Triggering builds is rate limited (3 per minute, 100 per day)
Provider API reference: https://docs.netlify.com/api/get-started/

Tools

ToolAccessDescription
List SitesReadList all sites the authenticated user has access to
Get SiteReadGet a site by ID or custom domain
List DeploysReadList deploys for a site
Get DeployReadGet a deploy by ID
Trigger BuildWriteTrigger a new build of a site from its linked repository
List Form SubmissionsReadList verified form submissions across all forms of a site

Example prompts

  • List the most recent Netlify deploys for my site and summarize their states, including any error messages.
  • Show the latest form submissions for my Netlify site and summarize who submitted what.