Skip to content

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.

NameTypeRequiredDefaultDescription
template_model_nameAnnotated[str, Field(description='Name of the existing model to use as a template source.')]Yes
new_model_nameAnnotated[str, Field(description='Name for the newly created model. Must be unique within the workspace.')]Yes
descriptionAnnotated[str, Field(description='Optional description for the new model.')]No''
branch`Annotated[strNone, Field(description=“Branch in the template model to copy from. Defaults to the template’s default branch.”)]`NoNone

Returns a structured object. Top-level fields:

  • model (string)
  • template_source (string)
  • description (string)

See the response example below for the full payload shape.

{
"name": "create_model_from_template",
"arguments": {
"template_model_name": "saas-arr-template",
"new_model_name": "forecasts",
"description": "FY26 SaaS forecasts"
}
}
{
"model": "forecasts",
"template_source": "saas-arr-template",
"description": "FY26 SaaS forecasts"
}
  • Module: Templates
  • Requires authentication via API token or Auth0 JWT.