floom

v0.1.6
io.github.floomhq/floom Checked 4 hours ago Published 8 months ago

Deploy Python functions as web apps with auto-generated UI, REST API, and shareable links.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

deploy

Deploy Python code to Floom and get a usable URL. Accepts raw Python source or a base64-encoded ZIP. Optionally include a floom.yaml config to declare endpoint schemas, secrets, and resource requirements.

ParameterTypeDescription
code *stringPython source code or base64-encoded ZIP bundle
name *stringProject name (lowercase, hyphens allowed)
configobjectfloom.yaml configuration: declare endpoint schemas, required secrets, and resource settings
requirementsarrayPython package requirements (e.g. ["requests==2.31.0", "pandas"])

run

Execute an action on a deployed Floom app. Preferred: use app_slug + action for simple invocation. Alternative: use project_id + endpoint_id + version_id for explicit control.

ParameterTypeDescription
actionstringAction name (e.g. "count", "generate"). Used with app_slug.
app_slugstringApp slug for simple invocation (e.g. "my-app")
callback_urlstringURL to receive a POST with the run result when it completes (webhook)
endpoint_idstringEndpoint ID (e.g. "post--generate_invoice"). Used with project_id.
jsonobjectJSON body to send to the endpoint
paramsobjectQuery parameters
project_idstringProject ID (alternative to app_slug)
timeout_secondsnumberMax execution time in seconds (default 60)
version_idstringVersion ID. Used with project_id.

list_projects

List all deployed Floom projects.

get_project

Get details for a Floom project including endpoint schemas and input parameters. Use this before calling run to see what inputs an endpoint expects.

ParameterTypeDescription
project_id *stringProject ID

manage_secrets

Manage secrets for a Floom project. Supports list, set, and delete operations.

ParameterTypeDescription
action *stringAction to perform
project_id *stringProject ID
keystringSecret key (required for set/delete)
valuestringSecret value (required for set)

get_logs

Get recent run logs for a Floom project.

ParameterTypeDescription
project_id *stringProject ID
limitnumberNumber of recent runs to fetch (default 10)

list_versions

List all versions of a Floom project. Shows which version is dev (latest deploy) and which is prod (promoted).

ParameterTypeDescription
project_id *stringProject ID

promote

Promote a version to production. By default promotes the current dev version. Runs a health check; auto-rolls back if the check fails.

ParameterTypeDescription
project_id *stringProject ID
version_idstringVersion ID to promote (defaults to current dev version)

rollback

Rollback production to a previous version.

ParameterTypeDescription
project_id *stringProject ID
version_id *stringVersion ID to rollback to

storage_set

Store a persistent key-value pair for a Floom project. Values persist across runs and deploys.

ParameterTypeDescription
key *stringStorage key (alphanumeric, dots, underscores, hyphens; max 256 chars)
project_id *stringProject ID
valueValue to store (any JSON-serializable data)

storage_get

Retrieve a stored value for a Floom project.

ParameterTypeDescription
key *stringStorage key
project_id *stringProject ID

storage_delete

Delete a stored value for a Floom project.

ParameterTypeDescription
key *stringStorage key
project_id *stringProject ID

storage_list

List all stored keys for a Floom project with usage info.

ParameterTypeDescription
project_id *stringProject ID

fetch_context

Fetch external data from a URL and attach it as context to a Floom project. Context data enhances AI-powered endpoints.

ParameterTypeDescription
name *stringContext name (alphanumeric, hyphens, underscores)
project_id *stringProject ID
url *stringURL to fetch context from

list_contexts

List all context entries for a Floom project.

ParameterTypeDescription
project_id *stringProject ID

delete_context

Remove a context entry from a Floom project.

ParameterTypeDescription
context_id *stringContext ID to remove
project_id *stringProject ID

delete_project

Delete a Floom project and all its data (versions, runs, secrets, storage).

ParameterTypeDescription
project_id *stringProject ID to delete

update_project

Update a Floom project name or slug.

ParameterTypeDescription
project_id *stringProject ID
namestringNew project name
slugstringNew project slug

deploy_from_github

Deploy a Floom app directly from a GitHub repository URL.

ParameterTypeDescription
github_url *stringGitHub repository URL (e.g. "https://github.com/user/repo")
name *stringProject name
github_refstringBranch or tag to deploy (default: main)

list_templates

List available starter templates for Floom projects.

get_template

Get details and code preview for a Floom starter template.

ParameterTypeDescription
template_id *stringTemplate ID

create_from_template

Create a new Floom project from a starter template.

ParameterTypeDescription
template_id *stringTemplate ID to create from
namestringProject name (defaults to template name)

get_context

Retrieve stored context data for a Floom project.

ParameterTypeDescription
context_id *stringContext ID
project_id *stringProject ID

refresh_context

Re-fetch context data from its source URL.

ParameterTypeDescription
context_id *stringContext ID to refresh
project_id *stringProject ID

create_schedule

Create a cron schedule that automatically runs an endpoint at specified intervals.

ParameterTypeDescription
cron *stringCron expression (e.g. "*/5 * * * *" for every 5 minutes, "0 9 * * *" for daily at 9am)
endpoint_id *stringEndpoint ID to schedule (e.g. "post--generate")
project_id *stringProject ID
inputobjectJSON input to pass to the endpoint on each run
timeout_secondsnumberMax execution time per run (default: 60)
timezonestringIANA timezone (default: UTC)

list_schedules

List all cron schedules for a Floom project.

ParameterTypeDescription
project_id *stringProject ID

delete_schedule

Delete a cron schedule from a Floom project.

ParameterTypeDescription
project_id *stringProject ID
schedule_id *stringSchedule ID to delete

enable_webhooks

Enable public inbound webhooks for a Floom project. Once enabled, external services can trigger runs via POST /v1/webhooks/:slug/:action without authentication.

ParameterTypeDescription
project_id *stringProject ID

disable_webhooks

Disable public inbound webhooks for a Floom project.

ParameterTypeDescription
project_id *stringProject ID