naftiko: 1.0.0-alpha2 info: label: Apigee API Hub API — Specs description: 'Apigee API Hub API — Specs. 7 operations. Lead operation: Apigee List API Specifications. Self-contained Naftiko capability covering one Apigee business surface.' tags: - Apigee - Specs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: APIGEE_API_KEY: APIGEE_API_KEY capability: consumes: - type: http namespace: api-hub-specs baseUri: https://apihub.googleapis.com/v1 description: Apigee API Hub API — Specs business capability. Self-contained, no shared references. resources: - name: projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs path: /projects/{projectId}/locations/{locationId}/apis/{apiId}/versions/{versionId}/specs operations: - name: listapispecs method: GET description: Apigee List API Specifications outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: filter in: query type: string description: Filter expression to narrow the results. - name: createapispec method: POST description: Apigee Create an API Specification outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: specId in: query type: string description: Required. The ID to use for the spec resource. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs-spec path: /projects/{projectId}/locations/{locationId}/apis/{apiId}/versions/{versionId}/specs/{specId} operations: - name: getapispec method: GET description: Apigee Get an API Specification outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateapispec method: PATCH description: Apigee Update an API Specification outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: updateMask in: query type: string description: Required. Comma-separated list of fields to update. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deleteapispec method: DELETE description: Apigee Delete an API Specification outputRawFormat: json outputParameters: - name: result type: object value: $. - name: projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs-spec path: /projects/{projectId}/locations/{locationId}/apis/{apiId}/versions/{versionId}/specs/{specId}:getContents operations: - name: getapispeccontents method: GET description: Apigee Get API Specification Contents outputRawFormat: json outputParameters: - name: result type: object value: $. - name: projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs-spec path: /projects/{projectId}/locations/{locationId}/apis/{apiId}/versions/{versionId}/specs/{specId}:lint operations: - name: lintapispec method: POST description: Apigee Lint an API Specification outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.APIGEE_API_KEY}}' exposes: - type: rest namespace: api-hub-specs-rest port: 8080 description: REST adapter for Apigee API Hub API — Specs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs name: projects-projectid-locations-locationid-apis-apiid-versions-versionid-specs description: REST surface for projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs. operations: - method: GET name: listapispecs description: Apigee List API Specifications call: api-hub-specs.listapispecs with: filter: rest.filter outputParameters: - type: object mapping: $. - method: POST name: createapispec description: Apigee Create an API Specification call: api-hub-specs.createapispec with: specId: rest.specId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs/{specid} name: projects-projectid-locations-locationid-apis-apiid-versions-versionid-specs-spec description: REST surface for projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs-spec. operations: - method: GET name: getapispec description: Apigee Get an API Specification call: api-hub-specs.getapispec outputParameters: - type: object mapping: $. - method: PATCH name: updateapispec description: Apigee Update an API Specification call: api-hub-specs.updateapispec with: updateMask: rest.updateMask body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteapispec description: Apigee Delete an API Specification call: api-hub-specs.deleteapispec outputParameters: - type: object mapping: $. - path: /v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs/specid-getcontents name: projects-projectid-locations-locationid-apis-apiid-versions-versionid-specs-spec description: REST surface for projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs-spec. operations: - method: GET name: getapispeccontents description: Apigee Get API Specification Contents call: api-hub-specs.getapispeccontents outputParameters: - type: object mapping: $. - path: /v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs/specid-lint name: projects-projectid-locations-locationid-apis-apiid-versions-versionid-specs-spec description: REST surface for projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs-spec. operations: - method: POST name: lintapispec description: Apigee Lint an API Specification call: api-hub-specs.lintapispec outputParameters: - type: object mapping: $. - type: mcp namespace: api-hub-specs-mcp port: 9090 transport: http description: MCP adapter for Apigee API Hub API — Specs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: apigee-list-api-specifications description: Apigee List API Specifications hints: readOnly: true destructive: false idempotent: true call: api-hub-specs.listapispecs with: filter: tools.filter outputParameters: - type: object mapping: $. - name: apigee-create-api-specification description: Apigee Create an API Specification hints: readOnly: false destructive: false idempotent: false call: api-hub-specs.createapispec with: specId: tools.specId body: tools.body outputParameters: - type: object mapping: $. - name: apigee-get-api-specification description: Apigee Get an API Specification hints: readOnly: true destructive: false idempotent: true call: api-hub-specs.getapispec outputParameters: - type: object mapping: $. - name: apigee-update-api-specification description: Apigee Update an API Specification hints: readOnly: false destructive: false idempotent: true call: api-hub-specs.updateapispec with: updateMask: tools.updateMask body: tools.body outputParameters: - type: object mapping: $. - name: apigee-delete-api-specification description: Apigee Delete an API Specification hints: readOnly: false destructive: true idempotent: true call: api-hub-specs.deleteapispec outputParameters: - type: object mapping: $. - name: apigee-get-api-specification-contents description: Apigee Get API Specification Contents hints: readOnly: true destructive: false idempotent: true call: api-hub-specs.getapispeccontents outputParameters: - type: object mapping: $. - name: apigee-lint-api-specification description: Apigee Lint an API Specification hints: readOnly: false destructive: false idempotent: false call: api-hub-specs.lintapispec outputParameters: - type: object mapping: $.