{"openapi":"3.1.0","info":{"title":"Harness (BYOK) API","version":"0.1.0","description":"Harness (BYOK) lets an AI assistant read your own Harness data through the Harness API with a key you supply (Harness personal access token or service account token). Read-only: 8 tools (get_account, list_organizations, list_projects, get_project, list_pipelines, get_pipeline_summary, list_services, list_environments). The BYOK key travels with each request, is used for that one call only and is...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-harness.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-harness/docs"},"termsOfService":"https://connectorbay.com/byok-harness/terms"},"servers":[{"url":"https://byok-harness.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-harness/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/get_account":{"post":{"operationId":"get_account","summary":"Get the Harness account's name, company, edition, authentication mechanism, session timeout and contract dates. Use for ","description":"Get the Harness account's name, company, edition, authentication mechanism, session timeout and contract dates. Use for \"What Harness edition and settings does my account have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_identifier":{"description":"Harness account ID (the string after /account/ in your Harness URL).","maxLength":200,"title":"Account Identifier","type":"string"}},"required":["account_identifier"],"title":"get_accountArguments","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_organizations":{"post":{"operationId":"list_organizations","summary":"List the organizations of a Harness account with identifier, name and description. Use for \"What organizations are in my","description":"List the organizations of a Harness account with identifier, name and description. Use for \"What organizations are in my Harness account\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_identifier":{"description":"Harness account ID (the string after /account/ in your Harness URL).","maxLength":64,"title":"Account Identifier","type":"string"},"search_term":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only items whose name, identifier or tags contain this text.","title":"Search Term"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Results per page (1 to 100, default 50).","title":"Page Size"},"page_index":{"anyOf":[{"maximum":10000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Zero-based page number.","title":"Page Index"}},"required":["account_identifier"],"title":"list_organizationsArguments","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_projects":{"post":{"operationId":"list_projects","summary":"List Harness projects with identifier, name, org, modules and tags, optionally for one organization. Use for \"Which Harn","description":"List Harness projects with identifier, name, org, modules and tags, optionally for one organization. Use for \"Which Harness projects do I have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_identifier":{"description":"Harness account ID (the string after /account/ in your Harness URL).","maxLength":64,"title":"Account Identifier","type":"string"},"org_identifier":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Organization identifier to narrow to, for example 'default'.","title":"Org Identifier"},"search_term":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only items whose name, identifier or tags contain this text.","title":"Search Term"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Results per page (1 to 100, default 50).","title":"Page Size"},"page_index":{"anyOf":[{"maximum":10000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Zero-based page number.","title":"Page Index"}},"required":["account_identifier"],"title":"list_projectsArguments","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_project":{"post":{"operationId":"get_project","summary":"Get one Harness project: name, color, modules, description and tags. Use for \"Show the Harness project my_project\".","description":"Get one Harness project: name, color, modules, description and tags. Use for \"Show the Harness project my_project\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"identifier":{"description":"Project identifier.","maxLength":200,"title":"Identifier","type":"string"},"account_identifier":{"description":"Harness account ID (the string after /account/ in your Harness URL).","maxLength":64,"title":"Account Identifier","type":"string"},"org_identifier":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":"default","description":"Organization identifier (default 'default').","title":"Org Identifier"}},"required":["identifier","account_identifier"],"title":"get_projectArguments","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_pipelines":{"post":{"operationId":"list_pipelines","summary":"List the pipelines of a Harness project with name, identifier, tags, stage count, modules and last execution status. Use","description":"List the pipelines of a Harness project with name, identifier, tags, stage count, modules and last execution status. Use for \"What pipelines are in my Harness project and did the last runs pass\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_identifier":{"description":"Harness account ID (the string after /account/ in your Harness URL).","maxLength":64,"title":"Account Identifier","type":"string"},"org_identifier":{"description":"Organization identifier, for example 'default'.","maxLength":64,"title":"Org Identifier","type":"string"},"project_identifier":{"description":"Project identifier within the organization.","maxLength":64,"title":"Project Identifier","type":"string"},"search_term":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only items whose name, identifier or tags contain this text.","title":"Search Term"},"page":{"anyOf":[{"maximum":10000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Zero-based page number.","title":"Page"},"size":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Results per page (1 to 200, default 25).","title":"Size"}},"required":["account_identifier","org_identifier","project_identifier"],"title":"list_pipelinesArguments","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_pipeline_summary":{"post":{"operationId":"get_pipeline_summary","summary":"Get one pipeline's summary: stage names, version, modules and the status and time of its last execution. Use for \"Show t","description":"Get one pipeline's summary: stage names, version, modules and the status and time of its last execution. Use for \"Show the summary and last run status of Harness pipeline build\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"pipeline_identifier":{"description":"Pipeline identifier.","maxLength":200,"title":"Pipeline Identifier","type":"string"},"account_identifier":{"description":"Harness account ID (the string after /account/ in your Harness URL).","maxLength":64,"title":"Account Identifier","type":"string"},"org_identifier":{"description":"Organization identifier, for example 'default'.","maxLength":64,"title":"Org Identifier","type":"string"},"project_identifier":{"description":"Project identifier within the organization.","maxLength":64,"title":"Project Identifier","type":"string"}},"required":["pipeline_identifier","account_identifier","org_identifier","project_identifier"],"title":"get_pipeline_summaryArguments","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_services":{"post":{"operationId":"list_services","summary":"List the CD services of a Harness account, organization or project with identifier, name, description and tags. Each ite","description":"List the CD services of a Harness account, organization or project with identifier, name, description and tags. Each item may include its YAML. Use for \"What deployment services are defined in my Harness project\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_identifier":{"description":"Harness account ID (the string after /account/ in your Harness URL).","maxLength":64,"title":"Account Identifier","type":"string"},"org_identifier":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Organization identifier to narrow to, for example 'default'.","title":"Org Identifier"},"project_identifier":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Project identifier to narrow to (needs org_identifier).","title":"Project Identifier"},"search_term":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only items whose name, identifier or tags contain this text.","title":"Search Term"},"page":{"anyOf":[{"maximum":10000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Zero-based page number.","title":"Page"},"size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Results per page (1 to 100, default 20).","title":"Size"}},"required":["account_identifier"],"title":"list_servicesArguments","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_environments":{"post":{"operationId":"list_environments","summary":"List the CD environments of a Harness account, organization or project with identifier, name, type and tags. Each item m","description":"List the CD environments of a Harness account, organization or project with identifier, name, type and tags. Each item may include its YAML. Use for \"What environments (dev, staging, prod) does my Harness project have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_identifier":{"description":"Harness account ID (the string after /account/ in your Harness URL).","maxLength":64,"title":"Account Identifier","type":"string"},"org_identifier":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Organization identifier to narrow to, for example 'default'.","title":"Org Identifier"},"project_identifier":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Project identifier to narrow to (needs org_identifier).","title":"Project Identifier"},"search_term":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only items whose name, identifier or tags contain this text.","title":"Search Term"},"page":{"anyOf":[{"maximum":10000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Zero-based page number.","title":"Page"},"size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Results per page (1 to 100, default 20).","title":"Size"}},"required":["account_identifier"],"title":"list_environmentsArguments","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}}}}