tools

Run a backend function of an owned app exactly like the HTTP route and return its status and JSON

Run a backend function of an owned app exactly like the HTTP route and return its status and JSON. caller='owner' runs as the app owner; caller='anonymous' first evaluates the function policy as a public visitor and returns the 401/403 decision without running when access would be denied. Use it to verify a function (secrets, outbound calls, policy) before wiring it into the app.

post/api/mcp/tools/invoke_function

Request

  • Base URL: https://finestructure.ai
  • URL: https://finestructure.ai/api/mcp/tools/invoke_function
  • Auth: HTTP bearer

Request body

app_idstring required

The app ID

functionstring required

Function name, e.g. probe

paramsobject

JSON body passed to the function

caller'owner' | 'anonymous'
headersobject

Optional extra request headers to simulate, e.g. a webhook secret header

Response

Tool executed successfully

okboolean required
toolstring required
resultobject required

Changes

No recorded changes to this operation across all 2 revisions of this API.