Foursquare · Capability

Foursquare Places API — details

Foursquare Places API — details. 1 operations. Lead operation: Place details. Self-contained Naftiko capability covering one Foursquare business surface.

Run with Naftiko Foursquaredetails

What You Can Do

GET
Getplace — Place details
/v1/places/{fsq-id}

MCP Tools

place-details

Place details

read-only idempotent

Capability Spec

places-details.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Foursquare Places API — details
  description: 'Foursquare Places API — details. 1 operations. Lead operation: Place details. Self-contained Naftiko capability
    covering one Foursquare business surface.'
  tags:
  - Foursquare
  - details
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FOURSQUARE_API_KEY: FOURSQUARE_API_KEY
capability:
  consumes:
  - type: http
    namespace: places-details
    baseUri: https://places-api.foursquare.com
    description: Foursquare Places API — details business capability. Self-contained, no shared references.
    resources:
    - name: places-fsq_id
      path: /places/{fsq_id}
      operations:
      - name: getplace
        method: GET
        description: Place details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fsq_id
          in: path
          type: string
          required: true
        - name: fields
          in: query
          type: string
          description: Comma-separated list of fields to include.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.FOURSQUARE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: places-details-rest
    port: 8080
    description: REST adapter for Foursquare Places API — details. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/places/{fsq-id}
      name: places-fsq-id
      description: REST surface for places-fsq_id.
      operations:
      - method: GET
        name: getplace
        description: Place details
        call: places-details.getplace
        with:
          fsq_id: rest.fsq_id
          fields: rest.fields
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: places-details-mcp
    port: 9090
    transport: http
    description: MCP adapter for Foursquare Places API — details. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: place-details
      description: Place details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: places-details.getplace
      with:
        fsq_id: tools.fsq_id
        fields: tools.fields
      outputParameters:
      - type: object
        mapping: $.