naftiko: 1.0.0-alpha2 info: label: Gremlin API — agents description: 'Gremlin API — agents. 2 operations. Lead operation: Paginated list of infrastructure and failure flag agents. Self-contained Naftiko capability covering one Gremlin business surface.' tags: - Gremlin - agents created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GREMLIN_API_KEY: GREMLIN_API_KEY capability: consumes: - type: http namespace: gremlin-agents baseUri: https://api.gremlin.com/v1 description: Gremlin API — agents business capability. Self-contained, no shared references. resources: - name: agents path: /agents operations: - name: getpaginatedagents method: GET description: Paginated list of infrastructure and failure flag agents outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: pageSize in: query type: integer description: This value determines how many results will be returned per call. - name: pageToken in: query type: string description: Pass the pageToken to get the next page of agents - name: teamId in: query type: string description: Required when using company session token. required: true - name: agents-summary path: /agents/summary operations: - name: getagentsummary method: GET description: Aggregate summary of infrastructure and failure flag agents outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: teamId in: query type: string description: Required when using company session token. required: true exposes: - type: rest namespace: gremlin-agents-rest port: 8080 description: REST adapter for Gremlin API — agents. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/agents name: agents description: REST surface for agents. operations: - method: GET name: getpaginatedagents description: Paginated list of infrastructure and failure flag agents call: gremlin-agents.getpaginatedagents with: pageSize: rest.pageSize pageToken: rest.pageToken teamId: rest.teamId outputParameters: - type: object mapping: $. - path: /v1/agents/summary name: agents-summary description: REST surface for agents-summary. operations: - method: GET name: getagentsummary description: Aggregate summary of infrastructure and failure flag agents call: gremlin-agents.getagentsummary with: teamId: rest.teamId outputParameters: - type: object mapping: $. - type: mcp namespace: gremlin-agents-mcp port: 9090 transport: http description: MCP adapter for Gremlin API — agents. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: paginated-list-infrastructure-and-failure description: Paginated list of infrastructure and failure flag agents hints: readOnly: true destructive: false idempotent: true call: gremlin-agents.getpaginatedagents with: pageSize: tools.pageSize pageToken: tools.pageToken teamId: tools.teamId outputParameters: - type: object mapping: $. - name: aggregate-summary-infrastructure-and-failure description: Aggregate summary of infrastructure and failure flag agents hints: readOnly: true destructive: false idempotent: true call: gremlin-agents.getagentsummary with: teamId: tools.teamId outputParameters: - type: object mapping: $.