Tally MCP

Build, edit, style and publish Tally forms, and read their submissions and insights, through Tally's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Apply logic

    If you have not read tally://reference/logic and tally://reference/calculations yet, read them first (as MCP resources or with read_reference). Create, update or delete logic rules. Create/update use DSL syntax: WHEN <condition> THEN <action>. <deleting_rules> To delete an existing rule, send `{operation: 'delete', blockUuid: <logicRule_blockUuid>}` — no dsl needed. Copy the uuid from the ledger's Logic rules table. This is the only way to remove a rule; never target a rule's condition or action uuids with other tools. </deleting_rules> <rule_page> CALCULATE and JUMP actions run only on the rule's own page, when the respondent visits it. SHOW, HIDE and REQUIRE apply on every page, so never copy those rules for placement. For a CALCULATE that every branch needs, insert one copy per branch, each with its branch's `page`. Without `page`, a rule that reads a calculated field lands after its last writer on any page, which can be another branch. </rule_page> <uuid_references> All UUIDs come from the ledger. Use the correct column: - **Condition LHS** → questionUuid column - **Condition RHS for choice fields (Dropdown, MultipleChoice, Checkboxes)** → the option row's blockUuid (NOT the option text) - **Condition LHS for Matrix** → row blockUuid (MATRIX_ROW) - **Condition RHS for Matrix** → matrix column blockUuid (NOT the option text) - **SHOW/HIDE a full question** → questionUuid column - **SHOW/HIDE a single block (e.g. one option)** → blockUuid column - **SHOW/HIDE a whole page (page 2 onwards)** → that page's PAGE_BREAK blockUuid - **REQUIRE** → questionUuid column - **JUMP TO PAGE** → page number column </uuid_references> <conditions> Each condition compares a field (left) to a value (right), e.g. `<priceUuid> > 100`. Don't apply math to the field: to check a calculated value (like price × qty > 100), store the result as a calc field first and use that. The right side is a literal, an option's blockUuid for choice fields, or another number or text field's questionUuid or calc field uuid, e.g. `<countAUuid> > <countBUuid>`: - Choice fields (Dropdown, MultipleChoice): `<questionUuid> IS <optionBlockUuid>` / `IS NOT <optionBlockUuid>` - Choice fields: the left side is the questionUuid, never an option's blockUuid. 'Option X is selected' is `<questionUuid> IS <optionXBlockUuid>` (Checkboxes: `CONTAINS`) - Text/Email/Link/Phone fields: `<questionUuid> IS "literal text"` / `IS NOT "literal text"` - Empty check (any input field, never a calculated field): `<questionUuid> IS EMPTY` / `IS NOT EMPTY` - Number/Rating/LinearScale: `<questionUuid> > 5` (any of `> >= < <= = !=`) - Text matching: `<questionUuid> CONTAINS "text"` / `DOES NOT CONTAIN "text"` - Text matching: `<questionUuid> STARTS WITH "text"` / `ENDS WITH "text"` - Text matching: `<questionUuid> DOES NOT START WITH "text"` / `DOES NOT END WITH "text"` - Checkboxes/MultiSelect (arrays): `<questionUuid> IS ANY OF (<blockUuid>,<blockUuid>)` / `IS NOT ANY OF` / `IS EVERY OF` - Checkboxes/MultiSelect: do NOT use IS/IS NOT — use CONTAINS or IS ANY OF instead - Matrix: `<matrixRowBlockUuid> IS <matrixColumnBlockUuid>`; use CONTAINS / IS ANY OF when multiple selection is enabled - Date fields: `<questionUuid> IS BEFORE "2024-01-01"` / `IS AFTER "2024-01-01"` - Respondent language, the language the form is shown in (the word itself, no ledger uuid): `respondentLanguage IS "nl"` / `IS NOT "nl"` / `IS ANY OF ("nl", "fr")`, only on a form with translations switched on, with a language the form offers - Combine: `<cond1> AND <cond2>` or `<cond1> OR <cond2>` (parentheses required when mixing) - Highest score wins (quiz outcome counters): one JUMP rule per outcome that ANDs `>=` against every other counter, e.g. `WHEN <countAUuid> >= <countBUuid> AND <countAUuid> >= <countCUuid> THEN JUMP TO PAGE 3` </conditions> <actions> - `SHOW <questionUuid>` / `HIDE <questionUuid>` (comma-separate for multiple) - `SHOW <blockUuid>` / `HIDE <blockUuid>` to target a single block within a question - `REQUIRE <questionUuid>` - `JUMP TO PAGE <pageNumber>` — jump to a specific page (use the page number from the ledger's page column). Check the Page flow section for current page order. - `JUMP TO END` — end the form early (jump to the default thank you page). If a custom thank you page exists, it will target that page instead. - `CALCULATE <calcFieldUuid> = <expression>` — assign a formula expression to a calculated field. See <calculated_fields> below. - `DISABLE SUBMISSION` — hide the submit button so the form can't be submitted while the condition holds (eligibility gate). Takes no target. - Multiple actions: `SHOW <questionUuid>, REQUIRE <questionUuid>` </actions> <calculated_fields> Group calc field writes that share a condition into one rule's THEN clause; only split into separate rules when the conditions differ (e.g., per-event accumulators). - **Target** (left of `=`): the UUID of a calculated field from a `CALCULATED_FIELDS` block. The ledger lists them in the properties column as `<calcFieldUuid>=<name>(<TYPE>)` — use the UUID. Create the block via create_blocks before writing CALCULATE rules. - **Expression** (right of `=`): `+ - * /` for NUMBER, `+` only for TEXT concat. Parens for precedence. Number and string literals allowed. Field refs are bare uuids – questionUuid for inputs, the calc field's own uuid (properties column) for cross-calc / self-reference. No blockUuid, no `{{ }}`, no functions. - **Choice fields**: a Dropdown/MultipleChoice/Checkboxes/MultiSelect questionUuid contributes its selected option's label as a number when the labels are numeric (e.g. options `"10"`, `"25"`); multi-value selections contribute the sum of the selected labels. A MATRIX_ROW uuid works the same with its selected column labels (e.g. columns `"1"` to `"5"`). Ranking fields are not numeric. - **Multiple writes per rule**: a single `THEN` can contain any number of CALCULATEs (and other actions). Comma-separated. - **Sequential evaluation**: CALCULATEs run top-to-bottom. Send writes to the same field in their intended execution order. The tool repairs cross-field order on the same page when it can, and reports unresolved dependencies. Never group CALCULATEs under one THEN just to control their order. - **Defaults**: NUMBER calc fields start at 0, TEXT at `""` when no `value` is set on the field. - **TEXT values are plain text**: no HTML or Markdown, the tool removes tags like `<b>` or `<br>`. Put formatting in the TEXT block or email body that mentions the calc field, e.g. `<b>{{<calcFieldUuid>}}</b>`. Split a bold heading and a plain body into two calc fields. - **Constants on the field, not in rules**: For values that never change (e.g. `taxRate = 0.21`, `greeting = "Hi "`), set `value` on the calc field at creation time via create_blocks, not with a rule that writes the same literal whatever the answers. A literal under a condition that picks it is fine, e.g. one rule per option: `WHEN <planUuid> IS <optionUuid> THEN CALCULATE <planPriceUuid> = 25`. - **Calc fields are never empty** – they always carry the default (0 or `""`). IS [NOT] EMPTY on a calc field is rejected. To gate a calculation on user input completion, use IS NOT EMPTY on the INPUT field driving the calc (not on the calc itself). To check the calc value, use a numeric comparison (`> 0`, `!= 0`) for NUMBER or `IS` / `IS NOT` for TEXT — but only when the default specifically means "not yet answered" (e.g. quiz score), not when 0 / `""` is a legitimate result (e.g. an opt-out fee). - **Self-reference works** — the target can appear in its own expression. Use this for accumulators (quiz scoring, running totals) instead of creating per-question intermediate fields. - **No cycles between calc fields** — if rule A writes `<X>` using `<Y>`, no other rule should write `<Y>` using `<X>`. Grouping makes two CALCULATEs one rule, so don't put `<X>` in the same THEN as a field another rule computes from `<X>`. No order runs a cycle, so the tool reports it and leaves those rules where they are. Example patterns (replace `<...Uuid>` with real UUIDs from the ledger): <example>WHEN <priceUuid> IS NOT EMPTY THEN CALCULATE <totalUuid> = <priceUuid> * <qtyUuid></example> <example>WHEN <amountUuid> > 100 THEN CALCULATE <discountUuid> = <amountUuid> * 0.1</example> <example>Plan dropdown with numeric price labels ("10", "25", "50") drives a total: WHEN <planUuid> IS NOT EMPTY THEN CALCULATE <monthlyTotalUuid> = <planUuid> * <seatsUuid></example> <example>Add-on checkboxes with numeric price labels sum their checked options: WHEN <addOnsUuid> IS NOT EMPTY THEN CALCULATE <totalUuid> = <basePriceUuid> + <addOnsUuid></example> <example>WHEN <firstUuid> IS NOT EMPTY THEN CALCULATE <greetingUuid> = "Hello " + <firstUuid> + " " + <lastUuid></example> <example> Multi-step under one condition — derive subtotal, tax, and total in a single rule: WHEN <priceUuid> IS NOT EMPTY THEN CALCULATE <subtotalUuid> = <priceUuid> * <qtyUuid>, CALCULATE <taxUuid> = <subtotalUuid> * 0.21, CALCULATE <totalUuid> = <subtotalUuid> + <taxUuid> </example> <example> Accumulator — one rule per event because the WHEN differs (quiz: +1 per correct answer): WHEN <q1Uuid> IS <correct1Uuid> THEN CALCULATE <scoreUuid> = <scoreUuid> + 1 WHEN <q2Uuid> IS <correct2Uuid> THEN CALCULATE <scoreUuid> = <scoreUuid> + 1 </example> </calculated_fields> <defaults> The tool handles these — do NOT do them manually: - SHOW auto-hides the target (isHidden: true). Do NOT call configure_blocks to hide it first. - REQUIRE auto-marks the target optional (isRequired: false). Do NOT call configure_blocks to unset it first. </defaults> <no_if_else> There is no if-else — do NOT add HIDE as the "else" for a SHOW rule. Logic rules are NOT if-else. All SHOW targets start hidden by default. When a SHOW condition is false, the target simply stays hidden — no HIDE needed. <example> WRONG — adds useless HIDE actions: WHEN score <= 6 THEN SHOW feedback, HIDE review WHEN score >= 9 THEN SHOW review, HIDE feedback RIGHT — each rule only SHOWs its target: WHEN score <= 6 THEN SHOW feedback WHEN score >= 9 THEN SHOW review </example> The HIDE in the wrong example is a no-op: - fields that are marked as SHOW are automatically hidden by default - fields that are marked as REQUIRE are automatically optional by default </no_if_else> <verb_matches_user> Match the action to the verb the user used. Don't invert by negating the condition. - User says "hide X when Y" → `WHEN <Y> THEN HIDE <X>` (target stays visible by default). - User says "show X when Y" → `WHEN <Y> THEN SHOW <X>` (target hidden by default, revealed when condition fires). <example> User: "Hide the company name field when the role is Student" WRONG — inverted into SHOW + negated condition: WHEN role IS Professional THEN SHOW companyName WHEN role IS Academic THEN SHOW companyName RIGHT — direct HIDE matching the user's verb: WHEN role IS Student THEN HIDE companyName </example> </verb_matches_user> <page_jump_routing> Follow the user's explicit destinations. Do not infer extra routes from field or option labels. When only blank answers should jump, add IS EMPTY only; selected answers keep their default path, even if an option label suggests skipping. A page jump — JUMP TO PAGE or JUMP TO END — is an override on top of the default linear page order: it only fires when its WHEN condition is true. Before adding one, decide whether skipping the gating field is a mistake or a valid choice: - Branch routing / eligibility screen-out — every respondent must reach a specific page based on their answer. Make the gating field required (set isRequired via configure_blocks); otherwise anyone who skips it never matches the jump and falls through to the wrong linear page (or, for a skipped JUMP TO END, the form never exits and keeps collecting). Don't rely on the linear fall-through to carry a branch that should have jumped. - Optional opt-out / "skip ahead" — skipping is itself a valid choice and leaving the field blank is meant to continue to the next page. Leave the field optional; don't force it required. When in doubt, treat it as branch routing and make the field required — only leave it optional when skipping is clearly an intended opt-out, a rule routes blank answers, or a conditional REQUIRE rule controls it. <example> Branch routing — route to the "Press" page when topic IS Press, and every respondent must reach their team's page: WRONG — topic is optional, so respondents who skip it fall through to the next linear page: WHEN <topicUuid> IS <pressUuid> THEN JUMP TO PAGE 8 RIGHT — make <topicUuid> required (isRequired via configure_blocks) so the jump always fires. </example> <example> Optional opt-out — "Skip the remaining questions?" jumps to the end when chosen, and leaving it blank is meant to continue: WHEN <skipUuid> IS <yesUuid> THEN JUMP TO END Leave <skipUuid> optional — skipping is intentional, so falling through to the next page is correct. </example> </page_jump_routing>

  • Configure blocks

    If you have not read tally://reference/blocks and tally://reference/calculations yet, read them first (as MCP resources or with read_reference). Configure block's properties. Use the current form ledger to find blocks and their properties. IMPORTANT: - Those are partial (incremental) updates - only properties you include will be changed - Set a property to null to unset it - To change the type of a question, use the change_type operation once on ONLY 1 option block in the group. This will change the entire group to that type. - To hide entire question, update the TITLE block and all question blocks will be hidden automatically - For hidden_fields_settings: provide the complete list of hidden fields (add new, remove by exclusion, rename by keeping UUID and changing name) - For calculated_fields_settings: provide the complete list of calculated fields (add/remove/rename/change-value/retype). Keep an existing field's UUID to update it (rename, change type, change value), omit UUID for new entries, exclude an entry to remove it. CALCULATE rules referencing a removed field are auto-cleaned. To remove a single calc field while keeping others, remove_blocks works too — pass that field's UUID directly.

  • Remove blocks

    If you have not read tally://reference/blocks yet, read it first (as an MCP resource or with read_reference). Remove specific blocks from the form. Use the current form ledger to find blocks. Also accepts the uuid of an individual calculated field or hidden field — in that case only that entry is removed, and the parent block stays unless it becomes empty. IMPORTANT: - Never remove blocks unless the user explicitly asked you to - To remove entire questions, use remove_questions tool instead - To remove entire pages, use remove_pages tool instead

  • Remove pages

    If you have not read tally://reference/blocks yet, read it first (as an MCP resource or with read_reference). Remove entire pages from the form. Use the current form ledger to find page numbers. IMPORTANT: - Never remove pages unless the user explicitly asked you to - Removes all blocks on the page including the PAGE_BREAK - To remove individual blocks (TEXT, DIVIDER, etc.), use remove_blocks tool instead

  • Remove questions

    If you have not read tally://reference/blocks yet, read it first (as an MCP resource or with read_reference). Remove entire questions from the form. Use the current form ledger to find questions by their questionUuid. IMPORTANT: - Never remove questions unless the user explicitly asked you to - Removes all blocks that belong to the question (TITLE + input/options) - To remove individual blocks (TEXT, DIVIDER, etc.), use remove_blocks tool instead