Ampersand · Capability

Ampersand public API — User

Ampersand public API — User. 2 operations. Lead operation: Ampersand Accept an Invite. Self-contained Naftiko capability covering one Ampersand business surface.

Run with Naftiko AmpersandUser

What You Can Do

POST
Acceptinvite — Ampersand Accept an Invite
/v1/invites-accept
GET
Getmyinfo — Ampersand Get Information About the Current User
/v1/my-info

MCP Tools

ampersand-accept-invite

Ampersand Accept an Invite

ampersand-get-information-about-current

Ampersand Get Information About the Current User

read-only idempotent

Capability Spec

ampersand-user.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Ampersand public API — User
  description: 'Ampersand public API — User. 2 operations. Lead operation: Ampersand Accept an Invite. Self-contained Naftiko
    capability covering one Ampersand business surface.'
  tags:
  - Ampersand
  - User
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMPERSAND_API_KEY: AMPERSAND_API_KEY
capability:
  consumes:
  - type: http
    namespace: ampersand-user
    baseUri: https://api.withampersand.com/v1
    description: Ampersand public API — User business capability. Self-contained, no shared references.
    resources:
    - name: invites:accept
      path: /invites:accept
      operations:
      - name: acceptinvite
        method: POST
        description: Ampersand Accept an Invite
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: my-info
      path: /my-info
      operations:
      - name: getmyinfo
        method: GET
        description: Ampersand Get Information About the Current User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.AMPERSAND_API_KEY}}'
  exposes:
  - type: rest
    namespace: ampersand-user-rest
    port: 8080
    description: REST adapter for Ampersand public API — User. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/invites-accept
      name: invites-accept
      description: REST surface for invites:accept.
      operations:
      - method: POST
        name: acceptinvite
        description: Ampersand Accept an Invite
        call: ampersand-user.acceptinvite
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/my-info
      name: my-info
      description: REST surface for my-info.
      operations:
      - method: GET
        name: getmyinfo
        description: Ampersand Get Information About the Current User
        call: ampersand-user.getmyinfo
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ampersand-user-mcp
    port: 9090
    transport: http
    description: MCP adapter for Ampersand public API — User. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: ampersand-accept-invite
      description: Ampersand Accept an Invite
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ampersand-user.acceptinvite
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: ampersand-get-information-about-current
      description: Ampersand Get Information About the Current User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ampersand-user.getmyinfo
      outputParameters:
      - type: object
        mapping: $.