Amazon Athena · Capability

Amazon Athena API — Named Queries

Amazon Athena API — Named Queries. 5 operations. Lead operation: Amazon Athena Batch Get Named Query. Self-contained Naftiko capability covering one Amazon Athena business surface.

Run with Naftiko Amazon AthenaNamed Queries

What You Can Do

POST
Batchgetnamedquery — Amazon Athena Batch Get Named Query
/v1/action-batchgetnamedquery
POST
Createnamedquery — Amazon Athena Create Named Query
/v1/action-createnamedquery
POST
Deletenamedquery — Amazon Athena Delete Named Query
/v1/action-deletenamedquery
POST
Getnamedquery — Amazon Athena Get Named Query
/v1/action-getnamedquery
POST
Listnamedqueries — Amazon Athena List Named Queries
/v1/action-listnamedqueries

MCP Tools

amazon-athena-batch-get-named

Amazon Athena Batch Get Named Query

read-only
amazon-athena-create-named-query

Amazon Athena Create Named Query

read-only
amazon-athena-delete-named-query

Amazon Athena Delete Named Query

read-only
amazon-athena-get-named-query

Amazon Athena Get Named Query

read-only
amazon-athena-list-named-queries

Amazon Athena List Named Queries

read-only

Capability Spec

amazon-athena-named-queries.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amazon Athena API — Named Queries
  description: 'Amazon Athena API — Named Queries. 5 operations. Lead operation: Amazon Athena Batch Get Named Query. Self-contained
    Naftiko capability covering one Amazon Athena business surface.'
  tags:
  - Amazon Athena
  - Named Queries
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_ATHENA_API_KEY: AMAZON_ATHENA_API_KEY
capability:
  consumes:
  - type: http
    namespace: amazon-athena-named-queries
    baseUri: https://athena.us-east-1.amazonaws.com
    description: Amazon Athena API — Named Queries business capability. Self-contained, no shared references.
    resources:
    - name: ?Action=BatchGetNamedQuery
      path: /?Action=BatchGetNamedQuery
      operations:
      - name: batchgetnamedquery
        method: POST
        description: Amazon Athena Batch Get Named Query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ?Action=CreateNamedQuery
      path: /?Action=CreateNamedQuery
      operations:
      - name: createnamedquery
        method: POST
        description: Amazon Athena Create Named Query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ?Action=DeleteNamedQuery
      path: /?Action=DeleteNamedQuery
      operations:
      - name: deletenamedquery
        method: POST
        description: Amazon Athena Delete Named Query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ?Action=GetNamedQuery
      path: /?Action=GetNamedQuery
      operations:
      - name: getnamedquery
        method: POST
        description: Amazon Athena Get Named Query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ?Action=ListNamedQueries
      path: /?Action=ListNamedQueries
      operations:
      - name: listnamedqueries
        method: POST
        description: Amazon Athena List Named Queries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.AMAZON_ATHENA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: amazon-athena-named-queries-rest
    port: 8080
    description: REST adapter for Amazon Athena API — Named Queries. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/action-batchgetnamedquery
      name: action-batchgetnamedquery
      description: REST surface for ?Action=BatchGetNamedQuery.
      operations:
      - method: POST
        name: batchgetnamedquery
        description: Amazon Athena Batch Get Named Query
        call: amazon-athena-named-queries.batchgetnamedquery
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/action-createnamedquery
      name: action-createnamedquery
      description: REST surface for ?Action=CreateNamedQuery.
      operations:
      - method: POST
        name: createnamedquery
        description: Amazon Athena Create Named Query
        call: amazon-athena-named-queries.createnamedquery
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/action-deletenamedquery
      name: action-deletenamedquery
      description: REST surface for ?Action=DeleteNamedQuery.
      operations:
      - method: POST
        name: deletenamedquery
        description: Amazon Athena Delete Named Query
        call: amazon-athena-named-queries.deletenamedquery
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/action-getnamedquery
      name: action-getnamedquery
      description: REST surface for ?Action=GetNamedQuery.
      operations:
      - method: POST
        name: getnamedquery
        description: Amazon Athena Get Named Query
        call: amazon-athena-named-queries.getnamedquery
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/action-listnamedqueries
      name: action-listnamedqueries
      description: REST surface for ?Action=ListNamedQueries.
      operations:
      - method: POST
        name: listnamedqueries
        description: Amazon Athena List Named Queries
        call: amazon-athena-named-queries.listnamedqueries
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: amazon-athena-named-queries-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amazon Athena API — Named Queries. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: amazon-athena-batch-get-named
      description: Amazon Athena Batch Get Named Query
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: amazon-athena-named-queries.batchgetnamedquery
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-athena-create-named-query
      description: Amazon Athena Create Named Query
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: amazon-athena-named-queries.createnamedquery
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-athena-delete-named-query
      description: Amazon Athena Delete Named Query
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: amazon-athena-named-queries.deletenamedquery
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-athena-get-named-query
      description: Amazon Athena Get Named Query
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: amazon-athena-named-queries.getnamedquery
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-athena-list-named-queries
      description: Amazon Athena List Named Queries
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: amazon-athena-named-queries.listnamedqueries
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.