# Use Agos Model from an agent

Agos Model lets an agent create a financial model, run named cases and return links to the results. The user owns the project and the saved work.

Connect to `https://model.iamagos.com/mcp` over Streamable HTTP and call `model.context` to confirm the project. [MCP setup](https://model.iamagos.com/docs/use/#use-another-mcp-client)

For the optional Build model and Review model workflows, install the skills from the Agos domain with the skills.sh CLI. The discovery index gives each skill’s description, Markdown URL and SHA-256 digest. [Install the agent skills](https://model.iamagos.com/docs/use/#install-the-agent-skills) · [Skill index](https://model.iamagos.com/.well-known/agent-skills/index.json)

## Discover what you can build

Start at [/llms.txt](https://model.iamagos.com/llms.txt). Follow the [recipe index](https://model.iamagos.com/catalog/recipes/index.json) to the relevant recipe’s `data` URL and its `example.data` URL. Paths beginning with `/` resolve against the Model service origin. Public reads require no credential or browser.

1. Read the recipe reference for typed inputs and outputs, axes, units, declared defaults, reports and component dependencies. The `stages` object maps each stage component to the stages that supply its results. A default of zero is a supplied value. A derived input comes from the model. Each input’s presentation can specify how to display a stored ratio or a whole percentage.
2. Read the example manifest and choose a case. It links the exact input values, input groups, statements, dashboard, workbook and any captured Model Builder equation. Follow a statement’s `data` URL and use its row identifiers, period columns, availability and units. Link the `url` for a person to open the viewer. Values such as 0.8 and 80 can both represent 80% under different declared scales.
3. For a reusable calculation, look up its ID in the [release inventory](https://model.iamagos.com/catalog/index.json), then GET `/catalog/components/{id}.json`. Choose an output in `calculation.nodes`. Follow each `sources[].node` upstream to its inputs and named steps. A field selection can link to a specific output of a child component. Each step gives its rule, the arguments to any functions it calls and the state it carries between periods. Cite the human component page with the node ID as its fragment. [Room Occupancy calculation](https://model.iamagos.com/catalog/components/hotel_room_occupancy/#output-underwritten_occupancy) · [Library membership](https://model.iamagos.com/catalog/libraries/index.json)

Use the recipe reference’s `statementNavigation` to match a statement ID to its financial category. The case’s `openingStatement` identifies its opening annual report. Use `inputs.sections[].url` for a named assumption group and `dashboards[].sections[].url` for a dashboard heading. Copy the URL from the requested case to preserve its assumptions. Use annual statements and Excel by default. Preserve a period the user requests or shares. For a saved case, use `run.selection` to find its periods. [Hotel recipe reference](https://model.iamagos.com/catalog/recipes/hotel/index.json) · [Harbor Hotel cases](https://model.iamagos.com/examples/harbor-hotel/index.json)

For a worked recipe, follow `builder.data` to find the statement and row behind a figure. Its `statements[].rows` list gives the financial label, row ID and equation path. Expand the case’s `builder.rowUrlTemplate` with the statement and row IDs to share that calculation. [Trace construction draws in Project Cash Flow](https://model.iamagos.com/examples/single-family-development/?view=builder&report=cash_flow&line=cash_flow.construction_draws)

For example, the [SaaS Cash Runway case](https://model.iamagos.com/examples/saas-cash-runway/index.json) links the six monthly cash flow assumptions, cash bridge and saved workbook. Its opening cash is $250,000, free cash flow totals ($285,000), and the financing round adds $100,000. Ending cash is $65,000. The dashboard and statement expose that value as a number. Annual statements may aggregate several months. Use their column selectors when matching periods. [Open the example in a browser](https://model.iamagos.com/examples/saas-cash-runway/)

For a public-company request, ask for the issuer, periods, source filings and forecast assumptions. Supply reported figures and their sources. The Three Statements recipe links earnings, the balance sheet and cash flows. In the saved Apple example, cite the fiscal year, distinguish reported figures from the illustration and use the exact amount and unit from the linked statement. [Three Statements recipe](https://model.iamagos.com/catalog/recipes/statements/) · [Apple’s reported net income](https://model.iamagos.com/examples/apple-fy2025/?report=income&line=actual_earnings) · [Build a Hotel case from a prompt](https://model.iamagos.com/docs/use/#build-and-compare-a-hotel)

## Connect and select a recipe

Choose a connection your agent can use.

- Download the Claude or ChatGPT plugin from the public setup page. ChatGPT web uploads use the ZIP for the user’s workspace connection. Each person signs in to Agos and approves the connection. The plugins include skills for building and reviewing a model. [Plugin setup](https://model.iamagos.com/docs/use/)
- With another remote MCP client, connect to `https://model.iamagos.com/mcp`. A client that sends an HTTP bearer token can use a scoped project key. [Request a project key](https://model.iamagos.com/docs/developers/#connect-a-project)
- With a custom tool interface, call the Model API from the agent's backend. The host can use a local or hosted language model. [HTTP and SDK examples](https://model.iamagos.com/docs/developers/)

1. Call `model.context` to identify the project and its available operations. With MCP, read `model://guide` for the service contract.
2. Search `catalog.list` with the project, `kind` and `query`. Use the exact reference returned by the connected service. Call `catalog.read` for its inputs, outputs and dependencies. For model authoring, `authoring.discover` lists the supported constructs, expressions and functions.

## Build and run a case

Agree on the model, the period, the assumptions to change and the results the user wants. Keep the units and sources for supplied figures. Create the model with `model.create`, passing the project, the recipe reference, a key, a label and a mutation ID. Keep the returned revision.

For each case, select the statements, dashboards and Excel mode the user needs. Use `run.quote.prepare` and keep its preparation ID. Poll `run.quote.status`. Compare the ready quote's maximum and expiry with the user's authorization before calling `run.submit`. Save each mutation ID and request before sending. If the response is lost, replay the same request with the same ID.

Read `run.read` until the run succeeds or fails. When it succeeds, use `run.list` with the model and exact run ID to get the case URL. A link from the service preserves the run the user approved.

## Return results the user can inspect

- Give the case name and URL. The reader opens **Statements**, **Dashboards**, **Inputs** and **Model builder** from the same case. Project access follows the reader's Agos sign-in. When a person shares a viewer link, preserve its query parameters. They identify the view and can also identify a report, period, figure, input section, dashboard block or equation. Each public example has a searchable list of its statements, inputs and dashboards. Use a figure or block link when citing one result.
- Cite the statement row, period and unit when reporting a figure. Use `run.selection` to identify captured results. For a Markdown memo, link the saved statement cell. The viewer provides **Copy figure link**.
- A dashboard figure link can include both `block` and `metric`. Keep both when citing an assumption or result. In the [Hotel Downside outlook](https://model.iamagos.com/examples/harbor-hotel/?case=downside&view=dashboards&block=operating-outlook&metric=revenue), the figure links to the Year 1 statement cell and occupancy assumption.
- Use `run.compare` on saved runs for case comparisons. Inspect the input differences and equations before attributing a change to an assumption.
- For a single-period change, check the other saved periods as well. In Harbor Hotel’s **Y2 lift** case, the retained Y2 occupancy is 82.35% and the Y2 statement reports $6,011,550. The other occupancy periods match Base. [Trace the public example](https://model.iamagos.com/examples/harbor-hotel/?case=y2-lift&view=inputs&input=operating.occupancy)
- For Excel, inspect the successful run's manifest with `artifact.list`. Select the workbook with the requested export mode. Use `artifact.describe` and `artifact.read` to verify its size and SHA-256 digest before delivering an attachment. A text-only host can return the case URL and name the Excel action shown for that case, such as **Annual Excel snapshot** or **Live Excel workbook**.
- If the run needs a workbook, check for `run.workbook.quote` and review the quote with the user. The standard Hotel exports a snapshot of saved values. Ask before changing a requested formula workbook to a snapshot.

[Read this guide as Markdown](https://model.iamagos.com/docs/agents.md) · [HTTP and SDK examples](https://model.iamagos.com/docs/developers/)

For a Hotel occupancy change, read the saved occupancy vector and its `operating.periods` labels. Keep each period the user wants to retain. For example, if a Downside case stores 70% in all five periods, changing Y1 to 75% gives `[0.75, 0.7, 0.7, 0.7, 0.7]` in the recipe’s ratio scale. Y5+ carries forward. Use `run.scenario.preview` for an unsaved calculation. To keep the change, quote the identical override against the source run and return the new case link after submission. When a person returns from the website, read the run ID in the link they share. If they give a case name, refresh `run.list` and disambiguate matching cases. [Inspect the saved example](https://model.iamagos.com/examples/harbor-hotel/?case=downside&view=inputs&input=operating.occupancy)


For a historical period or comparable property, use the recipe's row key. To add a record, request `includeRecords: true` on `model.input.layout` and append all columns in its `recordInputs` together. To explain or document a saved assumption, use `run.input.notes` or `run.input.annotate` on the exact run, name and optional zero-based position. The historical record and the forecast have separate sources and reasons.

For a statement figure, link to its saved row, period and display basis. Request the matching cell evidence when preparing a case whose results a reader will need to explain. Name the period and unit when quoting a figure. Describe the workbook using its saved period and mode. [Inspect a saved figure](/docs/#read-the-statements)
