> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to the Fibery MCP server

The Fibery MCP connector routes your AI agent's tool calls to Fibery's own MCP server through Scalekit. Each user signs in to Fibery once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 100 tools.

**Authentication:** OAuth 2.1/DCR
**Categories:** Project Management, Productivity
**Tools:** 100: 31 read, 40 write, 29 destructive
**Users sign in with:** OAuth
**OAuth app:** Scalekit's or your own
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=FIBERYMCP)

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Fibery MCP connection

   In **AgentKit > Connections**, create a Fibery MCP connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

   Scalekit credentials are available for Fibery MCP server, so you don't need to register an OAuth app.

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'fiberymcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Fibery MCP:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'fiberymcp_get_me',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "fiberymcp"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Fibery MCP:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="fiberymcp_get_me",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'fiberymcp_display_entity_capabilities_via_sharing',
  toolInput: {
    databases: [],
  },
  connector: 'fiberymcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="fiberymcp_display_entity_capabilities_via_sharing",
    tool_input={
        "databases": [],
    },
    connection_name="fiberymcp",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `fiberymcp_display_entity_capabilities_via_sharing`

Display Entity Capabilities Via Sharing · Read-only

Returns per-entity capabilities derived from sharing for the requested Fibery databases.

Use this when the user wants to know what access they have at the entity level (not just space- or database-level). For each database, the response includes the entities they can reach and how they reach them.

Three access paths are covered:
1. **Direct sharing** — the entity was explicitly shared with the user, returned in `entityLevelGrants`.
2. **Propagated sharing** — access was inherited from a related entity, returned in `indirectEntityLevelGrants`.
3. **Assignment rules** — the user appears in a People-field rule on the entity type, returned in `assigneeGrants`.

Capabilities from every source (space-level, database-level, per-entity grants, propagation from other databases) ACCUMULATE — they NEVER override. To compute effective capabilities on a specific entity, take the UNION of all sources.

Limitations for assignee grants: sample only (up to 10 entities per rule)

Per-database result fields:
- `spaceLevelCapabilities` — capabilities granted at the space level.
- `databaseLevelCapabilities` — capabilities granted at the database level.
- `entityLevelGrants` — per-entity grants from direct sharing.
- `indirectEntityLevelGrants` — grants propagated from related entities.
- `assigneeGrants` — grants derived from assignment rules on People-type fields.

If a database can't be resolved in the schema, its entry is `{database, error}` instead.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `databases` (`array`, required): Full database names in "Space/Database" format (e.g. ["Project Management/Feature"]).

Example input: `{"databases":[]}`

### `fiberymcp_display_report_schema`

Display Report Schema · Read-only

Get the vizydrop report source schema for one or more Fibery databases. This is distinct from the Fibery type/relation schema returned by `schema` or `schema_detailed`.

Returns the flat set of fields and enum values usable in report dimension/metric expressions and filter conditions. Call this before configuring chart, table, or metric dimensions so you know the valid field names and types.

**`sourceMode`**: `current` (default) for live entity state; `historical` for modification events (time-in-state data).

When multiple databases are specified, a synthetic `Entity Database` field is added to allow splitting results by source.

Reports are a specialized domain — call `get_fibery_skill` with `skill: "reports"` for the full report model, expression syntax, palettes, conditions, and workflow.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `databases` (`array`, required): List of database names in 'Space/Database' format to get the report source schema for.
- `sourceMode` (`string`, optional): Source mode: 'current' (default) queries live entity state; 'historical' resolves a history-timeline source for time-in-state / change-frequency analysis. One of: `current`, `historical`.

Example input: `{"databases":[]}`

### `fiberymcp_display_schema_capabilities`

Display Schema Capabilities · Read-only

Returns the current user's access info per space and per database in the Fibery workspace.

Use this when explaining what the user can/cannot do, or before suggesting an action that requires specific access.

URL conventions:
- For spaces: user will see anything if they have ANY access to the space.
- For databases: user will see anything only if they have architect-level access; otherwise it will render as "No Access".

Capabilities from every source (space-level, database-level, per-entity grants, propagation from other databases) ACCUMULATE — they NEVER override. To compute the user's effective capabilities on a specific entity, take the UNION of all sources.

The response shape:
- `accessInfo.spaces` — map keyed by space namespace.
- `accessInfo.databases` — map keyed by `Space/Database` name.

Each entry value is one of:
- `'no-access'` — the user has no access.
- `'entity-level'` — no space/database-level grant, but the user has access to at least one entity via an entity-level access template.
- `{level, templateId, isDefault, url}` — standard template-based access. `level` is the template name with the `app.access/` / `type.access/` prefix stripped. `isDefault: false` indicates a custom template.
- `'derived-per-field'` — applies only to `fibery/file` and `comments/comment`; access is granted via per-field grants on the owning database, not at the type level.

- `levelInfo.space` and `levelInfo.database` — keyed by `level` (the same string as above); each value carries the template's full title, description, and capability set so the caller can explain what a level grants.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `spaces` (`array`, optional): Optional list of space names to scope the response (e.g. ['Product', 'Sales']). Omit to receive capabilities for every space and database in the workspace.

Example input: `{}`

### `fiberymcp_download_file`

Download File · Read-only

Fetches a Fibery file attachment by secret and returns a signed download URL valid for ~60 minutes.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `secret` (`string`, required): File secret obtained from get_files_meta — opaque identifier returned in each file entry.

Example input: `{"secret":"<secret>"}`

### `fiberymcp_fetch_by_url`

Fetch By Url · Read-only

Fetches entity or view data from a Fibery URL and returns it as Markdown.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `url` (`string`, required): Fibery URL to fetch data from
- `limit` (`number`, optional): Maximum number of items to return for views (default: 20)

Example input: `{"url":"<url>"}`

### `fiberymcp_fetch_view_data`

Fetch View Data · Read-only

Fetches entity data from a Fibery view by executing its saved query.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `publicId` (`string`, required): Public ID of the view to fetch data from
- `limit` (`number`, optional): Max entities to return (default: 100)
- `offset` (`number`, optional): Number of entities to skip (default: 0)

Example input: `{"publicId":"<publicId>"}`

### `fiberymcp_find_document_blocks`

Find Document Blocks · Read-only

Finds the blocks of a single document whose text contains the given text, case-insensitive and regardless of formatting. Returns them in the same shape as `read_document`, with their ids, so you can edit a passage of a long document without reading all of it. A block matches only when the whole text is inside it; text spread over several blocks is not found.

**Call `get_fibery_skill({skill: "documents"})` FIRST** for how to find document secrets and edit blocks.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'
- `text` (`string`, required): Text to look for, case-insensitive. Formatting is ignored

Example input: `{"secret":"<secret>","text":"<text>"}`

### `fiberymcp_get_automation`

Get Automation · Read-only

Fetches a single automation rule or button by id, including its triggers, filters and actions with their action ids (needed for `update_automation`). Prefer `query_automations` when the id is unknown.

Call `get_fibery_skill({skill: "automations"})` to interpret the returned trigger/filter/action structures.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `automationType` (`string`, required): rule: runs automatically when a trigger fires. button: shows on entities of the database and runs when a user clicks it. One of: `rule`, `button`.
- `database` (`string`, required): Full database name the automation belongs to (e.g. "SoftDev/Task")
- `id` (`string`, required): Id of the rule or button (from query_automations)

Example input: `{"automationType":"rule","database":"SoftDev/Task","id":"<id>"}`

### `fiberymcp_get_connected_app_accounts`

Get Connected App Accounts · Read-only

Lists the workspace's connected external app accounts (Slack, email, etc.). Automation actions coming from a non-fibery app (marked `[<app>, requires appAccountId]` in `display_automations_schema`) need one of these account ids as `appAccountId`.

Only call this when using an external app action in `create_automation` or `update_automation`.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `fiberymcp_get_connectors_list`

Get Connectors List · Read-only

Returns a list of available built-in connectors (integrations) in Fibery.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `fiberymcp_get_custom_apps_list`

Get Custom Apps List · Read-only

List the workspace's custom apps the user can see.

Custom apps are small React apps embedded in Fibery views. Use the `id` to work on an app's source code with the custom-app development flow — call `get_fibery_skill({skill: "custom-apps-dev"})` for the full guide.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `fiberymcp_get_databases`

Get Databases · Read-only

Shows the given databases, grouped by space, with their fields. Database names that don't exist are listed in `notFound`.

