{"openapi":"3.1.0","info":{"title":"Amplitude Experiment (BYOK) API","version":"0.1.0","description":"Amplitude Experiment (BYOK) lets an AI assistant read your own Amplitude Experiment data through the Amplitude Experiment API with a key you supply (Amplitude Experiment management API key (US data center)). Read-only: 10 tools (list_flags, get_flag, list_flag_variants, list_experiments, get_experiment, list_experiment_variants, list_mutex_groups, list_holdouts, list_deployments, list_versions)....\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-amplitude-experiment.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-amplitude-experiment/docs"},"termsOfService":"https://connectorbay.com/byok-amplitude-experiment/terms"},"servers":[{"url":"https://byok-amplitude-experiment.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-amplitude-experiment/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_flags":{"post":{"operationId":"list_flags","summary":"List feature flags with key, name, enabled state, evaluation mode, rollout percentage and dates, newest first. Targeting","description":"List feature flags with key, name, enabled state, evaluation mode, rollout percentage and dates, newest first. Targeting rules are not included. Use for \"Which feature flags exist in Amplitude Experiment\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"key":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only flags with this flag key.","title":"Key"},"project_id":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only flags of this project ID.","title":"Project Id"},"include_archived":{"anyOf":[{"enum":["true","false"],"type":"string"},{"type":"null"}],"default":null,"description":"Also list archived flags.","title":"Include Archived"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Records to return (up to 1000).","title":"Limit"},"cursor":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Offset from the previous page's nextCursor, to fetch the next page.","title":"Cursor"}},"title":"list_flagsArguments","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_flag":{"post":{"operationId":"get_flag","summary":"Get one feature flag with key, name, enabled state, rollout percentage and dates. Use for \"Show me this Amplitude Experi","description":"Get one feature flag with key, name, enabled state, rollout percentage and dates. Use for \"Show me this Amplitude Experiment flag\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Flag ID, from list_flags.","maxLength":200,"title":"Id","type":"string"}},"required":["id"],"title":"get_flagArguments","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_flag_variants":{"post":{"operationId":"list_flag_variants","summary":"List the variants of a feature flag with key, name, payload and rollout weight. Use for \"What variants does this flag ha","description":"List the variants of a feature flag with key, name, payload and rollout weight. Use for \"What variants does this flag have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Flag ID, from list_flags.","maxLength":200,"title":"Id","type":"string"}},"required":["id"],"title":"list_flag_variantsArguments","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_experiments":{"post":{"operationId":"list_experiments","summary":"List feature and web experiments with state, type, decision, rollout and dates, newest first. Targeting rules are not in","description":"List feature and web experiments with state, type, decision, rollout and dates, newest first. Targeting rules are not included. Use for \"Which A/B experiments are running in Amplitude Experiment\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"key":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only experiments with this key.","title":"Key"},"project_id":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only experiments of this project ID.","title":"Project Id"},"delivery_method":{"anyOf":[{"enum":["feature","web"],"type":"string"},{"type":"null"}],"default":null,"description":"Only this kind of experiment.","title":"Delivery Method"},"include_archived":{"anyOf":[{"enum":["true","false"],"type":"string"},{"type":"null"}],"default":null,"description":"Also list archived experiments.","title":"Include Archived"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Records to return (up to 1000).","title":"Limit"},"cursor":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Offset from the previous page's nextCursor, to fetch the next page.","title":"Cursor"}},"title":"list_experimentsArguments","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_experiment":{"post":{"operationId":"get_experiment","summary":"Get one experiment with state, type, decision, rollout percentage and dates. Use for \"Show me this Amplitude Experiment ","description":"Get one experiment with state, type, decision, rollout percentage and dates. Use for \"Show me this Amplitude Experiment experiment\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Experiment ID, from list_experiments.","maxLength":200,"title":"Id","type":"string"}},"required":["id"],"title":"get_experimentArguments","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_experiment_variants":{"post":{"operationId":"list_experiment_variants","summary":"List the variants of an experiment with key, name, payload and rollout weight. Use for \"What variants does this experime","description":"List the variants of an experiment with key, name, payload and rollout weight. Use for \"What variants does this experiment have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Experiment ID, from list_experiments.","maxLength":200,"title":"Id","type":"string"}},"required":["id"],"title":"list_experiment_variantsArguments","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_mutex_groups":{"post":{"operationId":"list_mutex_groups","summary":"List mutual exclusion groups with key, bucketing key and the slots with their traffic percentage. Use for \"Which mutex g","description":"List mutual exclusion groups with key, bucketing key and the slots with their traffic percentage. Use for \"Which mutex groups exist\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Records to return (up to 1000).","title":"Limit"},"cursor":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Offset from the previous page's nextCursor, to fetch the next page.","title":"Cursor"}},"title":"list_mutex_groupsArguments","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_holdouts":{"post":{"operationId":"list_holdouts","summary":"List holdout groups with key, holdout percentage, bucketing key and the experiments they cover. Individual inclusions ar","description":"List holdout groups with key, holdout percentage, bucketing key and the experiments they cover. Individual inclusions are not returned. Use for \"Which holdout groups exist\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Records to return (up to 1000).","title":"Limit"},"cursor":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Offset from the previous page's nextCursor, to fetch the next page.","title":"Cursor"}},"title":"list_holdoutsArguments","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_deployments":{"post":{"operationId":"list_deployments","summary":"List deployments (client or server environments) that flags and experiments can be assigned to. Deployment keys are not ","description":"List deployments (client or server environments) that flags and experiments can be assigned to. Deployment keys are not returned. Use for \"Which deployments exist in Amplitude Experiment\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Records to return (up to 1000).","title":"Limit"},"cursor":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Offset from the previous page's nextCursor, to fetch the next page.","title":"Cursor"}},"title":"list_deploymentsArguments","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_versions":{"post":{"operationId":"list_versions","summary":"List version history of flags and experiments in a time window, newest first, with version number and the flag key, name","description":"List version history of flags and experiments in a time window, newest first, with version number and the flag key, name and rollout. Use for \"What changed on my flags and experiments recently\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"start":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only versions created at or after this time (ISO 8601).","title":"Start"},"end":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only versions created before this time (ISO 8601).","title":"End"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Records to return (up to 1000).","title":"Limit"},"cursor":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Offset from the previous page's nextCursor, to fetch the next page.","title":"Cursor"}},"title":"list_versionsArguments","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}}}}