{"openapi":"3.1.0","info":{"title":"Buildkite Agents (BYOK) API","version":"0.1.0","description":"Buildkite Agents (BYOK) lets an AI assistant read your own Buildkite Agents data through the Buildkite Agents API with a key you supply (API access token (with read_agents and read_clusters scopes)). Read-only: 6 tools (list_agents, get_agent, list_clusters, get_cluster, list_cluster_queues, get_cluster_queue). The BYOK key travels with each request, is used for that one call only and is never...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-buildkite-agents.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-buildkite-agents/docs"},"termsOfService":"https://connectorbay.com/byok-buildkite-agents/terms"},"servers":[{"url":"https://byok-buildkite-agents.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-buildkite-agents/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_agents":{"post":{"operationId":"list_agents","summary":"List an organization's connected and stopping agents with state, version, platform, queue, tags and timing. Agents in ot","description":"List an organization's connected and stopping agents with state, version, platform, queue, tags and timing. Agents in other states are not returned (use get_agent for those). Use for \"Which Buildkite agents are connected right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org_slug":{"description":"Buildkite organization slug, the part of the Buildkite URL after buildkite.com/, for example 'my-great-org'.","maxLength":100,"title":"Org Slug","type":"string"},"name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only agents with exactly this name.","title":"Name"},"hostname":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only agents running on this hostname.","title":"Hostname"},"version":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only agents of this exact agent version, for example 3.100.0.","title":"Version"},"cluster_queue_id":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Only agents registered to the queue with this UUID.","title":"Cluster Queue Id"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many results to return (1 to 100; Buildkite's default is 30). If fewer come back than asked for, there is no next page.","title":"Per Page"},"page":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["org_slug"],"title":"list_agentsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_agent":{"post":{"operationId":"get_agent","summary":"Get one agent by UUID in any connection state, including disconnected or lost ones. Use for \"Show details of Buildkite a","description":"Get one agent by UUID in any connection state, including disconnected or lost ones. Use for \"Show details of Buildkite agent 0b461f65-e7be-4c80-888a-ef11d81fd971\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org_slug":{"description":"Buildkite organization slug, the part of the Buildkite URL after buildkite.com/, for example 'my-great-org'.","maxLength":100,"title":"Org Slug","type":"string"},"agent_id":{"description":"UUID of the agent (the id field from list_agents).","maxLength":64,"title":"Agent Id","type":"string"}},"required":["org_slug","agent_id"],"title":"get_agentArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_clusters":{"post":{"operationId":"list_clusters","summary":"List an organization's clusters (groups of agents and queues) with description, default queue and creation time. Use for","description":"List an organization's clusters (groups of agents and queues) with description, default queue and creation time. Use for \"What Buildkite clusters does my-great-org have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org_slug":{"description":"Buildkite organization slug, the part of the Buildkite URL after buildkite.com/, for example 'my-great-org'.","maxLength":100,"title":"Org Slug","type":"string"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many results to return (1 to 100; Buildkite's default is 30). If fewer come back than asked for, there is no next page.","title":"Per Page"},"page":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["org_slug"],"title":"list_clustersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_cluster":{"post":{"operationId":"get_cluster","summary":"Get one cluster with its description, colour, default queue and creation time. Use for \"Show Buildkite cluster 42f1a7da-","description":"Get one cluster with its description, colour, default queue and creation time. Use for \"Show Buildkite cluster 42f1a7da-812d-4430-93d8-1cc7c33a6bcf\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org_slug":{"description":"Buildkite organization slug, the part of the Buildkite URL after buildkite.com/, for example 'my-great-org'.","maxLength":100,"title":"Org Slug","type":"string"},"cluster_id":{"description":"UUID of the cluster (the id field from list_clusters).","maxLength":64,"title":"Cluster Id","type":"string"}},"required":["org_slug","cluster_id"],"title":"get_clusterArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_cluster_queues":{"post":{"operationId":"list_cluster_queues","summary":"List the queues of a cluster with dispatch pause state and retry affinity. Use for \"Which queues does Buildkite cluster ","description":"List the queues of a cluster with dispatch pause state and retry affinity. Use for \"Which queues does Buildkite cluster 42f1a7da have and are any paused\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org_slug":{"description":"Buildkite organization slug, the part of the Buildkite URL after buildkite.com/, for example 'my-great-org'.","maxLength":100,"title":"Org Slug","type":"string"},"cluster_id":{"description":"UUID of the cluster (the id field from list_clusters).","maxLength":64,"title":"Cluster Id","type":"string"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many results to return (1 to 100; Buildkite's default is 30). If fewer come back than asked for, there is no next page.","title":"Per Page"},"page":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["org_slug","cluster_id"],"title":"list_cluster_queuesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_cluster_queue":{"post":{"operationId":"get_cluster_queue","summary":"Get one cluster queue with its key, description, dispatch pause state and retry affinity. Use for \"Show queue 01885682-5","description":"Get one cluster queue with its key, description, dispatch pause state and retry affinity. Use for \"Show queue 01885682-55a7-44f5-84f3-0402fb452e66 of Buildkite cluster 42f1a7da\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org_slug":{"description":"Buildkite organization slug, the part of the Buildkite URL after buildkite.com/, for example 'my-great-org'.","maxLength":100,"title":"Org Slug","type":"string"},"cluster_id":{"description":"UUID of the cluster (the id field from list_clusters).","maxLength":64,"title":"Cluster Id","type":"string"},"queue_id":{"description":"UUID of the queue (the id field from list_cluster_queues).","maxLength":64,"title":"Queue Id","type":"string"}},"required":["org_slug","cluster_id","queue_id"],"title":"get_cluster_queueArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}