Google Places · Capability

Google Places API (New) — Places

Google Places API (New) — Places. 2 operations. Lead operation: Google Places Place Details. Self-contained Naftiko capability covering one Google Places business surface.

Run with Naftiko Google PlacesPlaces

What You Can Do

GET
Getplacedetails — Google Places Place Details
/v1/places/{placeid}
GET
Getplacephoto — Google Places Place Photo
/v1/places/{placeid}/photos/{photoreference}/media

MCP Tools

google-places-place-details

Google Places Place Details

read-only idempotent
google-places-place-photo

Google Places Place Photo

read-only idempotent

Capability Spec

openapi-places.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Places API (New) — Places
  description: 'Google Places API (New) — Places. 2 operations. Lead operation: Google Places Place Details. Self-contained
    Naftiko capability covering one Google Places business surface.'
  tags:
  - Google Places
  - Places
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_PLACES_API_KEY: GOOGLE_PLACES_API_KEY
capability:
  consumes:
  - type: http
    namespace: openapi-places
    baseUri: https://places.googleapis.com/v1
    description: Google Places API (New) — Places business capability. Self-contained, no shared references.
    resources:
    - name: places-placeId
      path: /places/{placeId}
      operations:
      - name: getplacedetails
        method: GET
        description: Google Places Place Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: placeId
          in: path
          type: string
          required: true
    - name: places-placeId-photos-photoReference-media
      path: /places/{placeId}/photos/{photoReference}/media
      operations:
      - name: getplacephoto
        method: GET
        description: Google Places Place Photo
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: placeId
          in: path
          type: string
          required: true
        - name: photoReference
          in: path
          type: string
          required: true
        - name: maxHeightPx
          in: query
          type: integer
        - name: maxWidthPx
          in: query
          type: integer
    authentication:
      type: apikey
      key: key
      value: '{{env.GOOGLE_PLACES_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: openapi-places-rest
    port: 8080
    description: REST adapter for Google Places API (New) — Places. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/places/{placeid}
      name: places-placeid
      description: REST surface for places-placeId.
      operations:
      - method: GET
        name: getplacedetails
        description: Google Places Place Details
        call: openapi-places.getplacedetails
        with:
          placeId: rest.placeId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/places/{placeid}/photos/{photoreference}/media
      name: places-placeid-photos-photoreference-media
      description: REST surface for places-placeId-photos-photoReference-media.
      operations:
      - method: GET
        name: getplacephoto
        description: Google Places Place Photo
        call: openapi-places.getplacephoto
        with:
          placeId: rest.placeId
          photoReference: rest.photoReference
          maxHeightPx: rest.maxHeightPx
          maxWidthPx: rest.maxWidthPx
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openapi-places-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Places API (New) — Places. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: google-places-place-details
      description: Google Places Place Details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-places.getplacedetails
      with:
        placeId: tools.placeId
      outputParameters:
      - type: object
        mapping: $.
    - name: google-places-place-photo
      description: Google Places Place Photo
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-places.getplacephoto
      with:
        placeId: tools.placeId
        photoReference: tools.photoReference
        maxHeightPx: tools.maxHeightPx
        maxWidthPx: tools.maxWidthPx
      outputParameters:
      - type: object
        mapping: $.