create_model_from_template
Create a new model using an internal workspace template as its starting point. Any workspace member may call this tool. The new model starts with a full copy of the template’s code and version history. Data-source credentials and prior run outputs are NOT copied. Provenance is recorded so the new model’s origin is traceable.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
template_model_name | Annotated[str, Field(description='Name of the existing model to use as a template source.')] | Yes | — | |
new_model_name | Annotated[str, Field(description='Name for the newly created model. Must be unique within the workspace.')] | Yes | — | |
description | Annotated[str, Field(description='Optional description for the new model.')] | No | '' | |
branch | `Annotated[str | None, Field(description=“Branch in the template model to copy from. Defaults to the template’s default branch.”)]` | No | None |
Returns
Section titled “Returns”Returns a structured object. Top-level fields:
model(string)template_source(string)description(string)
See the response example below for the full payload shape.
Example
Section titled “Example”Tool Call
Section titled “Tool Call”{ "name": "create_model_from_template", "arguments": { "template_model_name": "saas-arr-template", "new_model_name": "forecasts", "description": "FY26 SaaS forecasts" }}Response
Section titled “Response”{ "model": "forecasts", "template_source": "saas-arr-template", "description": "FY26 SaaS forecasts"}- Module:
Templates - Requires authentication via API token or Auth0 JWT.