- Every field has its full `name` (`Space/Field`), the key queries, views, automations and entity writes use, and its `type`. `title: true` marks the field that names entities.
- Selects list their `options`, and a database with a workflow lists its states under `workflow` (field `workflow/state`), each with its `id`.
- A field with more than 1000 options lists the first 1000; query `optionsDatabase` for the rest.
- Relations show `relatedDatabase`, `relatedField` and `cardinality`: a `...-to-many` relation holds a collection. `dependency: true` marks the relations timeline and gantt views draw as dependencies. Formulas and lookups show their `formula` and the `resultType` they compute.
- `readOnly: true` marks a field whose settings no tool changes. Formula and lookup values are computed, never written.

By default it shows every setting, with the keys and values the schema write tools take: read a setting, change it and pass it back as it is. Fields are listed in the order the entity page shows them. Pass `forQuerying: true` to write a query, view, automation or entity values: the same keys, without the settings only schema changes need.

Call `get_fibery_skill({skill: "schema"})` for which tool changes which setting. Call `get_spaces` for the database names.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `databases` (`array`, required): Full database names ("Space/Database")
- `format` (`string`, optional): "toon" (default) to read; "json" inside execute_code, to parse it. One of: `toon`, `json`.
- `forQuerying` (`boolean`, optional): true for only what queries, views, automations and entity writes need: names, types, read-only fields, relations, formula results, option and state ids, number precision. Omit before changing the schema

Example input: `{"databases":[]}`

### `fiberymcp_get_entity_links`

Get Entity Links · Read-only

Generates Fibery web links for entities by their public IDs.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')
- `entityPublicIds` (`array`, required): Array of entity public IDs (e.g., ['42', '43'])

Example input: `{"database":"SoftDev/Task","entityPublicIds":[]}`

### `fiberymcp_get_entity_mention`

Get Entity Mention · Read-only

Builds an inline entity reference for document markdown. When the document is shown, it renders as a "live" entity which has current name, with a link.

Embed the returned string into content passed to the document editing tools (`insert_document_blocks`, `set_block_text`, comment bodies). Call `get_fibery_skill({skill: "documents"})` for the markdown reference.

## Example
```
{
    database: "SoftDev/Task",
    entityId: "123",
    label: "Fix login bug"
}
```

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `database` (`string`, required): Full database name in "Space/Type" format (e.g., 'Projects/Task')
- `entityId` (`string`, required): Entity UUID (fibery/id)
- `label` (`string`, required): Fallback display text

Example input: `{"database":"Projects/Task","entityId":"<entityId>","label":"<label>"}`

### `fiberymcp_get_fibery_skill`

Get Fibery Skill · Read-only

Load the full guide for a Fibery skill domain.

Call this tool when you need the complete reference for a domain that spans multiple tools. Each skill covers the full model, expression syntax, configuration shapes, conditions, and workflow for its related tools.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `skill` (`string`, required): The skill domain to load. Use one of the listed enum values. One of: `automations`, `custom-apps-dev`, `data`, `documents`, `integrations`, `query`, `reports`, `schema`, `views`, `whiteboard`.

Example input: `{"skill":"automations"}`

### `fiberymcp_get_files_meta`

Get Files Meta · Read-only

Lists file attachments on one or more Fibery entities and returns their metadata.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `database` (`string`, required): Full database name in 'Space/Type' format, e.g. 'SoftDev/Task'. Use `schema` to discover available databases.
- `entityIds` (`array`, required): One or more fibery/id UUIDs of the entities whose file attachments to list.
- `field` (`string`, optional): Name of a specific file field to query. Omit to scan all file fields on the database. Use `schema_detailed` to discover available file fields.

Example input: `{"database":"SoftDev/Task","entityIds":[]}`

### `fiberymcp_get_manual_import_link`

Get Manual Import Link · Read-only

Generates a link to the manual import page for a Fibery connector.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `connectorId` (`string`, required): ID of the connector to be used (obtained from get_connectors_list)
- `isSync` (`boolean`, required): Whether the data from the source will be synced continuously (true) or imported once (false)
- `spaceName` (`string`, required): The name of the space to import into
- `dbName` (`string`, optional): The name of the existing database to import into. Leave empty to import into a new database in the space.

Example input: `{"connectorId":"<connectorId>","isSync":true,"spaceName":"<spaceName>"}`

### `fiberymcp_get_me`

Get Me · Read-only

Returns information about the currently authenticated Fibery user.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `fiberymcp_get_report`

Get Report · Read-only

Fetch a Fibery report (vizydrop view) by its UUID, including its tabs, sources, schema, and dimension configuration.

Use `get_reports_list` first to discover available report IDs. The response includes `tabId`, `tabType`, and per-dimension `id` values needed by `update_tab`, `update_dimension`, and `remove_dimension`.

Reports are a specialized domain — call `get_fibery_skill` with `skill: "reports"` for the full report model, expression syntax, palettes, conditions, and workflow.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `reportId` (`string`, required): The UUID of the report view to fetch.

Example input: `{"reportId":"<reportId>"}`

### `fiberymcp_get_reports_list`

Get Reports List · Read-only

List all vizydrop report views in the Fibery workspace.

Returns an array of report summaries with `id` and `title`. Use the `id` field with `get_report` to fetch full details including tab structure and dimension IDs.

Reports are a specialized domain — call `get_fibery_skill` with `skill: "reports"` for the full report model, expression syntax, palettes, conditions, and workflow.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `fiberymcp_get_spaces`

Get Spaces · Read-only

Lists every space you can see with its databases, and your access to each. Call it first, before any tool that needs a database name, then `get_databases` for the fields of the databases you need.

`systemDatabases` are the Fibery databases every workspace has: files, users and comments.

