Skip to main content
Glama

set_actuals

Record what actually happened on a row: a map of period label to figure, or an array with one entry per period, for periods at or before actualsThrough. An actual overrides the model's value in that period and the model reconciles to it; a reported figure typed into an input instead is a forecast that happens to be right. A blank (null) clears an actual. Inputs and calculated rows take actuals; constants and checks do not. Set actualsThrough with set_axis first. A period a company's filings were pulled into is refused: the row says where its figures came from, and typing over them leaves that claim standing on numbers the provider never published. replacePulled types them anyway and drops the claim with them.

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>",
      "name": "<name>",
      "values": "<values>"
    },
    "name": "set_actuals"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
modelYesModel uid (`model_…`), from model_list.
sourceNoWhere the figures were read, as the row's source sentence: the attachment's file name and page ("cerro-verde-initiation.pdf, p. 4"). A figure read from an attached document is then cited to it and checked against its page.
valuesYes`{ "2025-12": 1234000 }`, or an array of one value per period with null where there is none.
replacePulledNoType over periods filled from a company's filings, dropping the record of the pull from the row. Only where the analyst wants a figure the provider did not publish; a reported figure that disagrees with the model is reported, not overwritten.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / values / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  },
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "additionalProperties": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Goes well past the annotations by explaining the override-and-reconcile semantics ('An actual overrides the model's value in that period and the model reconciles to it'), that null clears a value, and that periods sourced from company filings are refused with a rationale. It also discloses the side effect of `replacePulled` — dropping the record of the pull — which the `destructiveHint: false` annotation does not surface. It says nothing about idempotence or response behavior, though `idempotentHint: false` makes repeat-call behavior mildly relevant.

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-loads the core action and accepted formats in the first sentence, then layers prerequisites and exceptions in descending priority. The closing sentence about filings is dense and syntactically tangled ('A period a company's filings were pulled into is refused'), and `name` receives no prose treatment at all, but nothing is redundant filler.

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

Completeness4/5

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

For a 5-parameter mutation tool with no output schema, the description covers input formats, prerequisites, permitted row types, refusal conditions, and the destructive escape hatch — enough for an agent to call it correctly. It leaves open what happens on partial success (some periods accepted, one refused) and what the call returns, which matters given multiple periods per call.

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 80%, so the baseline is 3, and the description mostly restates the schema's own explanation of `values` (map vs. array, null clears) and `replacePulled`. The one genuine addition is the framing of `source`-based citations as a row-level provenance claim that typing over pulled periods leaves 'standing on numbers the provider never published', though it does not explain the `source` parameter format itself — the schema does that. Net value over the structured fields is modest.

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

Purpose4/5

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

Opens with a concrete verb and resource: 'Record what actually happened on a row', and immediately specifies the accepted value shapes (map of period label to figure, or array indexed by period). It separates actuals from forecasts typed into inputs, which is a meaningful conceptual distinction. It never names a sibling tool it competes with (e.g. set_values or entries_set), so an agent must infer the boundary from context rather than from the text.

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?

Gives explicit eligibility rules ('Inputs and calculated rows take actuals; constants and checks do not') and a prerequisite ('Set actualsThrough with set_axis first'), plus a described refusal condition for pulled periods. What is missing is a named alternative for the case the tool refuses — the only escape hatch offered is the in-tool `replacePulled` flag.

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