get_model_review_context
Get bounded files, recent runs, and data-source context for reviewing model logic. This does not submit a pull-request review or change model state.
read-only · idempotent
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
model_name | Annotated[str, Field(description='Name of the Bridge Town model.')] | Yes | — | |
branch | `Annotated[str | None, Field(description=‘Optional branch to inspect.’)]` | No | None |
max_files | Annotated[int, Field(description='Maximum file entries; capped at 50.')] | No | 20 | |
max_runs | Annotated[int, Field(description='Maximum run summaries; capped at 20.')] | No | 5 | |
max_data_sources | Annotated[int, Field(description='Maximum data-source entries; capped at 20.')] | No | 20 | |
workspace_id | `Annotated[str | None, Field(description=WORKSPACE_ID_FIELD_DESCRIPTION)]` | No | None |
Returns
Section titled “Returns”Returns a structured object. Top-level fields:
model(string)branch(string)files(array<object>)runs(array<object>)data_sources(array<object>)truncated(boolean)
See the response example below for the full payload shape.
Example
Section titled “Example”Tool Call
Section titled “Tool Call”{ "name": "get_model_review_context", "arguments": { "model_name": "forecasts", "branch": "scenario/aggressive-growth", "max_files": 10, "max_runs": 5, "max_data_sources": 5 }}Response
Section titled “Response”{ "model": "forecasts", "branch": "scenario/aggressive-growth", "files": [ { "path": "run.py", "size": 4120 } ], "runs": [ { "run_id": "66666666-6666-6666-6666-666666666666", "status": "success" } ], "data_sources": [ { "source_name": "actuals", "source_type": "parquet" } ], "truncated": false}- Module:
Models - Requires authentication via API token or Auth0 JWT.