Google Tag Manager · Capability

Google Tag Manager API — Accounts

Google Tag Manager API — Accounts. 3 operations. Lead operation: List All Google Tag Manager Accounts. Self-contained Naftiko capability covering one Google Tag Manager business surface.

Run with Naftiko Google Tag ManagerAccounts

What You Can Do

GET
Listaccounts — List All Google Tag Manager Accounts
/v1/tagmanager/v2/accounts
GET
Getaccount — Get a Google Tag Manager Account
/v1/tagmanager/v2/{path}
PUT
Updateaccount — Update a Google Tag Manager Account
/v1/tagmanager/v2/{path}

MCP Tools

list-all-google-tag-manager

List All Google Tag Manager Accounts

read-only idempotent
get-google-tag-manager-account

Get a Google Tag Manager Account

read-only idempotent
update-google-tag-manager-account

Update a Google Tag Manager Account

idempotent

Capability Spec

api-v2-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Tag Manager API — Accounts
  description: 'Google Tag Manager API — Accounts. 3 operations. Lead operation: List All Google Tag Manager Accounts. Self-contained
    Naftiko capability covering one Google Tag Manager business surface.'
  tags:
  - Google Tag Manager
  - Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_TAG_MANAGER_API_KEY: GOOGLE_TAG_MANAGER_API_KEY
capability:
  consumes:
  - type: http
    namespace: api-v2-accounts
    baseUri: https://tagmanager.googleapis.com
    description: Google Tag Manager API — Accounts business capability. Self-contained, no shared references.
    resources:
    - name: tagmanager-v2-accounts
      path: /tagmanager/v2/accounts
      operations:
      - name: listaccounts
        method: GET
        description: List All Google Tag Manager Accounts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: pageToken
          in: query
          type: string
          description: Continuation token for fetching the next page of results.
        - name: includeGoogleTags
          in: query
          type: boolean
          description: Also retrieve accounts associated with Google Tag when true.
    - name: tagmanager-v2-path
      path: /tagmanager/v2/{path}
      operations:
      - name: getaccount
        method: GET
        description: Get a Google Tag Manager Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateaccount
        method: PUT
        description: Update a Google Tag Manager Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fingerprint
          in: query
          type: string
          description: When provided, this fingerprint must match the fingerprint of the account in storage.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GOOGLE_TAG_MANAGER_API_KEY}}'
  exposes:
  - type: rest
    namespace: api-v2-accounts-rest
    port: 8080
    description: REST adapter for Google Tag Manager API — Accounts. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/tagmanager/v2/accounts
      name: tagmanager-v2-accounts
      description: REST surface for tagmanager-v2-accounts.
      operations:
      - method: GET
        name: listaccounts
        description: List All Google Tag Manager Accounts
        call: api-v2-accounts.listaccounts
        with:
          pageToken: rest.pageToken
          includeGoogleTags: rest.includeGoogleTags
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tagmanager/v2/{path}
      name: tagmanager-v2-path
      description: REST surface for tagmanager-v2-path.
      operations:
      - method: GET
        name: getaccount
        description: Get a Google Tag Manager Account
        call: api-v2-accounts.getaccount
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateaccount
        description: Update a Google Tag Manager Account
        call: api-v2-accounts.updateaccount
        with:
          fingerprint: rest.fingerprint
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: api-v2-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Tag Manager API — Accounts. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-all-google-tag-manager
      description: List All Google Tag Manager Accounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: api-v2-accounts.listaccounts
      with:
        pageToken: tools.pageToken
        includeGoogleTags: tools.includeGoogleTags
      outputParameters:
      - type: object
        mapping: $.
    - name: get-google-tag-manager-account
      description: Get a Google Tag Manager Account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: api-v2-accounts.getaccount
      outputParameters:
      - type: object
        mapping: $.
    - name: update-google-tag-manager-account
      description: Update a Google Tag Manager Account
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: api-v2-accounts.updateaccount
      with:
        fingerprint: tools.fingerprint
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.