naftiko: 1.0.0-alpha2 info: label: Vapi API — Squads description: 'Vapi API — Squads. 5 operations. Lead operation: Create Squad. Self-contained Naftiko capability covering one Vapi business surface.' tags: - Vapi - Squads created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: VAPI_API_KEY: VAPI_API_KEY capability: consumes: - type: http namespace: vapi-squads baseUri: https://api.vapi.ai description: Vapi API — Squads business capability. Self-contained, no shared references. resources: - name: squad path: /squad operations: - name: squadcontrollercreate method: POST description: Create Squad outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: squadcontrollerfindall method: GET description: List Squads outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: number description: This is the maximum number of items to return. Defaults to 100. - name: createdAtGt in: query type: string description: This will return items where the createdAt is greater than the specified value. - name: createdAtLt in: query type: string description: This will return items where the createdAt is less than the specified value. - name: createdAtGe in: query type: string description: This will return items where the createdAt is greater than or equal to the specified value. - name: createdAtLe in: query type: string description: This will return items where the createdAt is less than or equal to the specified value. - name: updatedAtGt in: query type: string description: This will return items where the updatedAt is greater than the specified value. - name: updatedAtLt in: query type: string description: This will return items where the updatedAt is less than the specified value. - name: updatedAtGe in: query type: string description: This will return items where the updatedAt is greater than or equal to the specified value. - name: updatedAtLe in: query type: string description: This will return items where the updatedAt is less than or equal to the specified value. - name: squad-id path: /squad/{id} operations: - name: squadcontrollerfindone method: GET description: Get Squad outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: squadcontrollerupdate method: PATCH description: Update Squad outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: squadcontrollerremove method: DELETE description: Delete Squad outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true authentication: type: bearer token: '{{env.VAPI_API_KEY}}' exposes: - type: rest namespace: vapi-squads-rest port: 8080 description: REST adapter for Vapi API — Squads. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/squad name: squad description: REST surface for squad. operations: - method: POST name: squadcontrollercreate description: Create Squad call: vapi-squads.squadcontrollercreate with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: squadcontrollerfindall description: List Squads call: vapi-squads.squadcontrollerfindall with: limit: rest.limit createdAtGt: rest.createdAtGt createdAtLt: rest.createdAtLt createdAtGe: rest.createdAtGe createdAtLe: rest.createdAtLe updatedAtGt: rest.updatedAtGt updatedAtLt: rest.updatedAtLt updatedAtGe: rest.updatedAtGe updatedAtLe: rest.updatedAtLe outputParameters: - type: object mapping: $. - path: /v1/squad/{id} name: squad-id description: REST surface for squad-id. operations: - method: GET name: squadcontrollerfindone description: Get Squad call: vapi-squads.squadcontrollerfindone with: id: rest.id outputParameters: - type: object mapping: $. - method: PATCH name: squadcontrollerupdate description: Update Squad call: vapi-squads.squadcontrollerupdate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: squadcontrollerremove description: Delete Squad call: vapi-squads.squadcontrollerremove with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: vapi-squads-mcp port: 9090 transport: http description: MCP adapter for Vapi API — Squads. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-squad description: Create Squad hints: readOnly: false destructive: false idempotent: false call: vapi-squads.squadcontrollercreate with: body: tools.body outputParameters: - type: object mapping: $. - name: list-squads description: List Squads hints: readOnly: true destructive: false idempotent: true call: vapi-squads.squadcontrollerfindall with: limit: tools.limit createdAtGt: tools.createdAtGt createdAtLt: tools.createdAtLt createdAtGe: tools.createdAtGe createdAtLe: tools.createdAtLe updatedAtGt: tools.updatedAtGt updatedAtLt: tools.updatedAtLt updatedAtGe: tools.updatedAtGe updatedAtLe: tools.updatedAtLe outputParameters: - type: object mapping: $. - name: get-squad description: Get Squad hints: readOnly: true destructive: false idempotent: true call: vapi-squads.squadcontrollerfindone with: id: tools.id outputParameters: - type: object mapping: $. - name: update-squad description: Update Squad hints: readOnly: false destructive: false idempotent: true call: vapi-squads.squadcontrollerupdate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: delete-squad description: Delete Squad hints: readOnly: false destructive: true idempotent: true call: vapi-squads.squadcontrollerremove with: id: tools.id outputParameters: - type: object mapping: $.