# Tools

Source: [Tools](<https://docs.gptunnel.ru/en/mcp/tools/>)

<a id="_top"></a>
The server lists only tools your API key or OAuth connection has permission to use. Check the [MCP key permissions](<https://docs.gptunnel.ru/en/mcp/keys/#rights>) if a tool is missing. Fetch the current list and parameter schemas with `tools/list`.

Apps are ready-made applications. Workflows connect nodes into a sequence. Use tool and permission identifiers exactly as shown.

Legend: 💳 — **charges your balance**, ✏️ — modifies your data. Unmarked tools are read-only.

> **Note: Organization context**
>
> When you provide `org_id` for an organization you belong to, the tool uses its workflows, models, prices, and balance. Omit `org_id` to use your personal account. Call `list_orgs` for the available accounts. The entry with `personal: true` is your personal account.

<a id="accounts-and-files"></a>
## Accounts and files

Any connection can call `whoami` or `list_orgs`. To call `upload_media`, you need one of `workflow:write`, `lab:generate`, or `apps:run`.

| Tool | Behavior |
| --- | --- |
| `whoami` | Shows the connection identity and permissions. Call this first when troubleshooting |
| `list_orgs` | Lists your organizations and personal account. Pass an `org_id` from the result to other tools |
| `upload_media` ✏️ | Uploads an image, video, or audio file and returns a URL to use in a generation request, app, or workflow |

**`upload_media`** accepts exactly one source:

- `url` — public HTTP or HTTPS URL for a file up to **50 MB**. The server downloads the file.
- `data` — Base64-encoded content up to **10 MB**.

Supported formats include JPEG, PNG, WebP, GIF, HEIC/HEIF, SVG, MP4, WebM, MOV, MP3, WAV, M4A, AAC, OGG, and FLAC. If you omit `workflow_id`, the file expires after **48 hours**. To keep it in a workflow, include `workflow_id` and add the returned URL to its graph within one hour. The file stays available while the graph references it.

 <a id="лаба-картинки-и-видео"></a>
 
<a id="creative-lab-images-and-videos"></a>
## Creative Lab: Images and Videos

Use `lab:read` to read and `lab:generate` to start tasks with `lab_generate`. `lab:generate` includes read access.

| Tool | Behavior |
| --- | --- |
| `lab_list_models` | Lists your available image and video models with prices for their default settings. Filters: `type` (`image` / `video`), `search` |
| `lab_get_model` | Returns model parameters (keys, options, defaults and ranges), allowed input files and prompt requirements |
| `lab_quote` | Returns the **exact price** after discounts and free generations. This call does not charge your balance. It reports whether the request would be rejected and why |
| `lab_generate` 💳 | Starts a generation task. The result appears in your Creative Lab gallery |
| `lab_get_generation` | Returns status (`queued` / `running` / `done` / `failed`), progress and result URLs |

Main parameters for `lab_generate`. The same parameters apply to `lab_quote` except for the last two:

| Parameter | Description |
| --- | --- |
| `model_id` | Model ID from `lab_list_models` |
| `prompt` | Prompt. Use `lab_get_model` to check the length limit |
| `params` | Options such as aspect ratio, duration and quality. Use keys from `lab_get_model`. Omitted parameters use their defaults |
| `inputs` | Input files keyed as specified by `lab_get_model`. Use links from `upload_media` or previous results |
| `count` | Number of images to generate per call (1–4) |
| `org_id` | Organization balance to charge. Get the ID from `list_orgs`. Omit the ID to use the personal balance |
| `max_cost_rub` | **Required price ceiling in RUB**. Use `charge_rub` from `lab_quote` to cap the cost of the generation |
| `request_id` | Retry key (8–128 characters). Retrying with the same key and arguments incurs no additional charge |

 <a id="аппы"></a>
 
<a id="apps"></a>
## Apps

Apps are ready-made tools with their own inputs and prices.

Use `apps:read` to read and get quotes. `app_run` requires `apps:run`, which includes read access.

| Tool | Behavior |
| --- | --- |
| `apps_list` | Lists available apps with their purpose, inputs, parameters (options, ranges, and defaults), prompt length limit, and catalog price |
| `app_voices` | Lists voices for `@TextToSpeechV2` with ID, name, language, sample URL, discounted price per 1,000 characters, and synthesis versions if available. Filter with `language` |
| `app_quote` | Returns the price of launching the app with these arguments, including discounts and free generations. It charges nothing. It uses the same validation as `app_run` and reports why a launch would be rejected. |
| `app_run` 💳 | Runs an app. Inputs include `app_code`, `image` (a URL), `inputs` (named media from the `apps_list` schema), `prompt`, `params`, `org_id`, required `max_cost_rub`, and `request_id`. Returns the task and `charged_rub` |
| `app_get_task` | Returns the task status, result URL or transcription in `text`, and `charged_rub` after refunds. A full refund leaves a value of 0 |

The server validates `params` strictly. An unknown key, a wrong type, or a value outside the allowed options or range returns an error listing allowed values. An omitted parameter uses its default from `apps_list`.

Now available:

| App | Code | Entry |
| --- | --- | --- |
| Background removal | `@BGRemover` | Photo → PNG with a transparent background |
| Colorize black-and-white photos | `@TrueColor` | photo |
| Convert an image to SVG | `@ToVector` | Photo (PNG, JPEG, WebP) → Vector SVG |
| Sticker from text | `@Stiker` | text |
| Photo sticker | `@FaceToSticker` | Face photo (`image`) and optional text describing the style or emotion |
| Face swap | `@FaceSwap` | Two photos in `inputs`. Use `source_image` for the face and `target_image` for the destination photo. Flags `enhance_face` and `enhance_background` improve the face and background |
| Sound effect (mp3) | `@SoundEffect` | text up to 400 characters; parameters `duration_seconds` (0.5 - 22 s, default 5) and `prompt_influence` (0–1, default 0.5) The price depends on duration |
| Improve a photo | `@PhotoBooster` | Photo and a `mode` of `quality`, `restore` or `colorize`. Each mode has its own parameters in the `modes` field of `apps_list`. Availability varies by account |
| Text to speech (MP3) | `@TextToSpeechV2` | Text from 2 to 5,000 characters. Provide a required `voice_id` from `app_voices`. Use `version` to select a synthesis version when the voice has multiple versions. It defaults to the first. The price depends on the voice and character count. Get the exact amount with `app_quote`. |
| Animate a photo | `@LivePhotos` | Photo (`image`), optional text describing the motion and `aspect_ratio`. Returns a short video |
| Edit a video | `@VideoEdit` | Video in `inputs.video`, text describing the edits and `aspect_ratio`. Check duration and file size limits in `apps_list`. Billing is per second of the input video. Get the exact price with `app_quote` |
| Transfer motion | `@MotionControl` | Character photo in `inputs.image`, motion video in `inputs.video`, optional text, and `resolution`. The `apps_list` response includes `motion_presets`. Pass a preset’s `video_url` as `inputs.video`. Billed per second of video. |
| Audio to text | `@Transcribe` | Put the audio or video URL from `upload_media` in `inputs.file`, using one upload per transcription and omitting `workflow_id`. Parameters include `model` (`elevenlabs-scribe-v2` or the faster `fal-wizper`), `language` (`auto` by default), `diarize` (speaker detection, only on `elevenlabs-scribe-v2`), and `timestamps`. Billed per minute measured by the server. Use `app_quote` for the exact price and read the output in `text` from `app_get_task`. |

Photo animation, video editing and motion transfer use Creative Lab models. The result appears in the Creative Lab gallery and is available through `app_get_task`.

Call `apps_list` for the apps, parameters and prices currently available to your account.

<a id="workflow"></a>
## Workflow

Read with `workflow:read`. Create, edit and delete with `workflow:write`.

| Tool | Behavior |
| --- | --- |
| `list_workflows` | Lists your workflows, most recently edited first. Paginate with `limit` and `cursor`, and use the returned `next_cursor` for the next page. Filter by `org_id` |
| `get_workflow` | Returns the complete workflow with its nodes and connections. Call it before editing |
| `create_workflow` ✏️ | Creates a workflow with an initial graph or an empty graph (`nodes: []`, `edges: []`) |
| `update_workflow` ✏️ | Replaces the workflow’s name, description, nodes and connections. Any nodes and connections you omit are removed |
| `delete_workflow` ✏️ | Deletes a workflow. MCP has no restore tool |

Coauthors with edit permission can use `update_workflow` to change the nodes, connections and name. Only the owner can change the description or organization.

<a id="launch"></a>
### Launch

`get_execution` requires `workflow:read`. The other tools in this section require `workflow:execute`.

| Tool | Behavior |
| --- | --- |
| `run_workflow` 💳 | Starts a workflow and immediately returns `executionId`. Pass `from_node_id` to resume from a node and reuse completed results upstream |
| `get_execution` | Returns the run status (`queued` / `running` / `completed` / `failed` / `cancelled`), results, errors and cost of each node. Pass `execution_id` to get a specific run or `workflow_id` to get the latest run |
| `cancel_execution` ✏️ | Stops the run, keeps the results from completed nodes and cancels pending nodes |
| `retry_node` 💳 | Retries one failed node. Run any downstream nodes separately |
| `reset_node` ✏️ | Clears a node’s saved state before a new run |

 <a id="checkboards-and-the-node-guide"></a>
 
<a id="templates-and-node-reference"></a>
### Templates and node reference

`fork_template` requires `workflow:write`. Any workflow permission grants access to the other tools in this section.

| Tool | Behavior |
| --- | --- |
| `list_templates` | Lists public workflow templates by popularity. Filter by `category` and paginate with `limit` and `offset` |
| `fork_template` ✏️ | Copies a template to your account or to the organization specified by `org_id` |
| `list_node_categories` | Returns the node category tree |
| `list_node_types` | Lists node types with their slugs, names, ports and number of models. Filters include `category_slug`, `execution_type` (`ai_generation`, `transform`, `input`, `output`, `logic`, `trigger`) and `search` |
| `get_node_type` | Returns a node’s ports and parameters. For a node with multiple models, pass `model_id` to get the parameters for one model |

<a id="resources-and-prompts"></a>
### Resources and Prompts

Clients that support MCP resources and prompts can use these resources and prompts.

- `workflow://{id}` returns the full workflow as JSON. The resources list contains all your workflows.
- `catalog://node-types` returns an overview of the node types and their ports. Load it once into the agent’s context.
- `explain_workflow(workflow_id)` explains what a workflow does.
- `design_workflow(goal)` designs a workflow for a task.

<a id="organizational-access-settings"></a>
## Organizational access settings

On the main server, `org_access_list_orgs` lists available organizations and teams, and `org_access_get` reads their settings. These tools require `org:access` or `org:access:write` and a role of owner, administrator or team manager. Changing settings requires `org:access:write`. The role in the selected organization determines access to each target. See the [access management rules](<https://docs.gptunnel.ru/en/access/>) and use `tools/list` to see the operations available to your connection.

The Claude catalog endpoint `/mcp/claude` provides `whoami` and the gallery tools. With the relevant permissions, use the main endpoint `/mcp` for Creative Lab, workflow and organization tools.

<a id="gallery"></a>
## Gallery

Gallery actions leave the original files in place and incur no charges. Reading requires `gallery:read`. Editing requires `gallery:write`, which includes read access.

| Tool | Behavior |
| --- | --- |
| `gallery_list_generations` | Lists your Creative Lab generations, newest first. Each item includes its ID, status, model, prompt, preview and collection. Filter by `collection_id` (`""` for generations outside any collection), `type` or `search` within the prompt. Paginate with `skip` and a `limit` of up to 50 |
| `gallery_list_collections` | Lists your collections with their names, icons, colors, generation counts and previews |
| `gallery_create_collection` ✏️ | Creates a collection with a `name` and optional `icon` and `color` |
| `gallery_update_collection` ✏️ | Updates a collection’s name, icon or color |
| `gallery_delete_collection` ✏️ | Deletes the collection. Its generations remain in the gallery |
| `gallery_move_generation` ✏️ | Moves a generation into a collection, or removes it from the collection with `collection_id: null` |
