naftiko: 1.0.0-alpha2 info: label: HubSpot CRM Engagement Calls API — Basic Operations description: 'HubSpot CRM Engagement Calls API — Basic Operations. 5 operations. Lead operation: Hubspot List All Calls. Self-contained Naftiko capability covering one Hubspot business surface.' tags: - Hubspot - Basic Operations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HUBSPOT_API_KEY: HUBSPOT_API_KEY capability: consumes: - type: http namespace: engagement-calls-basic-operations baseUri: https://api.hubapi.com description: HubSpot CRM Engagement Calls API — Basic Operations business capability. Self-contained, no shared references. resources: - name: crm-v3-objects-calls path: /crm/v3/objects/calls operations: - name: listcalls method: GET description: Hubspot List All Calls outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createcall method: POST description: Hubspot Create a Call outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: crm-v3-objects-calls-callId path: /crm/v3/objects/calls/{callId} operations: - name: getcallbyid method: GET description: Hubspot Get a Call by Id outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecall method: PATCH description: Hubspot Update a Call outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: archivecall method: DELETE description: Hubspot Archive a Call outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.HUBSPOT_API_KEY}}' exposes: - type: rest namespace: engagement-calls-basic-operations-rest port: 8080 description: REST adapter for HubSpot CRM Engagement Calls API — Basic Operations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/crm/v3/objects/calls name: crm-v3-objects-calls description: REST surface for crm-v3-objects-calls. operations: - method: GET name: listcalls description: Hubspot List All Calls call: engagement-calls-basic-operations.listcalls outputParameters: - type: object mapping: $. - method: POST name: createcall description: Hubspot Create a Call call: engagement-calls-basic-operations.createcall with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/crm/v3/objects/calls/{callid} name: crm-v3-objects-calls-callid description: REST surface for crm-v3-objects-calls-callId. operations: - method: GET name: getcallbyid description: Hubspot Get a Call by Id call: engagement-calls-basic-operations.getcallbyid outputParameters: - type: object mapping: $. - method: PATCH name: updatecall description: Hubspot Update a Call call: engagement-calls-basic-operations.updatecall with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: archivecall description: Hubspot Archive a Call call: engagement-calls-basic-operations.archivecall outputParameters: - type: object mapping: $. - type: mcp namespace: engagement-calls-basic-operations-mcp port: 9090 transport: http description: MCP adapter for HubSpot CRM Engagement Calls API — Basic Operations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: hubspot-list-all-calls description: Hubspot List All Calls hints: readOnly: true destructive: false idempotent: true call: engagement-calls-basic-operations.listcalls outputParameters: - type: object mapping: $. - name: hubspot-create-call description: Hubspot Create a Call hints: readOnly: false destructive: false idempotent: false call: engagement-calls-basic-operations.createcall with: body: tools.body outputParameters: - type: object mapping: $. - name: hubspot-get-call-id description: Hubspot Get a Call by Id hints: readOnly: true destructive: false idempotent: true call: engagement-calls-basic-operations.getcallbyid outputParameters: - type: object mapping: $. - name: hubspot-update-call description: Hubspot Update a Call hints: readOnly: false destructive: false idempotent: true call: engagement-calls-basic-operations.updatecall with: body: tools.body outputParameters: - type: object mapping: $. - name: hubspot-archive-call description: Hubspot Archive a Call hints: readOnly: false destructive: true idempotent: true call: engagement-calls-basic-operations.archivecall outputParameters: - type: object mapping: $.