> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tashvi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Tools

> Reference for the Tashvi API's seven MCP tools: tashvi_design, tashvi_video, tashvi_3d, tashvi_library, tashvi_ask, tashvi_one_ask and tashvi_one_change, with their inputs, results, timing, and how long-running film and 3D jobs return.

The Tashvi API has seven tools. Each is one product job, and Tashvi's own agents do the work behind it, so the main input is the person's own words in `request`.

| Tool | Scope | Spends | Typical time |
| - | - | - | - |
| [`tashvi_design`](#design-jewelry) | `design` | Yes | 20 to 90 seconds |
| [`tashvi_video`](#make-a-video) | `design` | Yes | Waits up to about 3 minutes, then hands back an id |
| [`tashvi_3d`](#make-a-3d-model) | `cad` | Yes | Waits up to about 3 minutes, then hands back an id |
| [`tashvi_library`](#look-in-my-tashvi) | `read` | No | A few seconds |
| [`tashvi_ask`](#ask-tashvi) | `copilot` | Yes | Up to 150 seconds |
| [`tashvi_one_ask`](#ask-tashvi-one) | `ledger` | No | Up to about a minute |
| [`tashvi_one_change`](#make-a-change-in-tashvi-one) | `ledger` | No | Up to about 3 minutes |

What each call costs is on [Pricing](https://docs.tashvi.ai/api/pricing.md).

## How the tools work

* **Pass designs by id.** A result names each design as `Design N (designId …)`. To use a design in another tool, pass its `designId`, never an image URL. A design that isn't the caller's own is refused before anything is spent.
* **Links, not storage URLs.** A design's link is `https://tashvi.ai/d/` followed by its id. It opens the design in the person's signed-in Tashvi, and nothing is made public. Give people that link.
* **Long jobs come back by id.** There are no webhooks and no push. A film or a 3D job that isn't done when its call ends answers with an id (`videoRequestId` or `buildId`). Call the same tool again with only that id to keep waiting. Waiting costs nothing.
* **Never repeat a paid call that timed out.** If a call is cut off, the work may still have been made and charged. Check with [`tashvi_library`](#look-in-my-tashvi) before you try again.
* **Every tool also takes `user_intent`:** an optional sentence on what the person is trying to do. It's logged with the call and never changes the result.
* **Errors are results.** A tool that can't do something answers with `isError: true` and a `structuredContent` of `error` (a sentence you can show the person) and `code`. See [Errors and limits](https://docs.tashvi.ai/api/errors-and-limits.md).

A host that draws MCP Apps can also show Tashvi's own card for designs and films. The card's data is in the result's `_meta`; your code can ignore it.

## Design jewelry

`tashvi_design` designs a new piece or changes one. Tashvi's design agent draws it, the same one that runs Create in the studio.

| Input | Type | |
| - | - | - |
| `request` | string, required | What to design or change, in the person's words, up to 4,000 characters. Name the piece, metal, stones, setting and style; for an edit, say what to change |
| `designIds` | array of strings, up to 5 | The person's own designs to build on or edit. The first is the one being edited |
| `sessionId` | string | The design conversation to continue. Leave it out to start a new one |
| `variations` | `1` or `4` | How many options. `4` gives four concepts at once (paid plans). Default `1` |
| `presentation` | `"studio"` or `"on_model"` | The piece on its own (default), or worn on a model |

**Result.** One line per design, `Design N (designId …): https://tashvi.ai/d/…`, the `sessionId`, and one picture: a contact sheet of up to four designs, left to right, then top to bottom. `structuredContent` has `message`, `sessionId` and `designs` (each with `n`, `designId` and `designUrl`).

Keep the `sessionId` and send it back on every follow-up, so "make the band thinner" edits the same piece. Designs are saved to the person's **My Designs**. On the free plan they are public, as every free design in Tashvi is.

If the turn takes longer than its limit (225 seconds), the result is `took_too_long`. The design may still have been made: look in `tashvi_library` with `what: "designs"` before asking again, or ask for one option instead of four.

## Make a video

`tashvi_video` makes a short film of one of the person's designs, and waits for it in the same call.

| Input | Type | |
| - | - | - |
| `designId` | string | The design to film. Give this to start a film |
| `request` | string | What the camera should do, like "a slow turn" or "sparkle on the stones" |
| `videoRequestId` | string | A film already started. Give only this to keep waiting |

Give `designId` or `videoRequestId`, not both.

**Result.** The call waits up to about 3 minutes. When the film is ready, the result is `Video (designId …): https://tashvi.ai/d/…`. If it's still being made, `structuredContent.status` is `in_queue` or `in_progress`, with a `videoRequestId`: call `tashvi_video` again with only that id. A film that fails answers `video_failed`, and the person isn't charged for it.

## Make a 3D model

`tashvi_3d` turns one of the person's designs into a 3D model. There are two kinds, and `kind` is required.

* **`draft`:** a quick 3D draft, a textured mesh, in one to five minutes. Paid plans.
* **`cad`:** a castable CAD build, an engineered model with STEP and STL files a jeweler can cast. Several minutes. Pro plan and above.

`kind` is the person's choice. If they haven't said which they want, ask them once. Don't pick a paid 3D job for them.

| Input | Type | |
| - | - | - |
| `kind` | `"draft"` or `"cad"`, required | Which kind of 3D model |
| `designId` | string | The design to make 3D. Gives a new draft or a new build its picture |
| `request` | string, up to 4,000 characters | The piece in words (optional on a draft), or what to change on a build |
| `buildId` | string | A draft or build that exists. With `request` on `cad`: change it ("make the shank thicker"). Alone: keep waiting for it |

* **A draft:** pass `designId`. A draft that has started can't be changed.
* **A new CAD build:** pass `designId`, `request`, or both.
* **A change to a CAD build:** pass `buildId` and `request`.
* **Keep waiting:** pass the same `kind` and only the `buildId`. That spends nothing.

**Result.** The call waits up to about 3 minutes. A finished draft answers the Tashvi page that opens it and, once its file is saved, a direct download of the GLB. A CAD build usually takes longer than one call, so the usual answer is the build's page and a `buildId`, with `structuredContent.status` of `in_progress`. A finished build adds direct downloads of its STEP and STL files.

Download links last about an hour. Call again with the `buildId` for fresh ones.

The CAD builder may need one more detail. Then `status` is `needs_answer` with a `question`: put it to the person, and call again with `kind: "cad"`, their answer in `request`, and the `buildId`. One CAD build runs at a time per account; starting another while one is running answers `edit_running` with the `buildId` that holds it.

## Look in my Tashvi

`tashvi_library` reads what the person has in Tashvi. It's free and changes nothing.

| Input | Type | |
| - | - | - |
| `what` | string, required | `designs`, `explore`, `files`, `drafts`, `chats` or `account` |
| `query` | string, up to 200 characters | Words to narrow the list to (all must match). Required for `explore` |

| `what` | Answers |
| - | - |
| `designs` | The person's saved designs, newest first, one line each with its `designId` and link |
| `explore` | How many public designs in Tashvi's Explore match `query`, and a link to see them. The designs themselves aren't listed |
| `files` | Their uploaded CAD files, each with a direct download |
| `drafts` | Their 3D drafts, each with the Tashvi page that opens it |
| `chats` | Their design conversations, each with the Tashvi page that opens it |
| `account` | Their plan, and whether credits are `ok`, `low` or `out` |

A search looks through the person's newest items (up to 200 designs, 100 files or chats, or 50 drafts), and the answer says so when there may be more.

## Ask Tashvi

`tashvi_ask` asks Tashvi, the jewelry assistant, a question and returns its answer in words: how much gold a piece holds, today's gold or silver rate, how a setting or a technique works, how to do something in Tashvi. It doesn't make designs, films or 3D models.

| Input | Type | |
| - | - | - |
| `request` | string, required, up to 4,000 characters | The question, in full. Tashvi can't see the rest of your conversation |
| `designId` | string | One of the person's designs the question is about, so Tashvi can look at it |

Tashvi doesn't search the web when it's called through the API. An answer that runs past 150 seconds is cut off as `took_too_long`. Don't ask the same thing again straight away: the question may already have been charged.

## Ask Tashvi One

`tashvi_one_ask` asks Tashvi One, the person's stock and accounting books, a question. Tashvi One's own assistant looks it up in their shop: stock and where it is, a piece by its tag, stock value and age, dead stock and top movers, metal balances and rates, customers, vendors and karigars, orders, invoices and what someone owes. It only reads.

| Input | Type | |
| - | - | - |
| `request` | string, required, up to 2,000 characters | The question, in full |
| `threadId` | string | The `threadId` of an earlier answer, to continue that conversation |

Quote the money and weights it gives as they are.

## Make a change in Tashvi One

`tashvi_one_change` makes changes in the person's Tashvi One books from their words: book pieces into stock, move pieces between locations, open a sale, hold or release an order, invoice it, record a payment, add a customer, vendor or karigar, create a product, or set the tax rate.

| Input | Type | |
| - | - | - |
| `request` | string, required, up to 2,000 characters | The change the person asked for, with every detail: which pieces, where, how much, at what price |

> [!WARNING]
>
> The change is made during the call. In the studio, the assistant shows a card and waits for a tap; through the API, your app's own permission prompt for this tool is that tap. Call it only for a change the person asked for.

* It makes up to 10 changes per call, and the person's role limits in Tashvi One apply.
* **Result:** exactly what changed, and anything not done with the reason.
* If Tashvi One asks a question, put it to the person. Then call again with only what is still to be done and their answer. Never repeat anything the result lists as changed.
* If a call fails or times out, check with `tashvi_one_ask` before calling again. A change may already have been made.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.