`access` is your access level:
- On a space: `architect` (configures databases and views), `owner`, `editor`, `commenter` or `viewer` for the space's docs, whiteboards and views. A trailing `+` (e.g. `editor+`) grants the same level on every entity of the space.
- On a database: `architect`, `owner`, `editor`, `commenter`, `viewer` for all its entities, `submitter` (creates entities, can't see them), or `user-manager` on the users database (manages users).
- `entity-level`: you see only the entities shared with you. `no-access`: you can't read it. `derived-per-field`: files and comments follow the access to the entity they belong to. `custom`: a custom set of permissions.
- Missing when access couldn't be read.

Access levels are cached for up to 1 hour. Spaces and databases are always current. Pass `refreshAccess: true` when the user says their access changed, or when the data you read contradicts a level shown.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `format` (`string`, optional): "toon" (default) to read; "json" inside execute_code, to parse it. One of: `toon`, `json`.
- `refreshAccess` (`boolean`, optional): Read your access levels again instead of using the cached ones

Example input: `{}`

### `fiberymcp_get_user_mention`

Get User Mention · Read-only

Builds an inline user mention for document markdown, works the same as `get_entity_mention`, but for the `fibery/user` database. When the document is shown, it renders as a "live" user mention.

Embed the returned string into content passed to the document editing tools (`insert_document_blocks`, `set_block_text`, comment bodies). Get user ids via `query` from the `fibery/user` database, or your own id via `get_me`. Call `get_fibery_skill({skill: "documents"})` for the markdown reference.

## Example
```
{
    userId: "123",
    label: "Alice"
}
```

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `label` (`string`, required): Fallback display text
- `userId` (`string`, required): User UUID (fibery/id from the 'fibery/user' database)

Example input: `{"label":"<label>","userId":"<userId>"}`

### `fiberymcp_query`

Query · Read-only

Runs a structured Fibery query to select, filter, order, paginate, and aggregate data.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `query` (`object`, required): No description.
- `params` (`object`, optional): Not used anymore, left for backwards compatibility

Example input: `{"query":{}}`

### `fiberymcp_query_automations`

Query Automations · Read-only

Lists all automation rules or buttons of a database, including each automation's id, triggers, filters and actions with their action ids (needed for `update_automation`).

Call `get_fibery_skill({skill: "automations"})` to interpret the returned trigger/filter/action structures.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `automationType` (`string`, required): rule: runs automatically when a trigger fires. button: shows on entities of the database and runs when a user clicks it. One of: `rule`, `button`.
- `database` (`string`, required): Full database name the automation belongs to (e.g. "SoftDev/Task")

Example input: `{"automationType":"rule","database":"SoftDev/Task"}`

### `fiberymcp_query_views`

Query Views · Read-only

Queries saved views in the Fibery workspace, optionally filtering by ID, public ID, name, or type.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `id` (`string`, optional): Filter by fibery/id of the view
- `publicId` (`string`, optional): Filter by public ID of the view
- `space` (`string`, optional): Filter by name of the space in which the view is contained
- `text` (`string`, optional): Text search in view name or description
- `viewType` (`string`, optional): Filter by view type. One of: `document`, `grid`, `list`, `board`, `timeline`, `calendar`, `map`, `feed`, `gallery`, `gantt`, `form`, `embed`, `report`, `canvas`.
- `withConfig` (`boolean`, optional): Specify whether to include view config (like, what database are present on this view, what fields are shown). true by default. Set to false if not filtering by id filters since there can be many views returned

Example input: `{}`

### `fiberymcp_read_document`

Read Document Blocks · Read-only

Reads a single document as a flat list of addressable blocks with stable ids. Call this before any document editing tool — the returned block ids are required by all of them.

**Call `get_fibery_skill({skill: "documents"})` FIRST** — it covers how to find document secrets (via `query` or `search`), the snapshot anatomy, the block model, inline comments, and the whole editing workflow.

Returns a TOON-encoded snapshot: `version`, `rootBlockIds` (ordered top-level ids), `blocks` in document order (each with `id`, `type`, `parentId` — `null` = top level, `attrs`, `content`, `index`), plus a `comments` section when the document has inline comment threads.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'

Example input: `{"secret":"<secret>"}`

### `fiberymcp_schema`

Schema · Read-only

Returns the high-level workspace structure showing all spaces and databases.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `refreshAccess` (`boolean`, optional): Read your access levels again instead of using the cached ones

Example input: `{}`

### `fiberymcp_schema_detailed`

Schema Detailed · Read-only

Returns detailed schema for specified databases, including fields and related databases.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `databases` (`array`, required): An array of database names (in "Space/Database" format).
- `includeRelatedDatabases` (`boolean`, optional): Whether to include related databases with their descriptions & fields. Defaults to false. Set to true if the schema is small and you want to navigate faster.
- `refreshAccess` (`boolean`, optional): Read your access levels again instead of using the cached ones

Example input: `{"databases":[]}`

### `fiberymcp_search`

Search · Read-only

Searches workspace content using BM-25 keyword matching.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `query` (`string`, required): Search query string
- `database` (`string`, optional): Filter results to a specific database (e.g., 'Projects/Task')
- `limit` (`number`, optional): Maximum number of items to return (default: 20, max: 100)
- `viewType` (`string`, optional): Filter results to a specific view type. One of: `document`, `grid`, `list`, `board`, `timeline`, `calendar`, `map`, `feed`, `gallery`, `gantt`, `form`, `embed`, `report`, `canvas`.

Example input: `{"query":"<query>"}`

### `fiberymcp_search_guide`

Search Guide · Read-only

Fetches relevant information from the Fibery User Guide based on a query.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `query` (`string`, required): The query for searching

Example input: `{"query":"<query>"}`

### `fiberymcp_search_history`

Search History · Read-only

Searches the workspace activity history and returns matching history events.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `actions` (`array`, optional): Filter by action types
- `authorUserId` (`string`, optional): Filter by author's fibery/id
- `database` (`string`, optional): Filter by database name (e.g., 'Projects/Task')
- `entityId` (`string`, optional): Filter by entity fibery/id
- `entityName` (`string`, optional): Filter by entity name (substring match)
- `entityPublicId` (`string`, optional): Filter by entity public ID (requires database to be set)
- `entityState` (`array`, optional): Filter by entity states
- `excludeAutomaticChanges` (`string`, optional): Exclude automatic changes (all excluded by default)
- `limit` (`number`, optional): Maximum number of items to return (default: 50, max: 100)
- `schemaChange` (`array`, optional): Filter by schema change types
- `since` (`string`, optional): Start of time range (ISO 8601). Defaults to 24 hours ago
- `sinceItem` (`string`, optional): Cursor for pagination — last item ID from previous result
- `until` (`string`, optional): End of time range (ISO 8601). Defaults to now. Difference between dates in until and since cannot be more than 12 months

Example input: `{}`

### `fiberymcp_add_chart_tab`

Add Chart Tab · Write

Appends a new chart tab to an existing Fibery report.

**Prerequisite:** You need a `reportId` from `create_report` or `get_reports_list`. Call `display_report_schema` first to discover valid field expressions for the report's sources.

Reports are a specialized domain — call `get_fibery_skill` with `skill: "reports"` for the full report model, expression syntax, palettes, conditions, and workflow.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `reportId` (`string`, required): UUID of the report to add the chart tab to (from create_report or get_reports_list).
- `x` (`array`, required): X-axis dimensions. Put categorical/date dimensions before numeric.
- `y` (`array`, required): Y-axis dimensions. Put categorical/date dimensions before numeric.
- `color` (`object`, optional): Color-coding (legend) dimension. Only one allowed.
- `description` (`string`, optional): Tab description.
- `dimensionConditions` (`array`, optional): Dimension-level filters (must reference expressions already used in the tab).
- `fieldConditions` (`array`, optional): Field-level filters applied to this tab's data.
- `label` (`array`, optional): Label dimensions shown on chart points/bars.
- `palette` (`string`, optional): Color palette. See get_fibery_skill(skill:'reports') for palette selection guidance. One of: `fibery2.0`, `category10`, `accent`, `dark2`, `paired`, `pastel1`, `pastel2`, `set1`, `set2`, `set3`, `setL`, `tableau10`, `brown_blue_green`, `purple_red_green`, `pink_yellow_green`, `purple_orange`, `red_blue`, `red_grey`, `red_yellow_blue`, `red_yellow_green`, `spectral`, `blues`, `greens`, `greys`, `oranges`, `purples`, `blue_green`.
- `size` (`object`, optional): Size-coding dimension. Only one allowed.
- `title` (`string`, optional): Tab title.
- `type` (`string`, optional): Chart type. Defaults to 'scatterplot' if omitted. See get_fibery_skill(skill:'reports') for chart-type guidance. One of: `line`, `scatterplot`, `stacked-bar`, `bar`, `stacked-area`, `area`.

Example input: `{"reportId":"<reportId>","x":[],"y":[]}`

### `fiberymcp_add_comment`

Add Comment · Write

Adds a top-level comment or reply to an existing comment on a Fibery entity.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `content` (`string`, required): Comment content in Markdown format
- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task'). Must be a database that supports comments (has the comments/comments collection).
- `entityId` (`string`, required): fibery/id of the entity to comment on
- `parentCommentId` (`string`, optional): fibery/id of the parent comment when replying. Omit for a top-level comment. The parent comment must belong to the same entity (entityId) — otherwise the request is rejected.

Example input: `{"content":"<content>","database":"SoftDev/Task","entityId":"<entityId>"}`

### `fiberymcp_add_file_from_url`

Add File From Url · Write

Attaches a file to a Fibery entity by downloading it from a publicly accessible URL.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')
- `entityId` (`string`, required): fibery/id of an entity
- `field` (`string`, required): Exact name of a file field on this database (e.g., 'Files/Files' or 'Space/Files'). Confirm via `schema_detailed` tool call. Document fields cannot be used.
- `fileName` (`string`, required): Name of the file to be added (e.g., 'Report.pdf')
- `url` (`string`, required): HTTP(s) URL to download the file from

Example input: `{"database":"SoftDev/Task","entityId":"<entityId>","field":"Files/Files","fileName":"Report.pdf","url":"<url>"}`

### `fiberymcp_add_inline_comments`

Add Inline Comments · Write

Adds inline comments to text inside ONE block. The matched text becomes the highlighted range; block content is NOT changed. The author is the current user.

Call `read_document` first to get block ids.
Call `get_fibery_skill({skill: "documents"})` for more details. For entity-level comments (the Comments field of an entity), use `add_comment` instead.

## Example
```
{
    secret: "123",
    comments: [{blockId: "456", exact: "comprehensive test suite", content: "Which suites exactly? Consider linking them."}]
}
```

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `comments` (`array`, required): Comments to attach
- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'

Example input: `{"comments":[],"secret":"<secret>"}`

### `fiberymcp_add_metric_tab`

Add Metric Tab · Write

Appends a new metric tab to an existing Fibery report.

**Prerequisite:** You need a `reportId` from `create_report` or `get_reports_list`. Call `display_report_schema` first to discover valid field expressions for the report's sources.

**Scalar expressions only:** Every metric expression must be a scalar aggregate (e.g. `COUNT([ID])`). Raw field references are not valid here.

Reports are a specialized domain — call `get_fibery_skill` with `skill: "reports"` for the full report model, expression syntax, palettes, conditions, and workflow.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `metrics` (`array`, required): Scalar metrics to display. Each expression must be scalar (e.g. COUNT([ID])). Never duplicate.
- `reportId` (`string`, required): UUID of the report to add the metric tab to (from create_report or get_reports_list).
- `description` (`string`, optional): Tab description.
- `dimensionConditions` (`array`, optional): Dimension-level filters (must reference expressions already used in the tab).
- `fieldConditions` (`array`, optional): Field-level filters applied to this tab's data.
- `title` (`string`, optional): Tab title.

Example input: `{"metrics":[],"reportId":"<reportId>"}`

### `fiberymcp_add_suggestion_comments`

Add Suggestion Comments · Write

Adds inline comments anchored to pending suggestions (tracked changes). The thread covers the suggestion's range and follows it until the suggestion is accepted or rejected; after that it lives on as an ordinary text comment. It does NOT change the document and does NOT resolve the suggestion.

Call `read_document` first â the `suggestions` section lists pending suggestions with their ids.
Call `get_fibery_skill({skill: "documents"})` for the suggestion workflow.

Use this to discuss someone's suggestion (question it, explain a concern) instead of accepting/rejecting it.
To comment on regular text, use `add_inline_comments`.
To attach a rationale to a suggestion you are making yourself, pass `comment` on the suggest-mode editing call instead â no second call needed.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `comments` (`array`, required): Comments to attach
- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'

Example input: `{"comments":[],"secret":"<secret>"}`

### `fiberymcp_add_table_tab`

Add Table Tab · Write

Appends a new table tab to an existing Fibery report.

**Prerequisite:** You need a `reportId` from `create_report` or `get_reports_list`. Call `display_report_schema` first to discover valid field expressions for the report's sources.

Reports are a specialized domain — call `get_fibery_skill` with `skill: "reports"` for the full report model, expression syntax, palettes, conditions, and workflow.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `columns` (`array`, required): Table columns. Never duplicate expressions across columns.
- `reportId` (`string`, required): UUID of the report to add the table tab to (from create_report or get_reports_list).
- `description` (`string`, optional): Tab description.
- `dimensionConditions` (`array`, optional): Dimension-level filters (must reference expressions already used in the tab).
- `fieldConditions` (`array`, optional): Field-level filters applied to this tab's data.
- `groupBy` (`array`, optional): Additional group-by dimensions. Do not reuse an expression already used as a column.
- `title` (`string`, optional): Tab title.

Example input: `{"columns":[],"reportId":"<reportId>"}`

### `fiberymcp_attach_files`

Attach Files · Write

Attaches files that are already stored in Fibery to an entity's file field (not a document field), by the files' `fibery/id`. Use it for a file uploaded with `prepare_file_upload` (its curl response contains `fibery/id`), a file the user attached in chat, or a file from another entity's file field.

Call `get_fibery_skill({skill: "data"})` for how to work with Fibery data. Prerequisites: `schema_detailed` for the file field name; `query`/`search` to find the entity id.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')
- `entityId` (`string`, required): fibery/id of an entity
- `field` (`string`, required): Exact name of a file field on this database (e.g., 'Files/Files' or 'Space/Files'). Confirm via `schema_detailed` tool call. Document fields cannot be used.
- `fileIds` (`array`, required): fibery/id of each file to attach (a fibery/file entity, not its secret)

Example input: `{"database":"SoftDev/Task","entityId":"<entityId>","field":"Files/Files","fileIds":[]}`

### `fiberymcp_create_automation`

Create Automation · Write

Creates an automation rule (runs on a trigger) or button (runs on user click) for a database. Rules require at least one trigger; buttons take no triggers or filter.

Call `get_fibery_skill({skill: "automations"})` first for trigger shapes, the FilterNode filter format and action value types. Then call `display_automations_schema` for the database's available actions.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `actions` (`array`, required): Actions the automation executes, in order
- `automationType` (`string`, required): rule: runs automatically when a trigger fires. button: shows on entities of the database and runs when a user clicks it. One of: `rule`, `button`.
- `database` (`string`, required): Full database name the automation belongs to (e.g. "SoftDev/Task")
- `name` (`string`, required): Automation name
- `description` (`string`, optional): Short description of what the automation does
- `filter` (`object`, optional): Rules only. FilterNode object limiting which entities the rule runs on, e.g. {nodeType: "text", args: {fieldPath: ["Name"], operator: "contains", value: "API"}} â see the automations skill.
- `triggers` (`array`, optional): Rules only. Trigger objects, e.g. {trigger: "created"} â all shapes are documented in the automations skill.

Example input: `{"actions":[],"automationType":"rule","database":"SoftDev/Task","name":"SoftDev/Days Since Created"}`

### `fiberymcp_create_custom_app`

Create Custom App · Write

Create a new Fibery custom app, placed in the user's private space unless `spaceName` is provided.

This tool does NOT generate any app code — it only creates an empty app scaffolded from the starter template.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `kind` (`string`, required): "view": App view in a space (left menu, own page). "layout": Entity View tab on every entity page of one database. Entity views are "layout", not "view". One of: `view`, `layout`.
- `name` (`string`, required): Name of the new custom app
- `databaseName` (`string`, optional): Required for kind "layout": database whose entity pages get the tab.
- `spaceName` (`string`, optional): kind "view" only. Defaults to the user's private space.

Example input: `{"kind":"view","name":"SoftDev/Days Since Created"}`

### `fiberymcp_create_custom_app_dev_token`

Create Custom App Dev Token · Write

Issue a short-lived (~1 hour) access token for developing a custom app locally. The token authenticates only the app's `get-source-files` / `update-source-files` endpoints, passed as the `custom-app-dev-token` query parameter — see `get_fibery_skill({skill: "custom-apps-dev"})` for the full development loop.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `appId` (`string`, required): Id of the custom app (from get_custom_apps_list or create_custom_app).

Example input: `{"appId":"<appId>"}`

### `fiberymcp_create_databases`

Create Databases · Write

Creates one or more new databases within an existing space.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `databases` (`array`, required): No description.

Example input: `{"databases":[]}`

### `fiberymcp_create_entities`

Create Entities · Write

Creates one or more entities in a Fibery database.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')
- `entities` (`array`, required): No description.

Example input: `{"database":"SoftDev/Task","entities":[]}`

### `fiberymcp_create_files_fields`

Create Files Fields · Write

Creates file attachment fields in one or more databases.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `fields` (`array`, required): No description.

Example input: `{"fields":[]}`

### `fiberymcp_create_formula_field`

Create Formula Field · Write

Creates a formula field in a database; the formula expression is generated from a plain-language description.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')
- `description` (`string`, required): Description of what the formula should calculate. The formula expression will be generated from this
- `name` (`string`, required): Name of the formula field in {Space}/{Field} format (e.g., 'SoftDev/Days Since Created'). Space prefix must match the database space

Example input: `{"database":"SoftDev/Task","description":"<description>","name":"SoftDev/Days Since Created"}`

### `fiberymcp_create_multi_select_fields`

Create Multi Select Fields · Write

Creates multi-select fields with predefined options in one or more databases.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `fields` (`array`, required): No description.

Example input: `{"fields":[]}`

### `fiberymcp_create_primitive_fields`

Create Primitive Fields · Write

Creates primitive fields (text, number, date, boolean, etc.) in one or more databases.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `fields` (`array`, required): No description.

Example input: `{"fields":[]}`

### `fiberymcp_create_relation_fields`

Create Relation Fields · Write

Creates relation fields between databases, establishing links in both the source and target database.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `fields` (`array`, required): No description.

Example input: `{"fields":[]}`

### `fiberymcp_create_report`

Create Report · Write

Creates a Fibery report with sources and a title.

The report is placed in the user's private space unless `spaceName` is provided.

Prerequisites: call `schema` to discover valid database names; call `display_report_schema` to discover field expressions before configuring dimensions.

Reports are a specialized domain — call `get_fibery_skill` with `skill: "reports"` for the full report model, expression syntax, palettes, conditions, and workflow.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `sources` (`array`, required): One or more source databases for the report.
- `title` (`string`, required): Title of the new report.
- `sourceMode` (`string`, optional): Source mode: 'current' (default) queries live entity state; 'historical' resolves a history-timeline source for time-in-state / change-frequency analysis. One of: `current`, `historical`.
- `spaceName` (`string`, optional): Space to place the report in. Defaults to the user's private space.

Example input: `{"sources":[],"title":"<title>"}`

### `fiberymcp_create_single_select_fields`

Create Single Select Fields · Write

Creates single-select fields with predefined options in one or more databases.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `fields` (`array`, required): No description.

Example input: `{"fields":[]}`

### `fiberymcp_create_space`

Create Space · Write

Creates a new space in the Fibery workspace.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): Space name (e.g., "SoftDev")
- `color` (`string`, optional): Color for the space (hex color code, e.g., '#FF5722')
- `description` (`string`, optional): Description for the space

