Amazon Polly · Capability

Amazon Polly API — Lexicons

Amazon Polly API — Lexicons. 4 operations. Lead operation: Amazon Polly List Pronunciation Lexicons. Self-contained Naftiko capability covering one Amazon Polly business surface.

Run with Naftiko Amazon PollyLexicons

What You Can Do

GET
Listlexicons — Amazon Polly List Pronunciation Lexicons
/v1/v1/lexicons
PUT
Putlexicon — Amazon Polly Store a Pronunciation Lexicon
/v1/v1/lexicons/{lexiconname}
GET
Getlexicon — Amazon Polly Get a Pronunciation Lexicon
/v1/v1/lexicons/{lexiconname}
DELETE
Deletelexicon — Amazon Polly Delete a Pronunciation Lexicon
/v1/v1/lexicons/{lexiconname}

MCP Tools

amazon-polly-list-pronunciation-lexicons

Amazon Polly List Pronunciation Lexicons

read-only idempotent
amazon-polly-store-pronunciation-lexicon

Amazon Polly Store a Pronunciation Lexicon

idempotent
amazon-polly-get-pronunciation-lexicon

Amazon Polly Get a Pronunciation Lexicon

read-only idempotent
amazon-polly-delete-pronunciation-lexicon

Amazon Polly Delete a Pronunciation Lexicon

idempotent

Capability Spec

amazon-polly-lexicons.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amazon Polly API — Lexicons
  description: 'Amazon Polly API — Lexicons. 4 operations. Lead operation: Amazon Polly List Pronunciation Lexicons. Self-contained
    Naftiko capability covering one Amazon Polly business surface.'
  tags:
  - Amazon Polly
  - Lexicons
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_POLLY_API_KEY: AMAZON_POLLY_API_KEY
capability:
  consumes:
  - type: http
    namespace: amazon-polly-lexicons
    baseUri: https://polly.{region}.amazonaws.com
    description: Amazon Polly API — Lexicons business capability. Self-contained, no shared references.
    resources:
    - name: v1-lexicons
      path: /v1/lexicons
      operations:
      - name: listlexicons
        method: GET
        description: Amazon Polly List Pronunciation Lexicons
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-lexicons-LexiconName
      path: /v1/lexicons/{LexiconName}
      operations:
      - name: putlexicon
        method: PUT
        description: Amazon Polly Store a Pronunciation Lexicon
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: LexiconName
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: getlexicon
        method: GET
        description: Amazon Polly Get a Pronunciation Lexicon
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: LexiconName
          in: path
          type: string
          required: true
      - name: deletelexicon
        method: DELETE
        description: Amazon Polly Delete a Pronunciation Lexicon
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: LexiconName
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.AMAZON_POLLY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: amazon-polly-lexicons-rest
    port: 8080
    description: REST adapter for Amazon Polly API — Lexicons. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/lexicons
      name: v1-lexicons
      description: REST surface for v1-lexicons.
      operations:
      - method: GET
        name: listlexicons
        description: Amazon Polly List Pronunciation Lexicons
        call: amazon-polly-lexicons.listlexicons
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/lexicons/{lexiconname}
      name: v1-lexicons-lexiconname
      description: REST surface for v1-lexicons-LexiconName.
      operations:
      - method: PUT
        name: putlexicon
        description: Amazon Polly Store a Pronunciation Lexicon
        call: amazon-polly-lexicons.putlexicon
        with:
          LexiconName: rest.LexiconName
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getlexicon
        description: Amazon Polly Get a Pronunciation Lexicon
        call: amazon-polly-lexicons.getlexicon
        with:
          LexiconName: rest.LexiconName
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletelexicon
        description: Amazon Polly Delete a Pronunciation Lexicon
        call: amazon-polly-lexicons.deletelexicon
        with:
          LexiconName: rest.LexiconName
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: amazon-polly-lexicons-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amazon Polly API — Lexicons. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: amazon-polly-list-pronunciation-lexicons
      description: Amazon Polly List Pronunciation Lexicons
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: amazon-polly-lexicons.listlexicons
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-polly-store-pronunciation-lexicon
      description: Amazon Polly Store a Pronunciation Lexicon
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: amazon-polly-lexicons.putlexicon
      with:
        LexiconName: tools.LexiconName
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-polly-get-pronunciation-lexicon
      description: Amazon Polly Get a Pronunciation Lexicon
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: amazon-polly-lexicons.getlexicon
      with:
        LexiconName: tools.LexiconName
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-polly-delete-pronunciation-lexicon
      description: Amazon Polly Delete a Pronunciation Lexicon
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: amazon-polly-lexicons.deletelexicon
      with:
        LexiconName: tools.LexiconName
      outputParameters:
      - type: object
        mapping: $.