naftiko: 1.0.0-alpha2 info: label: Gremlin API — integration-invocations description: 'Gremlin API — integration-invocations. 4 operations. Lead operation: Returns recent private network invocations. Self-contained Naftiko capability covering one Gremlin business surface.' tags: - Gremlin - integration-invocations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GREMLIN_API_KEY: GREMLIN_API_KEY capability: consumes: - type: http namespace: gremlin-integration-invocations baseUri: https://api.gremlin.com/v1 description: Gremlin API — integration-invocations business capability. Self-contained, no shared references. resources: - name: integration-invocations path: /integration-invocations operations: - name: list1 method: GET description: Returns recent private network invocations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: teamId in: query type: string description: Required when using company session token. required: true - name: createinvocation method: POST description: Creates a webhook invocation based on the endpoint configuration outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: teamId in: query type: string description: Required when using company session token. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: integration-invocations-invocationId-run-test-endpoint path: /integration-invocations/{invocationId}/run-test-endpoint operations: - name: testendpointconfiguration method: POST description: Test an endpoint configuration. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invocationId in: path type: string required: true - name: teamId in: query type: string description: Required when using company session token. required: true - name: integration-invocations-invocationId-run-test-evaluation path: /integration-invocations/{invocationId}/run-test-evaluation operations: - name: testevaluationconfiguration method: POST description: Test an evaluation configuration. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invocationId in: path type: string required: true - name: teamId in: query type: string description: Required when using company session token. required: true - name: body in: body type: object description: Request body (JSON). required: true exposes: - type: rest namespace: gremlin-integration-invocations-rest port: 8080 description: REST adapter for Gremlin API — integration-invocations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/integration-invocations name: integration-invocations description: REST surface for integration-invocations. operations: - method: GET name: list1 description: Returns recent private network invocations call: gremlin-integration-invocations.list1 with: teamId: rest.teamId outputParameters: - type: object mapping: $. - method: POST name: createinvocation description: Creates a webhook invocation based on the endpoint configuration call: gremlin-integration-invocations.createinvocation with: teamId: rest.teamId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/integration-invocations/{invocationid}/run-test-endpoint name: integration-invocations-invocationid-run-test-endpoint description: REST surface for integration-invocations-invocationId-run-test-endpoint. operations: - method: POST name: testendpointconfiguration description: Test an endpoint configuration. call: gremlin-integration-invocations.testendpointconfiguration with: invocationId: rest.invocationId teamId: rest.teamId outputParameters: - type: object mapping: $. - path: /v1/integration-invocations/{invocationid}/run-test-evaluation name: integration-invocations-invocationid-run-test-evaluation description: REST surface for integration-invocations-invocationId-run-test-evaluation. operations: - method: POST name: testevaluationconfiguration description: Test an evaluation configuration. call: gremlin-integration-invocations.testevaluationconfiguration with: invocationId: rest.invocationId teamId: rest.teamId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: gremlin-integration-invocations-mcp port: 9090 transport: http description: MCP adapter for Gremlin API — integration-invocations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: returns-recent-private-network-invocations description: Returns recent private network invocations hints: readOnly: true destructive: false idempotent: true call: gremlin-integration-invocations.list1 with: teamId: tools.teamId outputParameters: - type: object mapping: $. - name: creates-webhook-invocation-based-endpoint description: Creates a webhook invocation based on the endpoint configuration hints: readOnly: false destructive: false idempotent: false call: gremlin-integration-invocations.createinvocation with: teamId: tools.teamId body: tools.body outputParameters: - type: object mapping: $. - name: test-endpoint-configuration description: Test an endpoint configuration. hints: readOnly: true destructive: false idempotent: false call: gremlin-integration-invocations.testendpointconfiguration with: invocationId: tools.invocationId teamId: tools.teamId outputParameters: - type: object mapping: $. - name: test-evaluation-configuration description: Test an evaluation configuration. hints: readOnly: true destructive: false idempotent: false call: gremlin-integration-invocations.testevaluationconfiguration with: invocationId: tools.invocationId teamId: tools.teamId body: tools.body outputParameters: - type: object mapping: $.