Example input: `{"name":"SoftDev"}`

### `fiberymcp_create_spaces`

Create Spaces · Write

Creates one or more spaces in the workspace.

Call `get_fibery_skill({skill: "schema"})` for naming rules. Prerequisites: `schema` to check existing spaces.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `spaces` (`array`, required): Spaces to create

Example input: `{"spaces":[]}`

### `fiberymcp_create_view`

Create View · Write

Creates a saved view (grid, board, timeline, calendar, etc.) or standalone document in the Fibery workspace.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): Name of the view
- `viewType` (`string`, required): grid: spreadsheet table (supports hierarchical groupBy). list: simple list (prefer grid). board: kanban grouped by relation/enum on x and optionally y. timeline: time bars with optional milestones and dependencies. calendar: date events. map: geographic plot of a location field. feed: rich-text feed of a document field. gallery: card gallery with cover images. gantt: hierarchical timeline with dependencies. form: data input form. document: standalone markdown (created empty; its body is edited separately via the document tools). report: created empty, modify via report tools. canvas: whiteboard/freeform diagram â created empty, config is ignored; elements are managed via execute_whiteboard_commands (call get_fibery_skill({skill: 'whiteboard'}) first). One of: `document`, `grid`, `list`, `board`, `timeline`, `calendar`, `map`, `feed`, `gallery`, `gantt`, `form`, `embed`, `report`, `canvas`.
- `config` (`object`, optional): View configuration object. Shape depends on viewType â for anything beyond a basic grid/list with no filters or ordering, call get_fibery_skill({skill: 'views'}) first.
- `description` (`string`, optional): Short description of the view in MD format
- `space` (`string`, optional): Space name to create the view in. Pass "Private" to save in Private space. By default, inferred from databases; canvas views default to "Private".

