tools
Create or update the server-owned access policy of a backend function (functions/<name>.js)
Create or update the server-owned access policy of a backend function (functions/<name>.js). Without a policy a function answers only to the app owner's Studio token (401 for app visitors and webhooks). Recipes: anonymous checkout step or inbound webhook/IPN -> require_auth=false; signed-in members -> require_auth=true + allowed_roles (e.g. ['authenticated'] or ['admin','staff']); webhook with a shared secret -> require_secret=true + secret_name (an app secret) that the caller sends in secret_header. allowed_hosts fences the function's outbound network to those hosts plus the platform backend; omit it for open egress.
post/api/mcp/tools/set_function_policy
Request
- Base URL: https://finestructure.ai
- URL: https://finestructure.ai/api/mcp/tools/set_function_policy
- Auth: HTTP bearer
Request body
Response
Tool executed successfully
Changes
No recorded changes to this operation across all 2 revisions of this API.