VTEX · Capability

VTex Logistics API — SLA

VTex Logistics API — SLA. 1 operations. Lead operation: VTex Calculate SLA. Self-contained Naftiko capability covering one Vtex business surface.

Run with Naftiko VtexSLA

What You Can Do

POST
Calculatesla — VTex Calculate SLA
/v1/api/logistics/pvt/shipping/calculate

MCP Tools

vtex-calculate-sla

VTex Calculate SLA

Capability Spec

logistics-sla.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: VTex Logistics API — SLA
  description: 'VTex Logistics API — SLA. 1 operations. Lead operation: VTex Calculate SLA. Self-contained Naftiko capability
    covering one Vtex business surface.'
  tags:
  - Vtex
  - SLA
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    VTEX_API_KEY: VTEX_API_KEY
capability:
  consumes:
  - type: http
    namespace: logistics-sla
    baseUri: https://{accountName}.{environment}.com.br
    description: VTex Logistics API — SLA business capability. Self-contained, no shared references.
    resources:
    - name: api-logistics-pvt-shipping-calculate
      path: /api/logistics/pvt/shipping/calculate
      operations:
      - name: calculatesla
        method: POST
        description: VTex Calculate SLA
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
          description: Type of the content being sent.
          required: true
        - name: Accept
          in: header
          type: string
          description: HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: X-VTEX-API-AppKey
      value: '{{env.VTEX_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: logistics-sla-rest
    port: 8080
    description: REST adapter for VTex Logistics API — SLA. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/logistics/pvt/shipping/calculate
      name: api-logistics-pvt-shipping-calculate
      description: REST surface for api-logistics-pvt-shipping-calculate.
      operations:
      - method: POST
        name: calculatesla
        description: VTex Calculate SLA
        call: logistics-sla.calculatesla
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: logistics-sla-mcp
    port: 9090
    transport: http
    description: MCP adapter for VTex Logistics API — SLA. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: vtex-calculate-sla
      description: VTex Calculate SLA
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: logistics-sla.calculatesla
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.