Example input: `{"name":"SoftDev/Days Since Created","viewType":"document"}`

### `fiberymcp_create_whiteboard_elements`

Create Whiteboard Elements · Write

Creates elements (shapes, text, links, sticky notes, sections, pictures, videos, freehand pen strokes) on a Fibery Whiteboard and returns a link to the whiteboard view.

**Call `get_fibery_skill({skill: "whiteboard"})` first** â it covers every element type's full property set, the coordinate system, placeholder-ID resolution, and styling/placement conventions. Skipping it leads to invalid or overlapping elements.

Element `ID`s may be placeholders you invent (e.g. `"node1"`) â they resolve to real numeric IDs automatically within the call, including cross-references between the elements you create (a Link's `points[].nodeID`, a label's `parent`, `sectionID`). The returned `idMap` gives you the real ID for each placeholder. Use those numeric IDs with `update_whiteboard_elements` and `delete_whiteboard_elements`; placeholder mappings are not retained across calls.

Results reference Fibery objects by `url`: use it when referencing the object.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `boardId` (`string`, required): fibery/id of the whiteboard view
- `elements` (`array`, required): Elements to create

Example input: `{"boardId":"<boardId>","elements":[]}`

### `fiberymcp_create_workflow_field`

Create Workflow Field · Write

Creates a workflow (state) field for tracking entity status through defined stages.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')
- `defaultOption` (`string`, required): Default state name for new entities
- `options` (`array`, required): Array of workflow state options

Example input: `{"database":"SoftDev/Task","defaultOption":"<defaultOption>","options":[]}`

### `fiberymcp_create_workflow_fields`

Create Workflow Fields · Write

Creates workflow (state) fields, one per database and several databases in one call, for tracking entity status through stages â do NOT use a single-select for status-like fields. Only ONE workflow field can exist per database; it is always named "workflow/state".

Call `get_fibery_skill({skill: "schema"})` for option types, colors, and default option rules. Prerequisites: `schema_detailed` to verify no workflow field exists yet (otherwise use `update_workflow_fields`).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `fields` (`array`, required): One workflow field per database

Example input: `{"fields":[]}`

### `fiberymcp_display_automations_schema`

Display Automations Schema · Write

Returns the catalog of automation actions available for a database (action names, argument ids and accepted value shapes). The action catalog differs per database and per automation type, so ALWAYS call this before `create_automation` or before adding/changing actions with `update_automation`.

Call `get_fibery_skill({skill: "automations"})` first for value types, trigger shapes and the FilterNode format.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `automationType` (`string`, required): rule: runs automatically when a trigger fires. button: shows on entities of the database and runs when a user clicks it. One of: `rule`, `button`.
- `database` (`string`, required): Full database name the automation belongs to (e.g. "SoftDev/Task")

Example input: `{"automationType":"rule","database":"SoftDev/Task"}`

### `fiberymcp_execute_code`

Execute Code · Write

Executes JavaScript code against the user's Fibery workspace. Prefer it over a series of separate tool calls when a task needs multiple dependent steps: query â transform â query again, loops, aggregations, or joining data across databases. For a single call, use the corresponding tool directly.

## Available functions
All tools you have available, are also available inside the code as async JavaScript functions. Names, input objects and output shapes are IDENTICAL to the tools â everything you know about calling them applies. Use `await` for function calls, and store results in variables to later use them:

There is one extra function:
- `log(message: string)` â prints a line to the execution report. This is the ONLY way to see data: the result you get back consists of logged lines, a top-level `return` is ignored. Log strings only â use `JSON.stringify(...)` for objects, plain text without Markdown.

## Rules
- Each call runs a fresh script: variables do NOT persist between `execute_code` calls.
- Call tools by their exact snake_case names as plain functions: `await update_entities({...})`, never `updateEntities(...)` or `tools.update_entities(...)`.
- The code runs in a bare JavaScript (ECMAScript) environment, not a browser or Node.js. Available: standard built-ins such as `JSON`, `Math`, `Date`, `Promise`, `Map`, `Set`, `RegExp`, `Intl`, and `Array`/`String`/`Object` methods. NOT available: `setTimeout`/`setInterval` (there is no way to sleep or delay), `TextDecoder`/`TextEncoder`, `atob`/`btoa`, `Buffer`, `URL`, `fetch`, `structuredClone`, `window`, `document`, `process`, `require`, `eval`, `new Function`.
- No imports and no npm packages â only the tool functions and `log` above plus standard JavaScript built-ins.
- Do not declare variables with the same names as the functions (e.g. no `const query = ...`).

## Examples
Fetch all leads with pagination, then log a summary:

```javascript
const pageSize = 1000;
let offset = 0;
const all = [];
while (true) {
  const page = await query({
    query: {
      "q/from": "CRM/Lead",
      "q/select": {"Id": ["fibery/id"], "Name": ["CRM/Name"]},
      "q/limit": pageSize,
      "q/offset": offset,
    },
  });
  all.push(...page.result);
  if (!page.hasNext) break;
  offset += pageSize;
}
log(`Total leads: ${all.length}`);
log(JSON.stringify(all.slice(0, 3)));
```

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `code` (`string`, required): JavaScript code to execute

Example input: `{"code":"<code>"}`

### `fiberymcp_execute_whiteboard_commands`

Execute Whiteboard Commands · Write

Creates, updates, or deletes elements (shapes, text, links, sticky notes, sections, freehand pen strokes, ...) on a Fibery Whiteboard.
Also returns a link to the whiteboard view.

**Call `get_fibery_skill({skill: "whiteboard"})` first** â it covers every element type's full property set, the coordinate system, placeholder-ID resolution, and styling/placement conventions. Skipping it leads to invalid or overlapping elements.

Element `ID`s may be placeholders you invent (e.g. `"node1"`) â they resolve to real numeric IDs automatically within the call, including cross-references between elements. The returned `idMap` gives you the real ID for each placeholder used in this call. Use those numeric IDs in later calls; placeholder mappings are not retained across calls.

Results reference Fibery objects by `url`: use it when referencing the object.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `boardId` (`string`, required): fibery/id of the whiteboard view to update
- `commands` (`array`, required): Commands to execute, in order

Example input: `{"boardId":"<boardId>","commands":[]}`

### `fiberymcp_insert_document_blocks`

Insert Document Blocks · Write

Inserts new blocks into a document from markdown.

Call `get_fibery_skill({skill: "documents"})` first. It covers the full markdown reference (headings, lists, tables, code, math, images/videos, callouts, highlights, entity references), content adaptation rules, and the editing workflow.
Call `read_document` for block ids to anchor to (not needed when inserting at the document root with `parent: {blockId: null, ...}`).

## Example
Append a section to the end of a document:
```
{
    secret: "123",
    inserts: [{parent: {blockId: null, position: "end"}, content: "## Next steps\n\n- [ ] review\n- [ ] deploy"}]
}
```

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `inserts` (`array`, required): Insertions to perform. Each item must have exactly ONE anchor: after, before or parent
- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'
- `mode` (`string`, optional): apply (default): change the document directly. suggest: record the whole batch as tracked-change suggestions for a reviewer to accept or reject â the document does not change until a suggestion is accepted. One of: `apply`, `suggest`.

Example input: `{"inserts":[],"secret":"<secret>"}`

### `fiberymcp_move_document_blocks`

