{"openapi":"3.1.0","info":{"title":"Cloudflare Workers Storage (BYOK) API","version":"0.1.0","description":"Cloudflare Workers Storage (BYOK) lets an AI assistant read your own Cloudflare Workers Storage data through the Cloudflare Workers Storage API with a key you supply (Cloudflare API token with Workers KV Storage and Workers Scripts read permission). Read-only: 6 tools (list_kv_namespaces, get_kv_namespace, list_kv_keys, get_kv_key_metadata, list_durable_object_namespaces, list_durable_objects)....\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-cloudflare-workers-storage.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-cloudflare-workers-storage/docs"},"termsOfService":"https://connectorbay.com/byok-cloudflare-workers-storage/terms"},"servers":[{"url":"https://byok-cloudflare-workers-storage.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-cloudflare-workers-storage/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_kv_namespaces":{"post":{"operationId":"list_kv_namespaces","summary":"List the Workers KV namespaces of an account with id and title. Use for \"Which Workers KV namespaces do I have\".","description":"List the Workers KV namespaces of an account with id and title. Use for \"Which Workers KV namespaces do I have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"Cloudflare account id (32-character hex string shown in the dashboard URL, or from the Cloudflare connector's list_accounts).","maxLength":40,"title":"Account Id","type":"string"},"order":{"anyOf":[{"enum":["id","title"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort field.","title":"Order"},"direction":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort direction.","title":"Direction"},"per_page":{"anyOf":[{"maximum":1000,"minimum":5,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results per page (5 to 1000).","title":"Per Page"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1; result_info.total_count says how many exist.","title":"Page"}},"required":["account_id"],"title":"list_kv_namespacesArguments","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_kv_namespace":{"post":{"operationId":"get_kv_namespace","summary":"Get one Workers KV namespace: title, id and URL-encoding support. Use for \"What is the title of KV namespace 0f2ac74b498","description":"Get one Workers KV namespace: title, id and URL-encoding support. Use for \"What is the title of KV namespace 0f2ac74b498b48028cb68387c421e279\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"Cloudflare account id (32-character hex string shown in the dashboard URL, or from the Cloudflare connector's list_accounts).","maxLength":40,"title":"Account Id","type":"string"},"namespace_id":{"description":"Workers KV namespace id (32-character hex string), as returned by list_kv_namespaces.","maxLength":40,"title":"Namespace Id","type":"string"}},"required":["account_id","namespace_id"],"title":"get_kv_namespaceArguments","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_kv_keys":{"post":{"operationId":"list_kv_keys","summary":"List the key names of a Workers KV namespace with expiration and metadata (not the stored values). Pass the returned cur","description":"List the key names of a Workers KV namespace with expiration and metadata (not the stored values). Pass the returned cursor to page. Use for \"Which keys start with user: in my KV namespace\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"Cloudflare account id (32-character hex string shown in the dashboard URL, or from the Cloudflare connector's list_accounts).","maxLength":40,"title":"Account Id","type":"string"},"namespace_id":{"description":"Workers KV namespace id (32-character hex string), as returned by list_kv_namespaces.","maxLength":40,"title":"Namespace Id","type":"string"},"prefix":{"anyOf":[{"maxLength":512,"type":"string"},{"type":"null"}],"default":null,"description":"Only keys starting with this text.","title":"Prefix"},"limit":{"anyOf":[{"maximum":1000,"minimum":10,"type":"integer"},{"type":"null"}],"default":1000,"description":"How many keys to return (10 to 1000).","title":"Limit"},"cursor":{"anyOf":[{"maxLength":1000,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from the previous answer's result_info.cursor to continue.","title":"Cursor"}},"required":["account_id","namespace_id"],"title":"list_kv_keysArguments","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_kv_key_metadata":{"post":{"operationId":"get_kv_key_metadata","summary":"Get the metadata JSON attached to one key of a Workers KV namespace (not its value). Use for \"What metadata is attached ","description":"Get the metadata JSON attached to one key of a Workers KV namespace (not its value). Use for \"What metadata is attached to the key user:123 in my KV namespace\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"Cloudflare account id (32-character hex string shown in the dashboard URL, or from the Cloudflare connector's list_accounts).","maxLength":40,"title":"Account Id","type":"string"},"namespace_id":{"description":"Workers KV namespace id (32-character hex string), as returned by list_kv_namespaces.","maxLength":40,"title":"Namespace Id","type":"string"},"key_name":{"description":"Name of the key in the namespace (percent-encoded for you).","maxLength":512,"title":"Key Name","type":"string"}},"required":["account_id","namespace_id","key_name"],"title":"get_kv_key_metadataArguments","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_durable_object_namespaces":{"post":{"operationId":"list_durable_object_namespaces","summary":"List the Durable Object namespaces of an account with id, name, class, script and SQLite flag. Use for \"Which Durable Ob","description":"List the Durable Object namespaces of an account with id, name, class, script and SQLite flag. Use for \"Which Durable Object classes are deployed in my account\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"Cloudflare account id (32-character hex string shown in the dashboard URL, or from the Cloudflare connector's list_accounts).","maxLength":40,"title":"Account Id","type":"string"},"per_page":{"anyOf":[{"maximum":1000,"minimum":5,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results per page (5 to 1000).","title":"Per Page"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1; result_info.total_count says how many exist.","title":"Page"}},"required":["account_id"],"title":"list_durable_object_namespacesArguments","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_durable_objects":{"post":{"operationId":"list_durable_objects","summary":"List the object ids in a Durable Object namespace and whether each has stored data. Pass the returned cursor to page. Us","description":"List the object ids in a Durable Object namespace and whether each has stored data. Pass the returned cursor to page. Use for \"How many Durable Objects of ChatRoom hold data\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"Cloudflare account id (32-character hex string shown in the dashboard URL, or from the Cloudflare connector's list_accounts).","maxLength":40,"title":"Account Id","type":"string"},"namespace_id":{"description":"Durable Object namespace id, as returned by list_durable_object_namespaces.","maxLength":64,"title":"Namespace Id","type":"string"},"limit":{"anyOf":[{"maximum":10000,"minimum":10,"type":"integer"},{"type":"null"}],"default":1000,"description":"How many objects to return (10 to 10000).","title":"Limit"},"cursor":{"anyOf":[{"maxLength":1000,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from the previous answer's result_info.cursor.","title":"Cursor"}},"required":["account_id","namespace_id"],"title":"list_durable_objectsArguments","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}}}}