Block · Capability

Square API — Merchants

Square API — Merchants. 1 operations. Lead operation: Block Square List Locations. Self-contained Naftiko capability covering one Block business surface.

Run with Naftiko BlockMerchants

What You Can Do

GET
Listlocations — Block Square List Locations
/v1/locations

MCP Tools

block-square-list-locations

Block Square List Locations

read-only idempotent

Capability Spec

square-merchants.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Square API — Merchants
  description: 'Square API — Merchants. 1 operations. Lead operation: Block Square List Locations. Self-contained Naftiko
    capability covering one Block business surface.'
  tags:
  - Block
  - Merchants
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BLOCK_API_KEY: BLOCK_API_KEY
capability:
  consumes:
  - type: http
    namespace: square-merchants
    baseUri: https://connect.squareup.com/v2
    description: Square API — Merchants business capability. Self-contained, no shared references.
    resources:
    - name: locations
      path: /locations
      operations:
      - name: listlocations
        method: GET
        description: Block Square List Locations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.BLOCK_API_KEY}}'
  exposes:
  - type: rest
    namespace: square-merchants-rest
    port: 8080
    description: REST adapter for Square API — Merchants. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/locations
      name: locations
      description: REST surface for locations.
      operations:
      - method: GET
        name: listlocations
        description: Block Square List Locations
        call: square-merchants.listlocations
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: square-merchants-mcp
    port: 9090
    transport: http
    description: MCP adapter for Square API — Merchants. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: block-square-list-locations
      description: Block Square List Locations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: square-merchants.listlocations
      outputParameters:
      - type: object
        mapping: $.