naftiko: 1.0.0-alpha2 info: label: Snowflake Grant API — grant description: 'Snowflake Grant API — grant. 7 operations. Lead operation: List of Privileges Associated With This Grantee Type and Name. Self-contained Naftiko capability covering one Snowflake business surface.' tags: - Snowflake - grant created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SNOWFLAKE_API_KEY: SNOWFLAKE_API_KEY capability: consumes: - type: http namespace: grant-grant baseUri: https://org-account.snowflakecomputing.com description: Snowflake Grant API — grant business capability. Self-contained, no shared references. resources: - name: api-v2-grants-granteeType-granteeName path: /api/v2/grants/{granteeType}/{granteeName} operations: - name: listgrantsto method: GET description: List of Privileges Associated With This Grantee Type and Name outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-grants-granteeType-granteeName-bulkGrantType-securableTypePlural-scopeTyp path: /api/v2/grants/{granteeType}/{granteeName}/{bulkGrantType}/{securableTypePlural}/{scopeType}/{scopeName}/privileges operations: - name: grantgroupprivilege method: POST description: Grant the Specified Privilege(s) on All/future (as Specified by Bulkgranttype) Securables of This Type in a Given Scope to the Named Grantee. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-v2-grants-granteeType-granteeName-bulkGrantType-securableTypePlural-scopeTyp path: /api/v2/grants/{granteeType}/{granteeName}/{bulkGrantType}/{securableTypePlural}/{scopeType}/{scopeName}/privileges/{privilege} operations: - name: revokegroupprivilege method: DELETE description: Revoke the Specified Privilege on the Specified All/future Securable in the Given Scope From the Named Grantee. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-grants-granteeType-granteeName-bulkGrantType-securableTypePlural-scopeTyp path: /api/v2/grants/{granteeType}/{granteeName}/{bulkGrantType}/{securableTypePlural}/{scopeType}/{scopeName}/privileges/{privilege}/grant-option operations: - name: revokegroupprivilegegrantoption method: DELETE description: Revoke the Grant Option for the Specified Privilege on the Specified All/future Securable in the Given Scope From the Named Grantee. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-grants-granteeType-granteeName-securableType-securableName-privileges path: /api/v2/grants/{granteeType}/{granteeName}/{securableType}/{securableName}/privileges operations: - name: grantprivilege method: POST description: Grant the Specified Privilege(s) on the Named Securable to the Named Grantee. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-v2-grants-granteeType-granteeName-securableType-securableName-privileges-pri path: /api/v2/grants/{granteeType}/{granteeName}/{securableType}/{securableName}/privileges/{privilege} operations: - name: revokeprivilege method: DELETE description: Revoke the Specified Privilege on the Named Securable From the Named Grantee. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-grants-granteeType-granteeName-securableType-securableName-privileges-pri path: /api/v2/grants/{granteeType}/{granteeName}/{securableType}/{securableName}/privileges/{privilege}/grant-option operations: - name: revokeprivilegegrantoption method: DELETE description: Revoke the Grant Option for the Specified Privilege on the Named Securable From the Named Grantee. outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: grant-grant-rest port: 8080 description: REST adapter for Snowflake Grant API — grant. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/grants/{granteetype}/{granteename} name: api-v2-grants-granteetype-granteename description: REST surface for api-v2-grants-granteeType-granteeName. operations: - method: GET name: listgrantsto description: List of Privileges Associated With This Grantee Type and Name call: grant-grant.listgrantsto outputParameters: - type: object mapping: $. - path: /v1/api/v2/grants/{granteetype}/{granteename}/{bulkgranttype}/{securabletypeplural}/{scopetype}/{scopename}/privileges name: api-v2-grants-granteetype-granteename-bulkgranttype-securabletypeplural-scopetyp description: REST surface for api-v2-grants-granteeType-granteeName-bulkGrantType-securableTypePlural-scopeTyp. operations: - method: POST name: grantgroupprivilege description: Grant the Specified Privilege(s) on All/future (as Specified by Bulkgranttype) Securables of This Type in a Given Scope to the Named Grantee. call: grant-grant.grantgroupprivilege with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/grants/{granteetype}/{granteename}/{bulkgranttype}/{securabletypeplural}/{scopetype}/{scopename}/privileges/{privilege} name: api-v2-grants-granteetype-granteename-bulkgranttype-securabletypeplural-scopetyp description: REST surface for api-v2-grants-granteeType-granteeName-bulkGrantType-securableTypePlural-scopeTyp. operations: - method: DELETE name: revokegroupprivilege description: Revoke the Specified Privilege on the Specified All/future Securable in the Given Scope From the Named Grantee. call: grant-grant.revokegroupprivilege outputParameters: - type: object mapping: $. - path: /v1/api/v2/grants/{granteetype}/{granteename}/{bulkgranttype}/{securabletypeplural}/{scopetype}/{scopename}/privileges/{privilege}/grant-option name: api-v2-grants-granteetype-granteename-bulkgranttype-securabletypeplural-scopetyp description: REST surface for api-v2-grants-granteeType-granteeName-bulkGrantType-securableTypePlural-scopeTyp. operations: - method: DELETE name: revokegroupprivilegegrantoption description: Revoke the Grant Option for the Specified Privilege on the Specified All/future Securable in the Given Scope From the Named Grantee. call: grant-grant.revokegroupprivilegegrantoption outputParameters: - type: object mapping: $. - path: /v1/api/v2/grants/{granteetype}/{granteename}/{securabletype}/{securablename}/privileges name: api-v2-grants-granteetype-granteename-securabletype-securablename-privileges description: REST surface for api-v2-grants-granteeType-granteeName-securableType-securableName-privileges. operations: - method: POST name: grantprivilege description: Grant the Specified Privilege(s) on the Named Securable to the Named Grantee. call: grant-grant.grantprivilege with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/grants/{granteetype}/{granteename}/{securabletype}/{securablename}/privileges/{privilege} name: api-v2-grants-granteetype-granteename-securabletype-securablename-privileges-pri description: REST surface for api-v2-grants-granteeType-granteeName-securableType-securableName-privileges-pri. operations: - method: DELETE name: revokeprivilege description: Revoke the Specified Privilege on the Named Securable From the Named Grantee. call: grant-grant.revokeprivilege outputParameters: - type: object mapping: $. - path: /v1/api/v2/grants/{granteetype}/{granteename}/{securabletype}/{securablename}/privileges/{privilege}/grant-option name: api-v2-grants-granteetype-granteename-securabletype-securablename-privileges-pri description: REST surface for api-v2-grants-granteeType-granteeName-securableType-securableName-privileges-pri. operations: - method: DELETE name: revokeprivilegegrantoption description: Revoke the Grant Option for the Specified Privilege on the Named Securable From the Named Grantee. call: grant-grant.revokeprivilegegrantoption outputParameters: - type: object mapping: $. - type: mcp namespace: grant-grant-mcp port: 9090 transport: http description: MCP adapter for Snowflake Grant API — grant. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-privileges-associated-this-grantee description: List of Privileges Associated With This Grantee Type and Name hints: readOnly: true destructive: false idempotent: true call: grant-grant.listgrantsto outputParameters: - type: object mapping: $. - name: grant-specified-privilege-s-all-future description: Grant the Specified Privilege(s) on All/future (as Specified by Bulkgranttype) Securables of This Type in a Given Scope to the Named Grantee. hints: readOnly: false destructive: false idempotent: false call: grant-grant.grantgroupprivilege with: body: tools.body outputParameters: - type: object mapping: $. - name: revoke-specified-privilege-specified-all description: Revoke the Specified Privilege on the Specified All/future Securable in the Given Scope From the Named Grantee. hints: readOnly: false destructive: true idempotent: true call: grant-grant.revokegroupprivilege outputParameters: - type: object mapping: $. - name: revoke-grant-option-specified-privilege description: Revoke the Grant Option for the Specified Privilege on the Specified All/future Securable in the Given Scope From the Named Grantee. hints: readOnly: false destructive: true idempotent: true call: grant-grant.revokegroupprivilegegrantoption outputParameters: - type: object mapping: $. - name: grant-specified-privilege-s-named-securable description: Grant the Specified Privilege(s) on the Named Securable to the Named Grantee. hints: readOnly: false destructive: false idempotent: false call: grant-grant.grantprivilege with: body: tools.body outputParameters: - type: object mapping: $. - name: revoke-specified-privilege-named-securable description: Revoke the Specified Privilege on the Named Securable From the Named Grantee. hints: readOnly: false destructive: true idempotent: true call: grant-grant.revokeprivilege outputParameters: - type: object mapping: $. - name: revoke-grant-option-specified-privilege-2 description: Revoke the Grant Option for the Specified Privilege on the Named Securable From the Named Grantee. hints: readOnly: false destructive: true idempotent: true call: grant-grant.revokeprivilegegrantoption outputParameters: - type: object mapping: $.