Home / Servers / Cloudflare API / share_resource_create

Trigger a resource addition to a share

An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.

Trigger a resource addition to a share Adds a resource to an existing share, making it available to share recipients. [POST /accounts/{account_id}/shares/{share_id}/resources]

Name on the gateway: cloudflare_api__share_resource_create · may change things.

Parameters

NameTypeDescription
account_id requiredstringaccount_id parameter
share_id requiredstringshare_id parameter
meta requiredobjectResource Metadata.
resource_account_id requiredstringThe account that owns the resource. Must match…
resource_id requiredstringIdentifier assigned by the service that owns the…
resource_type requiredcustom-ruleset | gateway-policy | gateway-destination-ip | gateway-block-page-settings | gateway-extended-email-matching | idp-federation-grant | trust-grantResource Type.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "cloudflare_api__share_resource_create",
  "arguments": {
    "account_id": "…",
    "share_id": "…",
    "meta": "…",
    "resource_account_id": "…",
    "resource_id": "…",
    "resource_type": "…"
  }
}

Or connect the Cloudflare API server directly, which lists 3,127 tools including this one:

Run in your terminal
claude mcp add --transport http hj-cloudflare-api https://mcp.hjlabs.in/mcp/cloudflare-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the trigger a resource addition to a share tool with account_id set to ….

More from Cloudflare API