Skip to main content
Bily MCP exposes exactly two tools: search and execute. It does not expose MCP resources or prompts. Search the live Bily operation catalog before you construct an execution. Example tool input:
Each result can provide:
  • A stable operation ID, title, description, category, method, and Bily helper.
  • Whether the operation requires a store or can write.
  • Supported connected platforms when relevant.
  • Planning metadata, including risk tier, approval policy, preconditions, verification, rollback hints, and input or output schemas.
  • Focused usage examples.
Available operations depend on the selected store and its connected platforms. Use search for the current catalog, helper signatures, and planning guidance before you execute an operation.

Confirm identity and scope first

Run the discovery helper before store-specific work:
It returns the authenticated user and accessible organizations[]. Each organization’s stores appear under stores[]. Bily narrows a store-scoped fallback key automatically. With Bily Connect, add the optional organizationId input to execute only when the user explicitly selects one accessible organization.

Explore operation families

A pending accepted-first generation update adds requestStatic, getGenerationRequest, findGenerationRequest and listGenerationRequests. These are not a deployed-availability claim. The list’s admission metadata gates only fresh submissions; keep the original ID/key for recovery. See saved image requests before adopting the new contract. Following Meta Page-post Engagement, Android image-install and named creative-identity profiles reuse bily.actions.readMetaAsset(...) and bily.actions.manageMetaAsset(...); they do not add another MCP helper. These source additions still require matched deployment, the exact current profile schema and native account eligibility. Generic identity discovery is read-only and does not substitute the promotion profiles’ Page/post/application/image fingerprints. Save a management action as an immutable draft, review it, then publish separately; the low-level management helper writes immediately. See the pending Meta profile boundaries. Use this table as a map, not an exhaustive reference. Call search for the current helper signature and planning guidance.

execute

Run one focused async arrow function with the helper returned by search. Example tool input:
Standard executions can run for up to 55 seconds. Restricted website-draft connections have a separate 180-second limit for their allowed website-draft operations; this mode does not grant advertising or creative-generation writes. An allowed helper can still fail earlier. Executions have no direct outbound network access. Ad publication continues as a durable job. Save and review a draft, publish it in a separate approved call, then poll its job ID in focused read calls. A client timeout does not cancel the job or authorize replay. See Ads and creative workflows. Use bily.* helpers for Bily data and supported actions. Return JSON-serializable data. A successful call returns:
Bily captures console.log, console.warn, and console.error in logs. A thrown error fails the tool call with its safe error message.
Planning metadata guides the client and user. It does not replace a client approval prompt. Review the complete execute function before you approve any write.