---
title: "MCP Tools"
description: "Look up every MCP tool and the permission it needs."
canonical: "https://fragment.dev/api-reference/mcp-tools"
---

# MCP Tools

Source: https://fragment.dev/api-reference/mcp-tools

[Documentation index](https://fragment.dev/llms.txt)

<a id="mcp-tools"></a>

{/* Generated by scripts/generate-mcp-tools-reference.ts from /schemas/mcp/tools.json. Do not edit. */}

Machine-readable: [tools.json](https://fragment.dev/schemas/mcp/tools.json)

<a id="add_account"></a>

## add_account

Add a new account to the account tree.

Permission: `schema:store`

<a id="add_entry_fields"></a>

## add_entry_fields

Add new lines, conditions, or tags to an entry type. Returns the generated ids.

Permission: `schema:store`

<a id="add_entry_type"></a>

## add_entry_type

Create a new transaction template with optional full configuration. Give entry types that share a purpose a common name prefix (e.g. "card_authorization", "card_settlement", "card_refund") so they group together when the entry list is sorted alphabetically.

Permission: `schema:store`

<a id="add_entry_type_version"></a>

## add_entry_type_version

Create a new version of an existing entry type. Copies the latest version, optionally overriding fields.

Permission: `schema:store`

<a id="add_event_to_scenario"></a>

## add_event_to_scenario

Add a test transaction to a scenario.

Permission: `schema:store`

<a id="add_payment_entry"></a>

## add_payment_entry

Add the default initiated or refund accounting entry. Required settlement and chargeback entries already exist. Returns the generated user-line IDs for editing.

Permission: `schema:store`

<a id="add_payment_fields"></a>

## add_payment_fields

Add user lines to one accounting event and/or payment-level tags. Pass event when adding lines. Returns generated IDs and the validated payment type. Payment lines do not support tx matches, repeats, or tags.

Permission: `schema:store`

<a id="add_payment_type"></a>

## add_payment_type

Create a version-1 active card pay-in with the designer defaults and required settlement/chargeback entries. Creates assets/cash/payments and missing parents if no payment account exists. Use returned line IDs to configure user lines; system lines are read-only.

Permission: `schema:store`

<a id="add_root_account"></a>

## add_root_account

Add a new root-level account. Use for additional roots beyond the default four.

Permission: `schema:store`

<a id="add_scenario"></a>

## add_scenario

Create a new simulation scenario.

Permission: `schema:store`

<a id="create_project"></a>

## create_project

Create a new Fragment project (schema). By default the project starts with an empty starter chart of accounts. Optionally pass `example` to create a project from one of the examples listed in the `example-schemas` guide, or `schema` to import an existing canonical schema JSON (the deployable .jsonc shape, e.g. from export_schema or a schema file) as a parsed JSON object, not a string. `example` and `schema` are mutually exclusive, and the imported schema's own `key` is replaced by `schemaKey`. Fails if a project with this schemaKey already exists. Returns the schemaKey to pass to other tools.

Permission: `schema:store`

<a id="delete_account"></a>

## delete_account

Delete an account and all its children.

Permission: `schema:delete`

<a id="delete_entry_type"></a>

## delete_entry_type

Delete a transaction template and all its lines.

Permission: `schema:delete`

<a id="delete_event_from_scenario"></a>

## delete_event_from_scenario

Remove one event from a scenario. Payment prerequisites cannot be removed while another event of that payment depends on them.

Permission: `schema:delete`

<a id="delete_payment_type"></a>

## delete_payment_type

Delete a payment type and its scenario events from the draft. Compatibility with deployed schemas is checked at deployment.

Permission: `schema:delete`

<a id="delete_scenario"></a>

## delete_scenario

Delete a simulation scenario.

Permission: `schema:delete`

<a id="deploy_project"></a>

## deploy_project

Deploy the current designer draft for a project to Fragment (stores a new schema version). Distinct from create_project, which seeds an empty project. To create a ledger from the deployed schema, post entries, or generate SDK code, use the Fragment CLI — call get_guide with guideId "basics" for its overview and manual link.

Permission: `schema:store`

<a id="export_schema"></a>

## export_schema

Return the full canonical schema JSON (the deployable .jsonc shape) for SDK generation, gen-graphql, or external use. Run `fragment gen-graphql` on the output to generate SDK code, or `fragment store-schema` to deploy it — see get_guide with guideId "basics" for the CLI overview and manual link. Not for browsing or editing — use get_schema for a compact draft overview with stable IDs. Supports draft (Liveblocks designer) or deployed (DynamoDB) source.

Permission: `schema:read`

<a id="get_account"></a>

## get_account

Get full details of a single account: type, status, currency, consistency config, and linked account.

Permission: `schema:read`

<a id="get_balances_at_step"></a>

## get_balances_at_step

Get account balances at a specific step in a scenario by simulating posted entry amounts.

Permission: `schema:read`

<a id="get_deploy_history"></a>

## get_deploy_history

List deployed schema versions for a project (newest first). OpenSearch-backed; returns version and created timestamp for each deployment.

Permission: `schema:read`

<a id="get_entry_type"></a>

## get_entry_type

Get full details of a single transaction template: lines, accounts, amounts, currencies.

Permission: `schema:read`

<a id="get_guide"></a>

## get_guide

Get a guide on Fragment ledger design. Call without arguments to list available guides.

Permission: `schema:read`

<a id="get_ledger_entry"></a>

## get_ledger_entry

Read a posted ledger entry and all its lines by entry ID, or by ledger (ID or idempotency key) and entry idempotency key. An ID selects that entry version; an idempotency key selects the latest unreversed entry, matching the API. Amounts are exact integer strings, positive for balance increases and negative for decreases. No schemaKey is required.

Permission: `ledger:read`

<a id="get_payment_type"></a>

## get_payment_type

Get a payment type, its accounting entries, stable line/tag IDs, creation parameters, and validation errors. System lines are read-only.

Permission: `schema:read`

<a id="get_scenario"></a>

## get_scenario

Get simulation scenario data. Without scenarioId, lists all scenarios. With scenarioId, returns the scenario events; use get_balances_at_step for simulated balances.

Permission: `schema:read`

<a id="get_schema"></a>

## get_schema

Compact, navigable overview of the designer draft: default settings (currency mode/currency, consistency config), account tree, entry-type IDs, and payment-type IDs for finding stable IDs to edit. Entry types are listed in schema order (alphabetical for projects kept sorted; see sort_entries). Use export_schema for the full deployable/SDK JSON.

Permission: `schema:read`

<a id="get_status"></a>

## get_status

Check if the Fragment MCP server is connected and which workspace/project is active.

Permission: `schema:read`

<a id="list_ledger_entries"></a>

## list_ledger_entries

List posted ledger entries in one ledger, newest posted first, with the same filters and cursor pagination as the API. Search-index backed: recent writes may take time to appear. Returns summaries; use get_ledger_entry for lines. No schemaKey is required.

Permission: `ledger:read`

<a id="move_account"></a>

## move_account

Move an account (and its subtree) under a different parent. The account ID is preserved, so all entry lines and conditions that reference it follow the move; only the stored account paths are rewritten. The moved account and its whole subtree automatically adopt the new parent's account type (e.g. moving under liabilities recategorizes the subtree as liability); the type cannot be set manually.

Permission: `schema:store`

<a id="remove_entry_fields"></a>

## remove_entry_fields

Remove lines, conditions, or tags from an entry type by id. Groups can only be removed, never added — new schemas must not use groups.

Permission: `schema:delete`

<a id="remove_payment_entry"></a>

## remove_payment_entry

Remove an optional initiated or refund accounting entry and its scenario events. Required settlement and chargeback entries cannot be removed.

Permission: `schema:delete`

<a id="remove_payment_fields"></a>

## remove_payment_fields

Remove user lines from one accounting event and/or payment-level tags by ID. Pass event when removing lines. System lines cannot be removed.

Permission: `schema:delete`

<a id="select_project"></a>

## select_project

List the projects in this workspace with their schemaKeys. Call before editing; confirm the intended schemaKey with the user and reuse it.

Permission: `schema:read`

<a id="set_account_payment"></a>

## set_account_payment

Designate or un-designate the schema payment account in the draft. Requires an eligible active USD asset account; clears its linked-account and clearing flags and repoints payment system lines when enabled. Configure the account with update_account first.

Permission: `schema:store`

<a id="set_event_parameters"></a>

## set_event_parameters

Set parameter values on events within a scenario. Each update targets one parameter on one event; pass several to update multiple events at once.

Permission: `schema:store`

<a id="set_schema_defaults"></a>

## set_schema_defaults

Set chart-of-accounts level defaults. These are inherited by new accounts unless overridden.

Permission: `schema:store`

<a id="sort_entries"></a>

## sort_entries

Reorder the schema's entry types alphabetically by type name. Entry types that share a naming prefix (e.g. "card_authorization", "card_settlement") group together in the list. Projects created from scratch stay sorted as entries are added; call this to (re)sort a project whose entries are in a custom order.

Permission: `schema:store`

<a id="update_account"></a>

## update_account

Update properties on an existing account. Provide only fields to change.

Permission: `schema:store`

<a id="update_entry_type"></a>

## update_entry_type

Modify existing fields on an entry type. Pass the id of each line, condition, or tag to change; only provided properties are updated. Use add_entry_fields to create and remove_entry_fields to delete. By default the latest version is edited; pass entryTypeVersionId to target a specific version — the only edit allowed on an already-deployed version is a status change.

Permission: `schema:store`

<a id="update_payment_type"></a>

## update_payment_type

Update only supplied payment fields, existing tags by ID, or one accounting entry and its user lines by ID. Use add/remove_payment_fields for field creation/deletion. Edits affect the draft; compatibility with deployed schemas is checked at deployment.

Permission: `schema:store`

<a id="update_scenario"></a>

## update_scenario

Update properties on an existing scenario.

Permission: `schema:store`

<a id="verify_schema"></a>

## verify_schema

Validate the schema against Fragment's rules. Returns errors (empty if valid).

Permission: `schema:read`
