Avora MCP Tool and Permission Reference
Avora exposes 22 tools. Authentication, granted permissions, live membership, and existing account allowances are checked by the server. Start with avora_connection to check the connected account and the returned access-management URL.
Account and project reads
| Tool | Permission | Result |
|---|---|---|
avora_connection | Connection | Account identity, permissions, and access-management link |
avora_list_projects | projects:read | Paginated projects selected for this connection |
avora_get_project | projects:read | Safe metadata and saved node/edge counts |
avora_get_graph | projects:read | Saved node/edge pages, summaries or full configuration |
avora_validate_project | projects:read | Shared workspace-validator issues and fix hints |
avora_search_catalog | projects:read | Built-ins, request templates, public marketplace nodes, or your clones |
avora_get_catalog_item | projects:read | One catalog definition or template |
Graph reads support node_type, node_id, and detail. Follow next_cursor with the same filters; pages are live reads. Project environment values and membership lists are omitted. Validation checks workspace rules without executing generated code.
Discover logic nodes
Use avora_search_catalog with source="builtin" for the 14 ready-to-use actions in the Logic Flow Builder action nodes. Search by label or read the returned ID with avora_get_catalog_item using the same source. Built-in IDs are:
| Group | IDs |
|---|---|
| Flow | loop, condition, error_trigger |
| Variable | format, value, operation |
| Data | query, external_api |
| Auth | password_management, token_management |
| Integrations | azure, stripe, openai, slack |
Use source="marketplace" for public published nodes, source="my_clones" for your own clones, and source="request_template" for request templates. Marketplace IDs and versions differ from built-in IDs; always use the returned identity. Older marketplace categories can still appear in API results even though the app groups them under the current names.
The full built-in definition supplies variants, configuration fields, and ports without implementation source. Select actual variant and field IDs from that definition. Log and the former Variable action are absent from built-in discovery; existing saved flows retain compatibility. Reading a catalog item does not install, clone, update, or publish it.
Private custom node drafts
| Tool | Permission | Result |
|---|---|---|
avora_list_drafts | drafts:read | Your paginated private draft summaries |
avora_get_draft | drafts:read | Summary, full payload, or a requested JSON Pointer path |
avora_create_draft | drafts:write | New private draft and editor URL |
avora_update_draft | drafts:read, drafts:write | Atomic patch at the expected revision |
avora_validate_draft | drafts:read | Draft-save shape, appearance, and size checks |
Draft access belongs to the account and does not require a selected project. Creation requires a unique request_id; retry with the same ID and payload to avoid duplication. Updates accept up to 50 JSON Patch add, replace, remove, or test operations under /node_config, /code_bundle, /icon_name, and /usage_markdown.
After a revision conflict, read the newer draft and reconcile it. For large drafts, first read /code_bundle/fastapi, then request the source path actually returned; current bundles use code and some legacy bundles use template. Draft validation does not compile or execute code, publish a node, or add it to a graph.
Author v2 nodes
Keep these three layers separate:
- Definition:
node_configdeclares variants, lines, fields, conditions and element packs.orderGroupis an opt-in property ofoptional-multiplelines. - Configuration: graph
node.data, or a local case'sconfiguration, storesvariantId(on the graph node),lineValues,deletedLineIdsandconfigLineRowOrder. A local case storesvariantIdbesideconfiguration. Repeats use explicit<lineId>_countvalues and<fieldId>_<index>values. - Native source: authoritative mapped
.avorafiles contain HLV1 tags, a single version-2rulessection, bindings, render sections and native fragments. The SDK assembles these intocode_bundle; do not add a second executable rules object tonode_configor a scenario.
Use the avora-node-authoring skill when available. With the local CLI, avora node skill locates its packaged instructions, avora node inspect <folder> --json returns exact structure IDs/tags, and avora node check <folder> --json checks authoring sources. The Node SDK provides the corresponding materialization, assembly and validation functions. Keep source mappings, dependencies, rules, fragments and unknown metadata when patching an existing draft.
For new/redesigned lines, instances and option-added layouts, use at most three displayed fields including captions, and at least one meaningful input/select. Prefer a short leading caption with one or two controls; three controls leave no room for an extra caption. Avoid empty/label-only rows and split large configurations by purpose and independent visibility/removal without dropping useful capabilities. Every input/select must affect behavior or an explicit structure choice; only kind: "text" is constant presentation content (content). Use an optional output instead of a toggle row when selecting the result fully expresses intent; add real parameters if needed. Preserve unrelated legacy layouts and exact IDs.
Use eligible single noncustom choice/operator bindings for options known during generation, collection sections for repeated items and wrappers, and supported value handling for runtime inputs or multi-selects. Match generated code activation to actual structure dependencies: nest under a necessary line/option owner when one exists, keep shared/OR activation at common scope, and guard dependencies requiring a removable parent by its isAppearing state and option match. Active results need defined values; inactive features must leave no feature-only work or invalid code, while shared work and required side effects remain. Meaningful row order is required only for supported compositions that use it; ordered boolean expressions below are a specialized recipe. Template v2 does not require changing a legacy template that already works.
Ordered expression example
This minimal definition uses boolean inputs to demonstrate the contract. A database node replaces the operand body with its checked attribute/comparison bindings. Both repeatable lines belong to the same group:
{
"label": "Ordered conditions",
"variants": [{
"id": "main", "title": "Main",
"lines": [
{"id": "filters", "label": "Filtering", "lineType": "optional-multiple", "orderGroup": "where", "max": 20,
"fields": [{"id": "predicate", "kind": "input", "fieldType": "boolean"}]},
{"id": "combination", "label": "Combination", "lineType": "optional-multiple", "orderGroup": "where", "max": 20,
"fields": [
{"id": "close", "kind": "select", "source": "static", "canCustom": false, "multiSelect": false, "defaultValue": "none", "options": [{"value": "none"}, {"value": ")"}]},
{"id": "join", "kind": "select", "source": "static", "canCustom": false, "multiSelect": false, "defaultValue": "none", "options": [{"value": "none"}, {"value": "AND"}, {"value": "OR"}]},
{"id": "open", "kind": "select", "source": "static", "canCustom": false, "multiSelect": false, "defaultValue": "none", "options": [{"value": "none"}, {"value": "("}]}
]}
]
}]
}
The configured state for two predicates joined with AND is:
{
"variantId": "main",
"lineValues": {
"filters_count": "2", "predicate_0": "true", "predicate_1": "false",
"combination_count": "1", "close_0": "none", "join_0": "AND", "open_0": "none"
},
"deletedLineIds": [],
"configLineRowOrder": [
{"rowId": "filter-a", "lineId": "filters", "index": 0},
{"rowId": "and-a-b", "lineId": "combination", "index": 0},
{"rowId": "filter-b", "lineId": "filters", "index": 1}
]
}
Put this JSON inside the native source's top-level type=rules section with id=template-rendering:
{
"version": 2, "framework": "fastapi",
"bindings": {"predicate": {"source": {"variant": "main", "line": "filters", "field": "predicate"}, "as": "value"}},
"sections": {
"where": {
"source": {"variant": "main", "line": "filters"},
"booleanSequence": {"group": "where", "combination": {"line": "combination", "close": "close", "join": "join", "open": "open"}},
"before": "predicate = ", "after": "", "empty": "omit"
}
},
"fragments": {}
}
The matching native body declares a single operand expression; the compiler renders it for each configured Filtering row:
/*__HLV1_START__|type=config|id=main|name=Main__*/
/*__HLV1_START__|type=render|id=where|name=Filtering__*/
/*__HLV1_FIELD__|type=binding|id=predicate|name=Predicate__*/
/*__HLV1_STOP__|type=render|id=where|name=Filtering__*/
/*__HLV1_STOP__|type=config|id=main|name=Main__*/
Combination controls apply close, join, open. A leading open-only row starts a group; a final close-only row ends one. Every adjacent predicate or group needs an explicit AND/OR. AND has precedence over OR. The compiler validates parentheses, rejects empty/no-op combinations and requires complete saved row order for every nonempty expression; it generates direct SQLAlchemy and_/or_ expressions.
configLineOrder arranges line families and cannot describe this sequence. Keep every surviving rowId; deleting a row shifts that line's remaining indexes and indexed values, while adding a row appends a fresh identity. Change order by deleting and adding the intended row, not by rearranging existing entries. Preserve legitimately hidden rows in saved metadata; visibility determines which rows contribute. Migrate legacy All/Any choices explicitly when adopting booleanSequence. Do not combine this mode with repeat, separator, a different join format, or empty: "keep".
Draft-save success verifies storage shape only. Use configured local cases with avora node generate and avora node test, or install the node in a workspace and inspect its generated source. Hosted preview readiness alone does not verify query results; test the intended cases, including empty, repeated, grouped and malformed configurations.
Workspace changes
| Tool | Permission | Result |
|---|---|---|
avora_edit_workspace | projects:read, projects:write; Pro/Team | Proposal, change count, and review URL |
avora_get_edit_status | Same | Review status and saved undo-version receipt |
avora_create_project | projects:read, projects:create; Pro/Team | Workspace with initial graph and optional source/preview |
Existing projects use the workspace review flow. Creation accepts an initial graph without opening a canvas. Optional generation adds code:read; an optional preview also adds previews:manage.
User accounts and profile completion
MCP workspace instructions follow the same account model as the global workspace AI: shared account, identity, contact, display, status, and preference fields belong on User, with a role enum for multiple user categories. Profile and <Role>Profile entities keep their specific fields and normally connect to User through a 1:1 association with foreignKeyOwner: "target", so the profile owns user_id.
For a workspace or profile addition, include one authenticated POST create request per association-linked profile to complete it after signup. Use the profile entity as group, /post as the label, a handler such as create_student_profile, a profile body, and a created-profile output with status 201. Role-specific profiles use the matching role permissions, and their logic links the profile to the signed-in User. Reuse an existing equivalent request. Diagram-only work and signup flows that explicitly create the profile do not need this additional request.
These are workspace instructions, not new MCP tools or schema fields. The avora-node-authoring skill remains focused on reusable custom logic nodes.
Source, issues, and hosted previews
| Tool | Permission | Result |
|---|---|---|
avora_generate_code | projects:read, code:read | Generated FastAPI source file list or blocking issues |
avora_read_generated_file | Same | Bounded generated-file content at a character offset |
avora_get_issues | projects:read | Saved validation or latest browser Issues report |
avora_start_preview | projects:read, previews:manage | Start a hosted preview; update=true deploys the saved changes |
avora_get_preview | Same | Your preview readiness, status, and URL |
avora_get_preview_logs | Same | Bounded, redacted tail of your preview logs |
avora_stop_preview | Same | Stop your session and settle the preview allowance |
These seven tools work on Free and paid plans within existing allowances. Source preview does not charge a ZIP export. Hosted preview start/update executes generated code and consumes preview time.
Pagination and limits
Pages contain 1–100 items within a 96 KiB output budget. Read tools allow 120 calls per account per minute; validation allows 10, and draft writes allow 30. Workspace validation supports up to 5,000 nodes and 10,000 edges. Draft saves retain the existing 2 MB payload limit.
Generated file content uses next_offset, with at most 12,000 characters per read. Generation cache expires after 15 minutes or on backend restart/eviction. Preview logs return up to 200 lines and a bounded text tail. Use returned IDs and pagination fields instead of guessing filenames or project IDs.