naftiko: 1.0.0-alpha2 info: label: Blockdaemon Chain Watch Events API — Variables description: Manage Chain Watch Variables and Variable Values that scope event rules to specific addresses, contracts, validators, or token IDs. tags: - Blockdaemon - Events - Variables - Streaming created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: BLOCKDAEMON_API_KEY: BLOCKDAEMON_API_KEY capability: consumes: - type: http namespace: events-variables baseUri: https://svc.blockdaemon.com description: Chain Watch variable endpoints. resources: - name: variables path: /chain-watch/v1/variables operations: - name: findvariables method: GET description: Returns all variables that the user has access to. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: [] - name: addvariable method: POST description: Creates a new variable. Duplicate names are not allowed. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object required: true - name: variable-by-id path: /chain-watch/v1/variables/{variableId} operations: - name: deletevariable method: DELETE description: Deletes a variable using the specified ID. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: variableId in: path type: string required: true - name: variable-values path: /chain-watch/v1/variables/{variableId}/values operations: - name: addvariablevalue method: POST description: Creates a new value for the specified variable. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: variableId in: path type: string required: true - name: body in: body type: object required: true authentication: type: apikey key: X-API-Key value: '{{env.BLOCKDAEMON_API_KEY}}' placement: header exposes: - type: rest namespace: events-variables-rest port: 8080 description: REST adapter for variables. resources: - path: /v1/chain-watch/variables name: variables description: REST surface for variables. operations: - method: POST name: addvariable description: Create a variable. call: events-variables.addvariable with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: events-variables-mcp port: 9090 transport: http description: MCP adapter for Chain Watch variables. tools: - name: blockdaemon-list-variables description: List all Chain Watch variables. hints: readOnly: true destructive: false idempotent: true call: events-variables.findvariables with: {} outputParameters: - type: object mapping: $. - name: blockdaemon-create-variable description: Create a Chain Watch variable. hints: readOnly: false destructive: false idempotent: false call: events-variables.addvariable with: body: tools.body outputParameters: - type: object mapping: $. - name: blockdaemon-add-variable-value description: Add a value to a Chain Watch variable. hints: readOnly: false destructive: false idempotent: false call: events-variables.addvariablevalue with: variableId: tools.variableId body: tools.body outputParameters: - type: object mapping: $.