Apache Pig · Capability

Apache Pig API — Scripts

Apache Pig API — Scripts. 1 operations. Lead operation: Apache Pig Validate Script. Self-contained Naftiko capability covering one Apache Pig business surface.

Run with Naftiko Apache PigScripts

What You Can Do

POST
Validatescript — Apache Pig Validate Script
/v1/validate

MCP Tools

apache-pig-validate-script

Apache Pig Validate Script

read-only

Capability Spec

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