Move Document Blocks · Write

Moves blocks (each with all its children) to a new position in the document. 

Call `read_document` first to get block ids.
Call `get_fibery_skill({skill: "documents"})` for the block model and the editing workflow.

## Example
Move a block to the end of the document:
```
{
    secret: "123",
    moves: [{blockId: "456", parent: {blockId: null, position: "end"}}]
}
```

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `moves` (`array`, required): Moves to perform. Each item must have exactly ONE anchor: after, before or parent
- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'

Example input: `{"moves":[],"secret":"<secret>"}`

### `fiberymcp_prepare_file_upload`

Prepare File Upload · Write

Uploads a file from the user's LOCAL machine to Fibery. Use it only when you can run shell commands and the file is on local disk. For a file at a public URL, call `add_file_from_url` instead.

1. Call this tool. It returns a `secret` and a `curlCommand`.
2. Run `curlCommand` in your shell, replacing `<LOCAL_FILE_PATH>` with the path of the local file. The file goes straight to Fibery, not through this conversation, and keeps its local file name. Run it before `expiresAt`.
3. On success curl prints the created file as JSON. The file is not attached anywhere yet:
   - File field: `attach_files` with its `fibery/id` from that JSON.
   - Document: `![alt](/api/files/<secret>)` in the markdown of `insert_document_blocks`, `replace_document_blocks` or `set_block_text`.

Each upload is for one file; call this tool again for every file.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `mimeType` (`string`, optional): Pass ONLY for video files, e.g. video/mp4 or video/quicktime. Without it a video is stored as application/octet-stream and Fibery shows no thumbnail or player. Omit for all other files.

Example input: `{}`

### `fiberymcp_replace_document_blocks`

Replace Document Blocks · Write

Replaces a block â with all its children â by the blocks its markdown converts to, in the same place. Use it to rewrite a block as something other than one text block: a paragraph into a heading plus a list, a list into prose, a callout into plain paragraphs.

Call `read_document` first to get block ids.
Call `get_fibery_skill({skill: "documents"})` for the markdown reference, content adaptation rules and the editing workflow.

A table is replaceable only as a whole, not by row or cell.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `blocks` (`array`, required): Blocks to replace
- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'
- `mode` (`string`, optional): apply (default): change the document directly. suggest: record the whole batch as tracked-change suggestions for a reviewer to accept or reject â the document does not change until a suggestion is accepted. One of: `apply`, `suggest`.

Example input: `{"blocks":[],"secret":"<secret>"}`

### `fiberymcp_reply_document_comment`

Reply to Document Comment · Write

Adds replies to existing inline comment threads in a document. The reply author is the current user.

Call `get_fibery_skill({skill: "documents"})` for the comment thread model.

## Example
```
{
    secret: "123",
    replies: [{commentId: "456", content: "Done — rewrote the section above."}]
}
```

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `replies` (`array`, required): Replies to add
- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'

Example input: `{"replies":[],"secret":"<secret>"}`

### `fiberymcp_resolve_document_suggestions`

Resolve Document Suggestions · Write

Accepts or rejects pending suggestions (tracked changes) in a document. Resolving changes the document directly: accepting a deletion removes the content, rejecting it keeps it; accepting an insertion keeps the inserted content, rejecting it removes it.

Call `read_document` first â the `suggestions` section lists every pending suggestion with its id, author and the blocks it touches.
Call `get_fibery_skill({skill: "documents"})` for the suggestion workflow.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'
- `all` (`string`, optional): Resolve ALL pending suggestions at once. One of: `accept`, `reject`.
- `resolutions` (`array`, optional): Suggestions to resolve, in order. Provide either this or 'all', not both

Example input: `{"secret":"<secret>"}`

### `fiberymcp_submit_feedback`

Submit Feedback · Write

Report to the Fibery team that the Fibery tools were not enough to complete the user's task.

Call it once per task, when you could not finish the task, or finished only part of it, because a Fibery toolset:
- is missing a tool required for the job (difference between what user can see/do on UI and via tools provided)
- is limited (a tool exists but lacks an option or a setting you needed);
- is clunky (it took many calls, a workaround, or a guess to get the result).

Do NOT call it when:
- the task succeeded with the tools as designed;
- the failure came from expected reasons: missing permissions, missing data, or an unclear request;
- you made a mistake in a tool's input and fixed it on retry.

Write every field so that someone outside the user's company can read it. Describe the use case in general terms: no names of people, companies, spaces, databases or entities, no emails, no URLs, and no workspace content.

After the call, tell the user in one sentence that you reported the gap to the Fibery team.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `goal` (`string`, required): What you were trying to do in Fibery when the tools fell short, e.g. "Embed a custom app in a document"
- `outcome` (`string`, required): How far you got: which tools you tried, what each could not do, and the workaround you used, if any
- `useCase` (`string`, required): Why the user needed it, in general terms, e.g. "Show a live prototype inside a feature spec". No names, emails, URLs or workspace content
- `model` (`string`, optional): Your model name, e.g. "claude-opus-4-5", if you know it

Example input: `{"goal":"Embed a custom app in a document","outcome":"<outcome>","useCase":"Show a live prototype inside a feature spec"}`

### `fiberymcp_update_automation`

Update Automation · Write

Updates an existing automation rule or button: rename, enable/disable, replace triggers or filter, and add/change/delete actions. Never delete and recreate an automation to modify it â use this tool.

Call `query_automations` (or `get_automation`) first to get the automation id and its action ids. Call `get_fibery_skill({skill: "automations"})` for trigger/filter/action formats, and `display_automations_schema` before adding or changing actions.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `automationType` (`string`, required): rule: runs automatically when a trigger fires. button: shows on entities of the database and runs when a user clicks it. One of: `rule`, `button`.
- `id` (`string`, required): Id of the rule or button to update (from query_automations)
- `addActions` (`array`, optional): New actions to append
- `changeActions` (`array`, optional): Replace existing actions in full â get action ids via query_automations or get_automation
- `deleteActionIds` (`array`, optional): Ids of actions to remove
- `description` (`string`, optional): New description
- `enabled` (`boolean`, optional): Enable or disable the automation
- `filter` (`object`, optional): Rules only. Replaces the filter with this FilterNode object (see the automations skill).
- `name` (`string`, optional): New automation name
- `triggers` (`array`, optional): Rules only. Replaces ALL triggers â include the ones that should stay. Shapes are documented in the automations skill.

Example input: `{"automationType":"rule","id":"<id>"}`

### `fiberymcp_update_databases`

Update Databases · Write

Sets or removes the descriptions of databases, changes their color, and adds comments, avatar, icon, documents or whiteboards on each entity. Rename or move them with `rename_databases`.

Call `get_fibery_skill({skill: "schema"})` for the color palette and what comments, avatar, icon, documents and whiteboards add. Prerequisites: `get_spaces` to get current database names.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `databases` (`array`, required): Databases to update; omitted settings stay as they are

Example input: `{"databases":[]}`

### `fiberymcp_update_whiteboard_elements`

Update Whiteboard Elements · Write

Changes existing elements on a Fibery Whiteboard: moves, resizes, restyles or rewrites them and returns a link to the whiteboard view.

Give each element its numeric `ID` (from the `idMap` of `create_whiteboard_elements`, or from `query_views` with `viewType: "canvas"`) plus only the properties to change. **Call `get_fibery_skill({skill: "whiteboard"})` first** for the properties of each element type.

Results reference Fibery objects by `url`: use it when referencing the object.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `boardId` (`string`, required): fibery/id of the whiteboard view
- `elements` (`array`, required): Elements to change

Example input: `{"boardId":"<boardId>","elements":[]}`

### `fiberymcp_update_workflow_fields`

Update Workflow Fields · Write

Updates existing workflow (state) fields' options, one entry per database and several databases in one call â full replacement (`options`) or incremental (`addOptions` / `updateOptions` / `removeOptions`). Fails if the database has no workflow field (use `create_workflow_fields` then). Removing the current default option (including leaving it out of a full replacement) requires setting `defaultOption` in the same call.

Call `get_fibery_skill({skill: "schema"})` for update modes and which option properties can be changed. Prerequisites: `schema_detailed` to see existing option names.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `fields` (`array`, required): Workflow field updates, one per database

Example input: `{"fields":[]}`

### `fiberymcp_add_collection_items`

Add Collection Items · Destructive

Adds related entities to a Collection field on a Fibery entity.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')
- `entityId` (`string`, required): fibery/id of an entity
- `field` (`string`, required): The name of the collection field
- `items` (`array`, required): An array of related entity ids to add to the collection. Each entry must be fibery/id of the entity to add

Example input: `{"database":"SoftDev/Task","entityId":"<entityId>","field":"Files/Files","items":[]}`

