{
  "service": "bitquery",
  "displayName": "Bitquery",
  "categories": [
    "Data",
    "Developer Tools"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "Access Token",
      "placeholder": "BITQUERY_ACCESS_TOKEN",
      "description": "Bitquery access token sent as a Bearer token. Generate or copy tokens from the Bitquery Authorization page: https://account.bitquery.io/user/api_v2/access_tokens."
    }
  ],
  "homepageUrl": "https://bitquery.io",
  "actions": [
    {
      "id": "bitquery.run_query",
      "service": "bitquery",
      "name": "run_query",
      "description": "Run a Bitquery V2 GraphQL HTTP query against the canonical streaming endpoint and return the GraphQL response envelope.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "The GraphQL query document to send to Bitquery."
          },
          "variables": {
            "type": "object",
            "additionalProperties": {
              "description": "A JSON-serializable GraphQL variable value."
            },
            "description": "GraphQL variables keyed by variable name."
          },
          "operationName": {
            "type": "string",
            "minLength": 1,
            "description": "The GraphQL operation name to execute when the query document defines multiple operations."
          }
        },
        "additionalProperties": false,
        "required": [
          "query"
        ],
        "description": "Input parameters for running a Bitquery GraphQL query."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The GraphQL data payload returned by Bitquery."
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "The GraphQL error message."
                },
                "locations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "line": {
                        "type": "integer",
                        "description": "The one-based source line."
                      },
                      "column": {
                        "type": "integer",
                        "description": "The one-based source column."
                      }
                    },
                    "additionalProperties": true,
                    "description": "A GraphQL source location."
                  },
                  "description": "GraphQL source locations associated with the error."
                },
                "path": {
                  "type": "array",
                  "items": {
                    "description": "A path item."
                  },
                  "description": "The GraphQL response path associated with the error."
                },
                "extensions": {
                  "description": "Provider-specific GraphQL error extensions."
                }
              },
              "additionalProperties": true,
              "description": "A GraphQL error returned by Bitquery."
            },
            "description": "GraphQL errors returned by Bitquery."
          },
          "extensions": {
            "description": "Provider-specific GraphQL response extensions."
          }
        },
        "additionalProperties": true,
        "description": "The Bitquery GraphQL response envelope."
      }
    }
  ]
}
