naftiko: 1.0.0-alpha2 info: label: Atlassian Bit Bucket Snippets API — Get description: 'Atlassian Bit Bucket Snippets API — Get. 8 operations. Lead operation: Atlassian Get Snippet. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Get created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ATLASSIAN_API_KEY: ATLASSIAN_API_KEY capability: consumes: - type: http namespace: bitbucket-snippets-get baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bit Bucket Snippets API — Get business capability. Self-contained, no shared references. resources: - name: snippets-workspace-encoded_id path: /snippets/{workspace}/{encoded_id} operations: - name: getsnippet method: GET description: Atlassian Get Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-comments-comment_id path: /snippets/{workspace}/{encoded_id}/comments/{comment_id} operations: - name: getcommentonsnippet method: GET description: Atlassian Get Comment on Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-commits-revision path: /snippets/{workspace}/{encoded_id}/commits/{revision} operations: - name: getprevioussnippetchange method: GET description: Atlassian Get Previous Snippet Change outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-files-path path: /snippets/{workspace}/{encoded_id}/files/{path} operations: - name: getsnippetsrawfileathead method: GET description: Atlassian Get Snippets Raw File at Head outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-node_id path: /snippets/{workspace}/{encoded_id}/{node_id} operations: - name: getpreviousrevisionofsnippet method: GET description: Atlassian Get Previous Revision of Snippet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-node_id-files-path path: /snippets/{workspace}/{encoded_id}/{node_id}/files/{path} operations: - name: getsnippetsrawfile method: GET description: Atlassian Get Snippets Raw File outputRawFormat: json outputParameters: - name: result type: object value: $. - name: snippets-workspace-encoded_id-revision-diff path: /snippets/{workspace}/{encoded_id}/{revision}/diff operations: - name: getsnippetchangesbetweenversions method: GET description: Atlassian Get Snippet Changes Between Versions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: path in: query type: string description: When used, only one the diff of the specified file will be returned. - name: snippets-workspace-encoded_id-revision-patch path: /snippets/{workspace}/{encoded_id}/{revision}/patch operations: - name: getsnippetpatchbetweenversions method: GET description: Atlassian Get Snippet Patch Between Versions outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: bitbucket-snippets-get-rest port: 8080 description: REST adapter for Atlassian Bit Bucket Snippets API — Get. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/snippets/{workspace}/{encoded-id} name: snippets-workspace-encoded-id description: REST surface for snippets-workspace-encoded_id. operations: - method: GET name: getsnippet description: Atlassian Get Snippet call: bitbucket-snippets-get.getsnippet outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/comments/{comment-id} name: snippets-workspace-encoded-id-comments-comment-id description: REST surface for snippets-workspace-encoded_id-comments-comment_id. operations: - method: GET name: getcommentonsnippet description: Atlassian Get Comment on Snippet call: bitbucket-snippets-get.getcommentonsnippet outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/commits/{revision} name: snippets-workspace-encoded-id-commits-revision description: REST surface for snippets-workspace-encoded_id-commits-revision. operations: - method: GET name: getprevioussnippetchange description: Atlassian Get Previous Snippet Change call: bitbucket-snippets-get.getprevioussnippetchange outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/files/{path} name: snippets-workspace-encoded-id-files-path description: REST surface for snippets-workspace-encoded_id-files-path. operations: - method: GET name: getsnippetsrawfileathead description: Atlassian Get Snippets Raw File at Head call: bitbucket-snippets-get.getsnippetsrawfileathead outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/{node-id} name: snippets-workspace-encoded-id-node-id description: REST surface for snippets-workspace-encoded_id-node_id. operations: - method: GET name: getpreviousrevisionofsnippet description: Atlassian Get Previous Revision of Snippet call: bitbucket-snippets-get.getpreviousrevisionofsnippet outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/{node-id}/files/{path} name: snippets-workspace-encoded-id-node-id-files-path description: REST surface for snippets-workspace-encoded_id-node_id-files-path. operations: - method: GET name: getsnippetsrawfile description: Atlassian Get Snippets Raw File call: bitbucket-snippets-get.getsnippetsrawfile outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/{revision}/diff name: snippets-workspace-encoded-id-revision-diff description: REST surface for snippets-workspace-encoded_id-revision-diff. operations: - method: GET name: getsnippetchangesbetweenversions description: Atlassian Get Snippet Changes Between Versions call: bitbucket-snippets-get.getsnippetchangesbetweenversions with: path: rest.path outputParameters: - type: object mapping: $. - path: /v1/snippets/{workspace}/{encoded-id}/{revision}/patch name: snippets-workspace-encoded-id-revision-patch description: REST surface for snippets-workspace-encoded_id-revision-patch. operations: - method: GET name: getsnippetpatchbetweenversions description: Atlassian Get Snippet Patch Between Versions call: bitbucket-snippets-get.getsnippetpatchbetweenversions outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-snippets-get-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bit Bucket Snippets API — Get. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-get-snippet description: Atlassian Get Snippet hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-get.getsnippet outputParameters: - type: object mapping: $. - name: atlassian-get-comment-snippet description: Atlassian Get Comment on Snippet hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-get.getcommentonsnippet outputParameters: - type: object mapping: $. - name: atlassian-get-previous-snippet-change description: Atlassian Get Previous Snippet Change hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-get.getprevioussnippetchange outputParameters: - type: object mapping: $. - name: atlassian-get-snippets-raw-file description: Atlassian Get Snippets Raw File at Head hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-get.getsnippetsrawfileathead outputParameters: - type: object mapping: $. - name: atlassian-get-previous-revision-snippet description: Atlassian Get Previous Revision of Snippet hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-get.getpreviousrevisionofsnippet outputParameters: - type: object mapping: $. - name: atlassian-get-snippets-raw-file-2 description: Atlassian Get Snippets Raw File hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-get.getsnippetsrawfile outputParameters: - type: object mapping: $. - name: atlassian-get-snippet-changes-between description: Atlassian Get Snippet Changes Between Versions hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-get.getsnippetchangesbetweenversions with: path: tools.path outputParameters: - type: object mapping: $. - name: atlassian-get-snippet-patch-between description: Atlassian Get Snippet Patch Between Versions hints: readOnly: true destructive: false idempotent: true call: bitbucket-snippets-get.getsnippetpatchbetweenversions outputParameters: - type: object mapping: $.