### `fiberymcp_delete_automation`

Delete Automation · Destructive

Permanently deletes an automation rule or button. To modify an automation, use `update_automation` instead of deleting and recreating it.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `automationType` (`string`, required): rule: runs automatically when a trigger fires. button: shows on entities of the database and runs when a user clicks it. One of: `rule`, `button`.
- `id` (`string`, required): Id of the rule or button to delete (from query_automations)

Example input: `{"automationType":"rule","id":"<id>"}`

### `fiberymcp_delete_databases`

Delete Databases · Destructive

Deletes one or more databases from a space; restorable via the Activity Log.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `databases` (`array`, required): Array of full database names to delete (e.g., ["SoftDev/Tasks"])

Example input: `{"databases":[]}`

### `fiberymcp_delete_document_blocks`

Delete Document Blocks · Destructive

Deletes blocks from a document, each with all its children.

Call `read_document` first to get block ids.
Call `get_fibery_skill({skill: "documents"})` for the block model and the editing workflow.

Delete a `table` only by the whole `table` block's id — `table_row`, `table_cell` and `table_header` CANNOT be deleted, adding/removing rows or columns is not supported.

## Example
```
{
    secret: "123",
    blockIds: ["456", "789"]
}
```

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `deletions` (`array`, required): Blocks to delete
- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'
- `mode` (`string`, optional): apply (default): change the document directly. suggest: record the whole batch as tracked-change suggestions for a reviewer to accept or reject â the document does not change until a suggestion is accepted. One of: `apply`, `suggest`.

Example input: `{"deletions":[],"secret":"<secret>"}`

### `fiberymcp_delete_entities`

Delete Entities · Destructive

Permanently deletes entities from a database by their IDs.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')
- `ids` (`array`, required): Array of entity IDs (fibery/id) to delete

Example input: `{"database":"SoftDev/Task","ids":[]}`

### `fiberymcp_delete_fields`

Delete Fields · Destructive

Deletes one or more fields from their databases; restorable via the Activity Log.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `fields` (`array`, required): No description.

Example input: `{"fields":[]}`

### `fiberymcp_delete_space`

Delete Space · Destructive

Deletes a space and all its databases from the workspace; restorable via the Activity Log.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): Space name to delete (e.g., "SoftDev")

Example input: `{"name":"SoftDev"}`

### `fiberymcp_delete_spaces`

Delete Spaces · Destructive

Deletes one or more spaces with all their databases. The built-in `fibery` space cannot be deleted. Restorable by the user via the Activity Log.

Call `get_fibery_skill({skill: "schema"})` for deletion semantics. Prerequisites: `schema` to get space names.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `spaces` (`array`, required): Names of spaces to delete (e.g., ["SoftDev"])

Example input: `{"spaces":[]}`

### `fiberymcp_delete_views`

Delete Views · Destructive

Deletes one or more Fibery views by ID; the underlying data is not removed.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `ids` (`array`, required): An array of fibery/id strings (of views) to be deleted

Example input: `{"ids":[]}`

### `fiberymcp_delete_whiteboard_elements`

Delete Whiteboard Elements · Destructive

Deletes elements from a Fibery Whiteboard by their numeric IDs (from the `idMap` of `create_whiteboard_elements`, or from `query_views` with `viewType: "canvas"`). Links attached to a deleted element, and their labels, are deleted with it.
Also returns a link to the whiteboard view.

Never delete the board itself (ID `1`).

Results reference Fibery objects by `url`: use it when referencing the object.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `boardId` (`string`, required): fibery/id of the whiteboard view
- `ids` (`array`, required): IDs of the elements to delete

Example input: `{"boardId":"<boardId>","ids":[]}`

### `fiberymcp_delete_workflow_field`

Delete Workflow Field · Destructive

Deletes the workflow (state) field from a database; restorable via the Activity Log.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')

Example input: `{"database":"SoftDev/Task"}`

### `fiberymcp_remove_collection_items`

Remove Collection Items · Destructive

Removes related entities from a Collection field on a Fibery entity.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')
- `entityId` (`string`, required): fibery/id of an entity
- `field` (`string`, required): The name of the collection field
- `items` (`array`, required): An array of related entity ids to remove from the collection. Each entry must be fibery/id of the entity to add

Example input: `{"database":"SoftDev/Task","entityId":"<entityId>","field":"Files/Files","items":[]}`

### `fiberymcp_remove_dimension`

Remove Dimension · Destructive

Removes a single dimension from a tab in a Fibery report.

Use `get_report` to find the `tabId`, `tabType`, and the dimension `id` (from `result.tabs[].x[].id`, `.y[].id`, `.columns[].id`, `.metrics[].id`, etc.).

**This action is irreversible** — the dimension is permanently removed from the tab's specification.

Reports are a specialized domain — call `get_fibery_skill` with `skill: "reports"` for the full report model, expression syntax, palettes, conditions, and workflow.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `dimensionId` (`string`, required): ID of the dimension to remove (from get_report result.tabs[].x[].id, .y[].id, .columns[].id, etc.).
- `reportId` (`string`, required): UUID of the report containing the tab.
- `tabId` (`string`, required): ID of the tab containing the dimension (from get_report result.tabs[].id).
- `tabType` (`string`, required): Type of the tab — required so the server picks the right update command. One of: `chart`, `table`, `metric`.

Example input: `{"dimensionId":"<dimensionId>","reportId":"<reportId>","tabId":"<tabId>","tabType":"chart"}`

### `fiberymcp_remove_tab`

Remove Tab · Destructive

Removes a tab from an existing Fibery report.

Use `get_report` to find the `tabId` of the tab you want to remove (each tab object in `result.tabs` has an `id` field).

**This action is irreversible** — the tab and all its dimensions/conditions will be permanently deleted.

Reports are a specialized domain — call `get_fibery_skill` with `skill: "reports"` for the full report model, expression syntax, palettes, conditions, and workflow.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `reportId` (`string`, required): UUID of the report containing the tab.
- `tabId` (`string`, required): ID of the tab to remove (from get_report result.tabs[].id).

Example input: `{"reportId":"<reportId>","tabId":"<tabId>"}`

### `fiberymcp_rename_databases`

Rename Databases · Destructive

Renames one or more databases, optionally moving them to a different space.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `databases` (`array`, required): No description.

Example input: `{"databases":[]}`

### `fiberymcp_rename_fields`

Rename Fields · Destructive

Renames one or more fields within their databases.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `fields` (`array`, required): No description.

Example input: `{"fields":[]}`

### `fiberymcp_replace_block_text`

Replace Block Text · Destructive

Replaces one occurrence of exact text inside a block, leaving the rest untouched. The preferred tool for small fixes — surrounding formatting and inline comments survive.

Call `read_document` first to get block ids.
Call `get_fibery_skill({skill: "documents"})` for selector semantics, the block model, and the editing workflow.

`exact` is the block's plain text with marks stripped, as shown in `read_document` — never markdown (e.g., match by `text`, not by `**text**`). `replacement` is inserted literal: markdown/HTML is NOT parsed and no marks are applied, so this tool cannot add or change formatting (bold, underline, links, colors).
To change formatting on a span, rewrite the whole block with `set_block_text`.

## Example
```
{
    secret: "123",
    replacements: [{blockId: "456", exact: "teh", replacement: "the"}]
}
```

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `replacements` (`array`, required): Replacements to perform
- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'
- `mode` (`string`, optional): apply (default): change the document directly. suggest: record the whole batch as tracked-change suggestions for a reviewer to accept or reject â the document does not change until a suggestion is accepted. One of: `apply`, `suggest`.

Example input: `{"replacements":[],"secret":"<secret>"}`

### `fiberymcp_set_block_attrs`

Set Block Attributes · Destructive

Merges attributes into blocks' attrs (e.g. heading level, task state, code block language, callout icon).

Call `read_document` first to get block ids.
Call `get_fibery_skill({skill: "documents"})` for the per-block-type attrs catalog.

## Example
Turn a heading into level 3 and mark a task done:
```
{
    secret: "123",
    blocks: [
        {blockId: "456", attrs: {level: 3}},
        {blockId: "789", attrs: {state: "DONE"}}
    ]
}
```

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `blocks` (`array`, required): Attribute updates to perform
- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'

Example input: `{"blocks":[],"secret":"<secret>"}`

### `fiberymcp_set_block_text`

Set Block Text · Destructive

Rewrites the inline content of text blocks from markdown. Keeps each block's type, attrs and id.

Call `read_document` first to get block ids.
Call `get_fibery_skill({skill: "documents"})` for the block model, the inline markdown reference, and the editing workflow.

