Skip to content

describe_model

Use describe_model for static model metadata without executing code. Follow with run only after the contract and required inputs are understood.

NameTypeRequiredDefaultDescription
model_nameAnnotated[str, Field(description='Name of the Bridge Town model.')]Yes
pathAnnotated[str, Field(description="Model-relative path of a Python model file to statically describe (e.g. 'model/revenue.py'). Omit to get a bounded model-level overview instead of a single-file contract.")]No''
include`Annotated[list[Literal[‘branches’, ‘runs’, ‘data_sources’]]None, Field(description=“Overview mode only (path omitted). Which bounded sections to add beyond files: ‘branches’ (recent branches), ‘runs’ (recent run summaries), ‘data_sources’ (attached data sources). Defaults to [‘branches’] — the model-inventory view (formerly get_model_overview). Pass [‘runs’, ‘data_sources’] for the model-review-context view used before proposing a logic change (formerly get_model_review_context).”)]`NoNone
branch`Annotated[strNone, Field(description=“Branch to read from. Single-file mode: read path from this branch. Overview mode: scope files/runs to this branch. Defaults to the model’s default branch when omitted or null.”)]`NoNone
max_filesAnnotated[int, Field(description='Overview mode only. Maximum file entries; capped at 50.')]No25
max_branchesAnnotated[int, Field(description='Overview mode only. Maximum branch entries; capped at 50.')]No20
max_runsAnnotated[int, Field(description='Overview mode only. Maximum run summaries; capped at 20.')]No5
max_data_sourcesAnnotated[int, Field(description='Overview mode only. Maximum data-source entries; capped at 20.')]No20
workspace_id`Annotated[strNone, Field(description=WORKSPACE_ID_FIELD_DESCRIPTION)]`NoNone

Returns a structured object. Top-level fields:

  • model (string)
  • path (string)
  • sha (string)
  • inputs (array<string>)
  • outputs (array<string>)
  • dependencies (null)
  • warnings (array)
  • confidence (string)

See the response example below for the full payload shape.

{
"name": "describe_model",
"arguments": {
"model_name": "forecasts",
"path": "model/revenue.py"
}
}
{
"model": "forecasts",
"path": "model/revenue.py",
"sha": "abc1234def5678901234567890abcdef12345678",
"inputs": [
"growth_rate"
],
"outputs": [
"revenue"
],
"dependencies": null,
"warnings": [],
"confidence": "high"
}
  • Module: Files
  • Requires authentication via API token or Auth0 JWT.