naftiko: 1.0.0-alpha2 info: label: Marketo Engage Rest API — Id description: 'Marketo Engage Rest API — Id. 6 operations. Lead operation: Marketo Get Smart List by Id. Self-contained Naftiko capability covering one Marketo business surface.' tags: - Marketo - Id created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MARKETO_API_KEY: MARKETO_API_KEY capability: consumes: - type: http namespace: engage-rest-id baseUri: https://localhost:8080 description: Marketo Engage Rest API — Id business capability. Self-contained, no shared references. resources: - name: rest-asset-v1-smartList-id}.json path: /rest/asset/v1/smartList/{id}.json operations: - name: getsmartlistbyidusingget method: GET description: Marketo Get Smart List by Id outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: Id of the smart list to retrieve required: true - name: includeRules in: query type: boolean description: Set true to populate smart list rules. Default false - name: rest-asset-v1-smartList-id-clone.json path: /rest/asset/v1/smartList/{id}/clone.json operations: - name: clonesmartlistusingpost method: POST description: Marketo Clone Smart List outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: Id of smart list to clone required: true - name: body in: body type: object description: Request body (JSON). required: true - name: rest-asset-v1-smartList-id-delete.json path: /rest/asset/v1/smartList/{id}/delete.json operations: - name: deletesmartlistbyidusingpost method: POST description: Marketo Delete Smart List outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: Id of the smart list to delete required: true - name: rest-asset-v1-staticList-id}.json path: /rest/asset/v1/staticList/{id}.json operations: - name: getstaticlistbyidusingget method: GET description: Marketo Get Static List by Id outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: Id of the static list to retrieve required: true - name: updatestaticlistusingpost method: POST description: Marketo Update Static List Metadata outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: Id of static list to update required: true - name: body in: body type: object description: Request body (JSON). required: true - name: rest-asset-v1-staticList-id-delete.json path: /rest/asset/v1/staticList/{id}/delete.json operations: - name: deletestaticlistbyidusingpost method: POST description: Marketo Delete Static List outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: Id of the static list to delete required: true exposes: - type: rest namespace: engage-rest-id-rest port: 8080 description: REST adapter for Marketo Engage Rest API — Id. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/asset/v1/smartlist/id-json name: rest-asset-v1-smartlist-id-json description: REST surface for rest-asset-v1-smartList-id}.json. operations: - method: GET name: getsmartlistbyidusingget description: Marketo Get Smart List by Id call: engage-rest-id.getsmartlistbyidusingget with: id: rest.id includeRules: rest.includeRules outputParameters: - type: object mapping: $. - path: /v1/asset/v1/smartlist/{id}/clone-json name: rest-asset-v1-smartlist-id-clone-json description: REST surface for rest-asset-v1-smartList-id-clone.json. operations: - method: POST name: clonesmartlistusingpost description: Marketo Clone Smart List call: engage-rest-id.clonesmartlistusingpost with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/asset/v1/smartlist/{id}/delete-json name: rest-asset-v1-smartlist-id-delete-json description: REST surface for rest-asset-v1-smartList-id-delete.json. operations: - method: POST name: deletesmartlistbyidusingpost description: Marketo Delete Smart List call: engage-rest-id.deletesmartlistbyidusingpost with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/asset/v1/staticlist/id-json name: rest-asset-v1-staticlist-id-json description: REST surface for rest-asset-v1-staticList-id}.json. operations: - method: GET name: getstaticlistbyidusingget description: Marketo Get Static List by Id call: engage-rest-id.getstaticlistbyidusingget with: id: rest.id outputParameters: - type: object mapping: $. - method: POST name: updatestaticlistusingpost description: Marketo Update Static List Metadata call: engage-rest-id.updatestaticlistusingpost with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/asset/v1/staticlist/{id}/delete-json name: rest-asset-v1-staticlist-id-delete-json description: REST surface for rest-asset-v1-staticList-id-delete.json. operations: - method: POST name: deletestaticlistbyidusingpost description: Marketo Delete Static List call: engage-rest-id.deletestaticlistbyidusingpost with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: engage-rest-id-mcp port: 9090 transport: http description: MCP adapter for Marketo Engage Rest API — Id. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: marketo-get-smart-list-id description: Marketo Get Smart List by Id hints: readOnly: true destructive: false idempotent: true call: engage-rest-id.getsmartlistbyidusingget with: id: tools.id includeRules: tools.includeRules outputParameters: - type: object mapping: $. - name: marketo-clone-smart-list description: Marketo Clone Smart List hints: readOnly: false destructive: false idempotent: false call: engage-rest-id.clonesmartlistusingpost with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: marketo-delete-smart-list description: Marketo Delete Smart List hints: readOnly: false destructive: false idempotent: false call: engage-rest-id.deletesmartlistbyidusingpost with: id: tools.id outputParameters: - type: object mapping: $. - name: marketo-get-static-list-id description: Marketo Get Static List by Id hints: readOnly: true destructive: false idempotent: true call: engage-rest-id.getstaticlistbyidusingget with: id: tools.id outputParameters: - type: object mapping: $. - name: marketo-update-static-list-metadata description: Marketo Update Static List Metadata hints: readOnly: true destructive: false idempotent: false call: engage-rest-id.updatestaticlistusingpost with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: marketo-delete-static-list description: Marketo Delete Static List hints: readOnly: false destructive: false idempotent: false call: engage-rest-id.deletestaticlistbyidusingpost with: id: tools.id outputParameters: - type: object mapping: $.