**Prefer `replace_block_text` for small fixes** — it touches only the matched text and preserves surrounding formatting and comments. Use this tool to rewrite a whole block.

Each `content` must resolve to a **single top-level block** — it replaces one block's inline content, it does NOT add blocks. Multi-block markdown (heading + paragraph, several paragraphs, a list, `---`) is rejected. To add blocks use `insert_document_blocks`; to change a block's type use `set_block_attrs`.

## Example
```
{
    secret: "123",
    blocks: [{blockId: "456", content: "Updated **summary** of findings"}]
}
```

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `blocks` (`array`, required): Blocks to rewrite
- `secret` (`string`, required): Document secret (UUID). For entity document fields, select the field's secret via query (e.g. {Secret: ['Space/Field', 'Collaboration~Documents/secret']}). For standalone documents, use search with viewType 'document'
- `mode` (`string`, optional): apply (default): change the document directly. suggest: record the whole batch as tracked-change suggestions for a reviewer to accept or reject â the document does not change until a suggestion is accepted. One of: `apply`, `suggest`.

Example input: `{"blocks":[],"secret":"<secret>"}`

### `fiberymcp_set_state`

Set State · Destructive

Sets the workflow state of a Fibery entity.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')
- `entityId` (`string`, required): fibery/id of an entity
- `state` (`string`, required): State title (enum/name)

Example input: `{"database":"SoftDev/Task","entityId":"<entityId>","state":"<state>"}`

### `fiberymcp_update_dimension`

Update Dimension · Destructive

Updates an existing dimension in a report tab.

Use `get_report` to find the `tabId`, `tabType`, and per-dimension `id` values. Each dimension object in the tab's axis arrays (`x`, `y`, `columns`, `metrics`, etc.) has an `id` field — pass that as `dimensionId`.

**`changes`** is a partial object: only the keys you provide will be merged into the existing dimension. Omit keys you do not want to change.

To add or remove dimensions entirely, use `remove_dimension` or recreate the tab with the add-tab tools.

Reports are a specialized domain — call `get_fibery_skill` with `skill: "reports"` for the full report model, expression syntax, palettes, conditions, and workflow.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `changes` (`object`, required): Partial dimension update. Only provided keys are merged into the existing dimension.
- `dimensionId` (`string`, required): ID of the dimension to update (from get_report result.tabs[].x[].id, .y[].id, .columns[].id, etc.).
- `reportId` (`string`, required): UUID of the report containing the tab.
- `tabId` (`string`, required): ID of the tab containing the dimension (from get_report result.tabs[].id).
- `tabType` (`string`, required): Type of the tab — required so the server picks the right update command. One of: `chart`, `table`, `metric`.

Example input: `{"changes":{},"dimensionId":"<dimensionId>","reportId":"<reportId>","tabId":"<tabId>","tabType":"chart"}`

### `fiberymcp_update_entities`

Update Entities · Destructive

Updates fields on one or more existing Fibery entities.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')
- `entities` (`array`, required): No description.

Example input: `{"database":"SoftDev/Task","entities":[]}`

### `fiberymcp_update_formula_field`

Update Formula Field · Destructive

Updates an existing formula field by regenerating its expression from a new description.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name (e.g., 'SoftDev/Task')
- `description` (`string`, required): New description of what the formula should calculate. A new formula expression will be generated from this
- `name` (`string`, required): Name of the existing formula field in {Space}/{Field} format (e.g., 'SoftDev/Days Since Created')

Example input: `{"database":"SoftDev/Task","description":"<description>","name":"SoftDev/Days Since Created"}`

### `fiberymcp_update_multi_select_fields`

Update Multi Select Fields · Destructive

Updates the options of one or more existing multi-select fields.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `fields` (`array`, required): No description.

Example input: `{"fields":[]}`

### `fiberymcp_update_report`

Update Report · Destructive

Updates an existing Fibery report's title and/or sources.

**At least one of `title` or `sources` must be provided.**

Use `get_report` to retrieve the current report state and `reportId` before calling this tool.

Reports are a specialized domain — call `get_fibery_skill` with `skill: "reports"` for the full report model, expression syntax, palettes, conditions, and workflow.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `reportId` (`string`, required): UUID of the report to update (from get_report or get_reports_list).
- `sources` (`array`, optional): Replace the report's source databases; source mode is fixed at creation and cannot change here.
- `title` (`string`, optional): New title for the report.

Example input: `{"reportId":"<reportId>"}`

### `fiberymcp_update_single_select_fields`

Update Single Select Fields · Destructive

Updates the options of one or more existing single-select fields.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `fields` (`array`, required): No description.

Example input: `{"fields":[]}`

### `fiberymcp_update_tab`

Update Tab · Destructive

Updates scalar properties of an existing tab in a Fibery report.

Use `get_report` to find the `tabId` and `tabType` of the tab to update.

**What this tool can change:** `title`, `type` / `palette` (chart tabs only), `fieldConditions` / `dimensionConditions` (replaces the tab's filter set entirely).

**What this tool cannot do:** Add or remove dimensions (use `update_dimension` / `remove_dimension` or recreate the tab). Change `tabType` (recreate the tab instead).

Reports are a specialized domain — call `get_fibery_skill` with `skill: "reports"` for the full report model, expression syntax, palettes, conditions, and workflow.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `reportId` (`string`, required): UUID of the report containing the tab.
- `tabId` (`string`, required): ID of the tab to update (from get_report result.tabs[].id).
- `tabType` (`string`, required): Type of the tab — required so the server picks the right update command. One of: `chart`, `table`, `metric`.
- `dimensionConditions` (`array`, optional): Replace the tab's dimension-level filters entirely.
- `fieldConditions` (`array`, optional): Replace the tab's field-level filters entirely.
- `palette` (`string`, optional): Color palette. Applies to chart tabs only; ignored for table/metric. One of: `fibery2.0`, `category10`, `accent`, `dark2`, `paired`, `pastel1`, `pastel2`, `set1`, `set2`, `set3`, `setL`, `tableau10`, `brown_blue_green`, `purple_red_green`, `pink_yellow_green`, `purple_orange`, `red_blue`, `red_grey`, `red_yellow_blue`, `red_yellow_green`, `spectral`, `blues`, `greens`, `greys`, `oranges`, `purples`, `blue_green`.
- `title` (`string`, optional): New tab title.
- `type` (`string`, optional): Chart type. Applies to chart tabs only; ignored for table/metric. One of: `line`, `scatterplot`, `stacked-bar`, `bar`, `stacked-area`, `area`.

Example input: `{"reportId":"<reportId>","tabId":"<tabId>","tabType":"chart"}`

### `fiberymcp_update_view`

Update View · Destructive

Updates an existing Fibery view's name, description, space, content, or configuration.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `id` (`string`, required): fibery/id of the view to update
- `viewType` (`string`, required): grid: spreadsheet table (supports hierarchical groupBy). list: simple list (prefer grid). board: kanban grouped by relation/enum on x and optionally y. timeline: time bars with optional milestones and dependencies. calendar: date events. map: geographic plot of a location field. feed: rich-text feed of a document field. gallery: card gallery with cover images. gantt: hierarchical timeline with dependencies. form: data input form. document: standalone markdown (created empty; its body is edited separately via the document tools). report: created empty, modify via report tools. canvas: whiteboard/freeform diagram â created empty, config is ignored; elements are managed via execute_whiteboard_commands (call get_fibery_skill({skill: 'whiteboard'}) first). One of: `document`, `grid`, `list`, `board`, `timeline`, `calendar`, `map`, `feed`, `gallery`, `gantt`, `form`, `embed`, `report`, `canvas`.
- `config` (`object`, optional): View configuration object. Shape depends on viewType â for anything beyond a basic grid/list with no filters or ordering, call get_fibery_skill({skill: 'views'}) first.
- `description` (`string`, optional): New description for the view
- `name` (`string`, optional): New name for the view
- `space` (`string`, optional): Move the view to a different space

Example input: `{"id":"<id>","viewType":"document"}`

### `fiberymcp_update_workflow_field`

Update Workflow Field · Destructive

Updates the options of an existing workflow (state) field.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Full database name
- `update` (`string`, required): Full replacement or incremental update
- `defaultOption` (`string`, optional): New default state name. If not provided, the default is left unchanged

Example input: `{"database":"SoftDev/Task","update":"<update>"}`

## Related

Other Project Management connectors ([all 40](/agentkit/connectors/?category=project-management)):

- [Notion](/agentkit/connectors/notion/): Scalekit connector, OAuth, 51 tools
- [Linear](/agentkit/connectors/linear/): Scalekit connector, OAuth, 62 tools
- [Airtable](/agentkit/connectors/airtable/): Scalekit connector, OAuth, 26 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
