MCP Tools Reference
The PromptOT MCP server exposes 23 tools across five areas: prompts, blocks, variables, versions, and test cases. Every tool requires one or more scopes — see the scopes reference for the full vocabulary.
For maintainers: if you add or remove a tool in apps/mcp/src/tools/*.ts, update this page too. A future task is to extract a shared TOOL_CATALOG constant so the docs never drift.
Prompts
List, fetch, create, update, and delete prompts in a project.
list_promptsList all prompts in the project.
Inputs
limitnumberget_promptFetch a single prompt with blocks, variables, and compiled output.
Inputs
prompt_idstringrequiredtruncatebooleanmax_tokensnumberget_compiled_promptCompile a prompt to markdown and return the assembled string.
Inputs
prompt_idstringrequiredtruncatebooleanmax_tokensnumbercreate_promptCreate a new prompt with default blocks.
Inputs
namestringrequireddescriptionstringtagsstring[]folder_idstringupdate_promptUpdate prompt metadata (name, description, tags, folder).
Inputs
prompt_idstringrequirednamestringdescriptionstringtagsstring[]folder_idstringdelete_promptPermanently delete a prompt.
Inputs
prompt_idstringrequiredconfirmtruerequiredBlocks
Manage typed blocks (role, context, instructions, guardrails, output_format, custom).
list_blocksList all blocks for a prompt in sort order.
Inputs
prompt_idstringrequiredcreate_blockCreate a new block on a prompt.
Inputs
prompt_idstringrequiredtype'role' | 'context' | 'instructions' | 'guardrails' | 'output_format' | 'custom'requiredtitlestringrequiredcontentstringsort_ordernumberenabledbooleanis_requiredbooleanupdate_blockUpdate block fields.
Inputs
block_idstringrequiredtitlestringcontentstringenabledbooleansort_ordernumberdelete_blockPermanently delete a block from a prompt.
Inputs
block_idstringrequiredreorder_blocksReorder all blocks on a prompt in one atomic call.
Inputs
prompt_idstringrequiredblock_idsstring[]requiredVariables
Manage {{variable}} placeholders that are resolved at fetch time.
list_variablesList all variables defined on a prompt.
Inputs
prompt_idstringrequiredupsert_variableCreate or update a variable on a prompt.
Inputs
prompt_idstringrequiredkeystringrequireddefault_valuestringdescriptionstringdelete_variableDelete a variable from a prompt.
Inputs
variable_idstringrequiredVersions
Save drafts, publish immutable versions, roll back, and diff.
list_versionsList all versions (drafts and published) for a prompt.
Inputs
prompt_idstringrequiredsave_draft_versionSnapshot the current block/variable state as a new draft version.
Inputs
prompt_idstringrequiredchangelog_notestringpublish_versionPromote a draft version to published. Production API keys will start returning this version.
Inputs
version_idstringrequiredchangelog_notestringFires the prompt.published webhook to all registered webhook endpoints for the project.
rollback_to_versionRestore the version's blocks/variables as a new draft on the same prompt.
Inputs
version_idstringrequireddiff_versionsCompare two versions and return a structured diff of blocks and variables.
Inputs
version_a_idstringrequiredversion_b_idstringrequiredTest Cases
Manage reusable test inputs for evaluation runs.
list_test_casesList all test cases attached to a prompt.
Inputs
prompt_idstringrequiredcreate_test_caseCreate a new test case for a prompt.
Inputs
prompt_idstringrequirednamestringrequiredinput_textstringrequiredvariable_overridesRecord<string, string>expected_outputstringevaluation_criteriaobjectupdate_test_caseUpdate fields on an existing test case.
Inputs
test_case_idstringrequirednamestringinput_textstringvariable_overridesRecord<string, string>expected_outputstringevaluation_criteriaobjectdelete_test_caseDelete a test case permanently.
Inputs
test_case_idstringrequired