Google Apps Script · Capability

Google Apps Script API — Scripts

Google Apps Script API — Scripts. 1 operations. Lead operation: Google Apps Script Run Script. Self-contained Naftiko capability covering one Google Apps Script business surface.

Run with Naftiko Google Apps ScriptScripts

What You Can Do

POST
Runscript — Google Apps Script Run Script
/v1/v1/scripts/scriptid-run

MCP Tools

google-apps-script-run-script

Google Apps Script Run Script

Capability Spec

openapi-scripts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Apps Script API — Scripts
  description: 'Google Apps Script API — Scripts. 1 operations. Lead operation: Google Apps Script Run Script. Self-contained
    Naftiko capability covering one Google Apps Script business surface.'
  tags:
  - Google Apps Script
  - Scripts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_APPS_SCRIPT_API_KEY: GOOGLE_APPS_SCRIPT_API_KEY
capability:
  consumes:
  - type: http
    namespace: openapi-scripts
    baseUri: https://script.googleapis.com
    description: Google Apps Script API — Scripts business capability. Self-contained, no shared references.
    resources:
    - name: v1-scripts-scriptId}:run
      path: /v1/scripts/{scriptId}:run
      operations:
      - name: runscript
        method: POST
        description: Google Apps Script Run Script
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: scriptId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: openapi-scripts-rest
    port: 8080
    description: REST adapter for Google Apps Script API — Scripts. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/scripts/scriptid-run
      name: v1-scripts-scriptid-run
      description: REST surface for v1-scripts-scriptId}:run.
      operations:
      - method: POST
        name: runscript
        description: Google Apps Script Run Script
        call: openapi-scripts.runscript
        with:
          scriptId: rest.scriptId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openapi-scripts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Apps Script API — Scripts. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: google-apps-script-run-script
      description: Google Apps Script Run Script
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openapi-scripts.runscript
      with:
        scriptId: tools.scriptId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.