naftiko: 1.0.0-alpha2 info: label: Marketo Engage Rest API — .Json description: 'Marketo Engage Rest API — .Json. 3 operations. Lead operation: Marketo Update Email Content Section. Self-contained Naftiko capability covering one Marketo business surface.' tags: - Marketo - .Json 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-json baseUri: https://localhost:8080 description: Marketo Engage Rest API — .Json business capability. Self-contained, no shared references. resources: - name: rest-asset-v1-email-id-content-htmlId}.json path: /rest/asset/v1/email/{id}/content/{htmlId}.json operations: - name: updateemailcomponentcontentusingpost method: POST description: Marketo Update Email Content Section outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: id required: true - name: htmlId in: path type: string description: htmlId required: true - name: body in: body type: object description: Request body (JSON). required: true - name: rest-asset-v1-snippet-id}.json path: /rest/asset/v1/snippet/{id}.json operations: - name: getsnippetbyidusingget method: GET description: Marketo Get Snippet by Id outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: id required: true - name: status in: query type: string description: Status filter for draft or approved versions - name: updatesnippetusingpost method: POST description: Marketo Update Snippet Metadata outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: id required: true - name: body in: body type: object description: Request body (JSON). required: true exposes: - type: rest namespace: engage-rest-json-rest port: 8080 description: REST adapter for Marketo Engage Rest API — .Json. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/asset/v1/email/{id}/content/htmlid-json name: rest-asset-v1-email-id-content-htmlid-json description: REST surface for rest-asset-v1-email-id-content-htmlId}.json. operations: - method: POST name: updateemailcomponentcontentusingpost description: Marketo Update Email Content Section call: engage-rest-json.updateemailcomponentcontentusingpost with: id: rest.id htmlId: rest.htmlId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/asset/v1/snippet/id-json name: rest-asset-v1-snippet-id-json description: REST surface for rest-asset-v1-snippet-id}.json. operations: - method: GET name: getsnippetbyidusingget description: Marketo Get Snippet by Id call: engage-rest-json.getsnippetbyidusingget with: id: rest.id status: rest.status outputParameters: - type: object mapping: $. - method: POST name: updatesnippetusingpost description: Marketo Update Snippet Metadata call: engage-rest-json.updatesnippetusingpost with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: engage-rest-json-mcp port: 9090 transport: http description: MCP adapter for Marketo Engage Rest API — .Json. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: marketo-update-email-content-section description: Marketo Update Email Content Section hints: readOnly: false destructive: false idempotent: false call: engage-rest-json.updateemailcomponentcontentusingpost with: id: tools.id htmlId: tools.htmlId body: tools.body outputParameters: - type: object mapping: $. - name: marketo-get-snippet-id description: Marketo Get Snippet by Id hints: readOnly: true destructive: false idempotent: true call: engage-rest-json.getsnippetbyidusingget with: id: tools.id status: tools.status outputParameters: - type: object mapping: $. - name: marketo-update-snippet-metadata description: Marketo Update Snippet Metadata hints: readOnly: false destructive: false idempotent: false call: engage-rest-json.updatesnippetusingpost with: id: tools.id body: tools.body outputParameters: - type: object mapping: $.