Skip to main content
Glama

financials_fill

Pull one line item from a company's filings onto one row of the model, matched to the axis by period: a period holding nothing is filled, one already holding this figure is left alone, and one holding a different figure is reported and left as it is — somebody may have corrected it — unless overwrite. Figures land in the row's actuals by default, which is where a reported figure belongs: the model reconciles to an actual, while the same number typed into an input is a forecast that happens to be right. Set actualsThrough with set_axis first, or the periods are reported instead of written. A span only fills a period of its own length, so a figure that covers several — a reported year on a monthly model — is reported back with the periods it would cover rather than divided across them on its own; spread divides it, and is the analyst's answer to that offer rather than yours to assume. Run again to refresh: it is the same call. The row records the provider, company, line item, frame, range, URL and any split agreed. preview reports what it would do and changes nothing. The result names notYetPulled — the line items this provider answers for this company that the model still has no figures for, grouped by the statement each belongs to, because nothing in a model says what was available and a pull that stops at two of eleven leaves the balance sheet forecasting years the company has already reported. It also names alsoHeldBeside where a level lands on a row with siblings already holding a balance of the same order: the provider's name for a line item is not this model's, and a figure written beside the row that already holds those assets counts them twice — invisibly in the reported years and permanently in the forecast.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "model": "<model>",
      "provider": "<provider>",
      "symbol": "<symbol>",
      "metric": "<metric>",
      "frame": "<frame>",
      "from": "<from>",
      "to": "<to>",
      "row": "<row>"
    },
    "name": "financials_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesLatest period end to take, YYYY-MM-DD.
rowYesThe row the figures land on, by full name, e.g. `income.revenue`.
fromYesEarliest period end to take, YYYY-MM-DD.
intoNoWhere they land. `actuals` (the default) is reported history the model reconciles to. `values` seeds an input in the current scenario, which is for a base year an assumption is built from — and is an assumption, not a fact, however it was sourced. `ledger` books each reported period as an *entry* in a table instead, carrying the span it covers: `row` then names a column of a table made with add_ledger and `spans: true`, and the model reads it with LEDGER_PRORATA (which shares each figure across the periods it covers) or LEDGER_LAST (an as-at balance). Prefer it where the model's grain is finer than the company's reporting: the reported figure stays whole and visible, a restatement changes one entry, and the apportionment is a formula a reader can see and change rather than a number written into the actuals.
alignNoWhich period a fiscal year belongs to. `period-end` (the default) is the period the span ends in, which is right for a December or September year end. `fiscal-year` is the year the filer itself named, and is for the retailer whose 2024 ends in January 2025.
frameYesHow often the figures were published: 'annual', 'half_year' or 'quarterly', and nothing else. Half-yearly is the interim most of the world files — the UK, Australia, much of Europe and Asia — and a US filer's six months to date. It has to match the model's own grain — an annual model takes 'annual', a half-yearly one 'half_year' and a quarterly one 'quarterly', because a period is filled by a span of its own length. Read it off model_overview. Nobody files a month, so a monthly model takes neither on its own: its figures have to be spread across the months they cover, which the analyst agrees to first.
modelYesModel uid (`model_…`), from model_list.
quoteNoAnswer the price of this pull and what would be held for it, and run nothing. Free.
scaleNoDivide every figure by this before it lands. Filings are in whole currency units and so is this format, so leave it off unless the row genuinely stores millions — number formatting is a separate thing and does not need it.
metricYesA line-item id from financials_providers.
spreadNoSpread each figure across the periods it covers, where it covers whole ones — a reported year over twelve months, a quarter over three. Only with the analyst's agreement: no filing says how a year fell across its months, so the shape is an assumption made in their model, and it is written on the row where a reviewer can see it. Which one this row takes is decided by how its periods combine into a year, because a split is that reading backwards: 'divide' shares a flow out by the length of each period; 'interpolate' writes each reported closing balance on the period it closes and glides between two of them; 'at-end' and 'at-start' state a level only where it was reported and leave the rest blank; 'repeat' holds a rate at its level. **Spread the flows and the balances of one statement the same way**: 'divide' and 'interpolate' are the same assumption — a constant rate per day — so a roll-forward ties month by month and a balance sheet balances in every period, while a balance held flat with 'repeat' breaks both. The result of a refused pull names the one this row takes — pass that, and never another. Preview it, offer it with suggest_changes, and pass it when they say yes.
symbolYesThe company's ticker, or a CIK on EDGAR.
combineNoAdd figures shorter than the model's periods into the periods they exactly fill — a year from its two reported halves. Only where every part is there, end to end, and only on a row whose periods add up (a flow): a rate does not add and a balance is not a span. The sum is this importer's arithmetic rather than a filed figure, so it is the analyst's answer to the offer a refused pull makes (combineOffer), never yours to assume; and on an annual model the annual frame is usually the better answer, because the filer published the year.
previewNoReport what the pull would change and write nothing.
deriveH2NoWork out the second half a half-yearly filer never publishes, as the year less the first half — a US filer's second-quarter report prints the six months to date and nothing prints the six after. Each figure it produces is marked derived, and appears in no document — say so if you use it.
deriveQ4NoWork out the fourth quarter no US filer publishes, as the year less the three quarters. The figures appear in no document; the row's provenance says so, and so should your reply.
providerYesA provider id from financials_providers.
overwriteNoTake the filing's figure where the row already holds a different one. Default false; say why when you set it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag readOnlyHint=false and openWorldHint=true; the description adds rich behavior: default non-overwrite, conflict reporting, actuals vs values distinction, provenance recording, notYetPulled/alsoHeldBeside warnings, and refresh semantics. This goes well beyond structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and logically ordered, with each clause contributing operational detail. It is long and occasionally dense for an 18-parameter tool, but the length is justified by the complexity; minor tightening possible.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers preconditions, default and edge-case behavior, output signals (notYetPulled, alsoHeldBeside), and provenance for a complex mutation tool with no output schema. An agent has what it needs to call correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the input schema already documents every parameter in depth. The description repeats much of that meaning (into, spread, combine) and adds only a few preconditions; baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a precise verb-resource-scope: 'Pull one line item from a company's filings onto one row of the model, matched to the axis by period.' An agent can distinguish this import action from read/search siblings without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Specifies key prerequisites ('Set actualsThrough with set_axis first') and conditions for spread/combine ('only with the analyst's agreement'), and explains preview/overwrite. It does not name alternative tools like financials_read or feed_fill, so exclusion guidance is absent, but the operational context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources