naftiko: 1.0.0-alpha2 info: label: Microsoft Azure SparkClient — SparkSession description: 'Microsoft Azure SparkClient — SparkSession. 9 operations. Lead operation: Microsoft Azure Get Sessions. Self-contained Naftiko capability covering one Microsoft Azure business surface.' tags: - Microsoft Azure - SparkSession created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_AZURE_API_KEY: MICROSOFT_AZURE_API_KEY capability: consumes: - type: http namespace: sparkclient-sparksession baseUri: '' description: Microsoft Azure SparkClient — SparkSession business capability. Self-contained, no shared references. resources: - name: sessions path: /sessions operations: - name: microsoftazuresparksessiongetsparksessions method: GET description: Microsoft Azure Get Sessions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: from in: query type: integer description: Optional param specifying which index the list should begin from. - name: size in: query type: integer description: "Optional param specifying the size of the returned list.\r" - name: detailed in: query type: boolean description: Optional query param specifying whether detailed response is returned beyond plain livy. - name: microsoftazuresparksessioncreatesparksession method: POST description: Microsoft Azure Post Sessions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: detailed in: query type: boolean description: Optional query param specifying whether detailed response is returned beyond plain livy. - name: SparkSessionOptions in: body type: string description: Livy compatible batch job request payload. required: true - name: sessions-sessionId path: /sessions/{sessionId} operations: - name: microsoftazuresparksessiongetsparksession method: GET description: Microsoft Azure Get Sessions Sessionid outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sessionId in: path type: integer description: Identifier for the session. required: true - name: detailed in: query type: boolean description: Optional query param specifying whether detailed response is returned beyond plain livy. - name: microsoftazuresparksessioncancelsparksession method: DELETE description: Microsoft Azure Delete Sessions Sessionid outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sessionId in: path type: integer description: Identifier for the session. required: true - name: sessions-sessionId-reset-timeout path: /sessions/{sessionId}/reset-timeout operations: - name: microsoftazuresparksessionresetsparksessiontimeout method: PUT description: Microsoft Azure Put Sessions Sessionid Reset Timeout outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sessionId in: path type: integer description: Identifier for the session. required: true - name: sessions-sessionId-statements path: /sessions/{sessionId}/statements operations: - name: microsoftazuresparksessiongetsparkstatements method: GET description: Microsoft Azure Get Sessions Sessionid Statements outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sessionId in: path type: integer description: Identifier for the session. required: true - name: microsoftazuresparksessioncreatesparkstatement method: POST description: Microsoft Azure Post Sessions Sessionid Statements outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sessionId in: path type: integer description: Identifier for the session. required: true - name: SparkStatementOptions in: body type: string description: Livy compatible batch job request payload. required: true - name: sessions-sessionId-statements-statementId path: /sessions/{sessionId}/statements/{statementId} operations: - name: microsoftazuresparksessiongetsparkstatement method: GET description: Microsoft Azure Get Sessions Sessionid Statements Statementid outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sessionId in: path type: integer description: Identifier for the session. required: true - name: statementId in: path type: integer description: Identifier for the statement. required: true - name: sessions-sessionId-statements-statementId-cancel path: /sessions/{sessionId}/statements/{statementId}/cancel operations: - name: microsoftazuresparksessioncancelsparkstatement method: POST description: Microsoft Azure Post Sessions Sessionid Statements Statementid Cancel outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sessionId in: path type: integer description: Identifier for the session. required: true - name: statementId in: path type: integer description: Identifier for the statement. required: true exposes: - type: rest namespace: sparkclient-sparksession-rest port: 8080 description: REST adapter for Microsoft Azure SparkClient — SparkSession. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/sessions name: sessions description: REST surface for sessions. operations: - method: GET name: microsoftazuresparksessiongetsparksessions description: Microsoft Azure Get Sessions call: sparkclient-sparksession.microsoftazuresparksessiongetsparksessions with: from: rest.from size: rest.size detailed: rest.detailed outputParameters: - type: object mapping: $. - method: POST name: microsoftazuresparksessioncreatesparksession description: Microsoft Azure Post Sessions call: sparkclient-sparksession.microsoftazuresparksessioncreatesparksession with: detailed: rest.detailed SparkSessionOptions: rest.SparkSessionOptions outputParameters: - type: object mapping: $. - path: /v1/sessions/{sessionid} name: sessions-sessionid description: REST surface for sessions-sessionId. operations: - method: GET name: microsoftazuresparksessiongetsparksession description: Microsoft Azure Get Sessions Sessionid call: sparkclient-sparksession.microsoftazuresparksessiongetsparksession with: sessionId: rest.sessionId detailed: rest.detailed outputParameters: - type: object mapping: $. - method: DELETE name: microsoftazuresparksessioncancelsparksession description: Microsoft Azure Delete Sessions Sessionid call: sparkclient-sparksession.microsoftazuresparksessioncancelsparksession with: sessionId: rest.sessionId outputParameters: - type: object mapping: $. - path: /v1/sessions/{sessionid}/reset-timeout name: sessions-sessionid-reset-timeout description: REST surface for sessions-sessionId-reset-timeout. operations: - method: PUT name: microsoftazuresparksessionresetsparksessiontimeout description: Microsoft Azure Put Sessions Sessionid Reset Timeout call: sparkclient-sparksession.microsoftazuresparksessionresetsparksessiontimeout with: sessionId: rest.sessionId outputParameters: - type: object mapping: $. - path: /v1/sessions/{sessionid}/statements name: sessions-sessionid-statements description: REST surface for sessions-sessionId-statements. operations: - method: GET name: microsoftazuresparksessiongetsparkstatements description: Microsoft Azure Get Sessions Sessionid Statements call: sparkclient-sparksession.microsoftazuresparksessiongetsparkstatements with: sessionId: rest.sessionId outputParameters: - type: object mapping: $. - method: POST name: microsoftazuresparksessioncreatesparkstatement description: Microsoft Azure Post Sessions Sessionid Statements call: sparkclient-sparksession.microsoftazuresparksessioncreatesparkstatement with: sessionId: rest.sessionId SparkStatementOptions: rest.SparkStatementOptions outputParameters: - type: object mapping: $. - path: /v1/sessions/{sessionid}/statements/{statementid} name: sessions-sessionid-statements-statementid description: REST surface for sessions-sessionId-statements-statementId. operations: - method: GET name: microsoftazuresparksessiongetsparkstatement description: Microsoft Azure Get Sessions Sessionid Statements Statementid call: sparkclient-sparksession.microsoftazuresparksessiongetsparkstatement with: sessionId: rest.sessionId statementId: rest.statementId outputParameters: - type: object mapping: $. - path: /v1/sessions/{sessionid}/statements/{statementid}/cancel name: sessions-sessionid-statements-statementid-cancel description: REST surface for sessions-sessionId-statements-statementId-cancel. operations: - method: POST name: microsoftazuresparksessioncancelsparkstatement description: Microsoft Azure Post Sessions Sessionid Statements Statementid Cancel call: sparkclient-sparksession.microsoftazuresparksessioncancelsparkstatement with: sessionId: rest.sessionId statementId: rest.statementId outputParameters: - type: object mapping: $. - type: mcp namespace: sparkclient-sparksession-mcp port: 9090 transport: http description: MCP adapter for Microsoft Azure SparkClient — SparkSession. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-azure-get-sessions description: Microsoft Azure Get Sessions hints: readOnly: true destructive: false idempotent: true call: sparkclient-sparksession.microsoftazuresparksessiongetsparksessions with: from: tools.from size: tools.size detailed: tools.detailed outputParameters: - type: object mapping: $. - name: microsoft-azure-post-sessions description: Microsoft Azure Post Sessions hints: readOnly: false destructive: false idempotent: false call: sparkclient-sparksession.microsoftazuresparksessioncreatesparksession with: detailed: tools.detailed SparkSessionOptions: tools.SparkSessionOptions outputParameters: - type: object mapping: $. - name: microsoft-azure-get-sessions-sessionid description: Microsoft Azure Get Sessions Sessionid hints: readOnly: true destructive: false idempotent: true call: sparkclient-sparksession.microsoftazuresparksessiongetsparksession with: sessionId: tools.sessionId detailed: tools.detailed outputParameters: - type: object mapping: $. - name: microsoft-azure-delete-sessions-sessionid description: Microsoft Azure Delete Sessions Sessionid hints: readOnly: false destructive: true idempotent: true call: sparkclient-sparksession.microsoftazuresparksessioncancelsparksession with: sessionId: tools.sessionId outputParameters: - type: object mapping: $. - name: microsoft-azure-put-sessions-sessionid description: Microsoft Azure Put Sessions Sessionid Reset Timeout hints: readOnly: false destructive: false idempotent: true call: sparkclient-sparksession.microsoftazuresparksessionresetsparksessiontimeout with: sessionId: tools.sessionId outputParameters: - type: object mapping: $. - name: microsoft-azure-get-sessions-sessionid-2 description: Microsoft Azure Get Sessions Sessionid Statements hints: readOnly: true destructive: false idempotent: true call: sparkclient-sparksession.microsoftazuresparksessiongetsparkstatements with: sessionId: tools.sessionId outputParameters: - type: object mapping: $. - name: microsoft-azure-post-sessions-sessionid description: Microsoft Azure Post Sessions Sessionid Statements hints: readOnly: false destructive: false idempotent: false call: sparkclient-sparksession.microsoftazuresparksessioncreatesparkstatement with: sessionId: tools.sessionId SparkStatementOptions: tools.SparkStatementOptions outputParameters: - type: object mapping: $. - name: microsoft-azure-get-sessions-sessionid-3 description: Microsoft Azure Get Sessions Sessionid Statements Statementid hints: readOnly: true destructive: false idempotent: true call: sparkclient-sparksession.microsoftazuresparksessiongetsparkstatement with: sessionId: tools.sessionId statementId: tools.statementId outputParameters: - type: object mapping: $. - name: microsoft-azure-post-sessions-sessionid-2 description: Microsoft Azure Post Sessions Sessionid Statements Statementid Cancel hints: readOnly: false destructive: false idempotent: false call: sparkclient-sparksession.microsoftazuresparksessioncancelsparkstatement with: sessionId: tools.sessionId statementId: tools.statementId outputParameters: - type: object mapping: $.