Skip to main content
Glama

Get current account history

economics_get_current_account_history
Read-onlyIdempotent

Quarterly current account balance by period for one country. The current account balance is the net balance (credits less debits) of a country's external accounts: goods, services, income and transfers. It is quarterly, in whole US dollars, and a net flow over the quarter, not a stock. The value can be negative: a negative value is a deficit. accounting_standard names the balance of payments manual the figure follows. The International Monetary Fund distributes the series, and source names it as distributor and the original publisher, as the IMF's own series metadata gives it, as publisher. The data is free from the IMF. Source: International Monetary Fund, Balance of Payments and International Investment Position Statistics (BOP/IIP). Covers ARG, CHN, IDN, KOR, MEX, SLV, THA, UKR and URY. Any other country answers 404 series_not_found and is not charged. For only the newest value use economics_get_current_account.

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": {
      "country": "<country>"
    },
    "name": "economics_get_current_account_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoLast period or day to return, inclusive: `YYYY`, `YYYY-MM` or `YYYY-Q1` (for example `2025`, `2025-06`, `2025-Q2`). Leave out for no upper bound.
limitNoMost rows to return in one answer. Default 100, max 1000.
startNoFirst period or day to return, inclusive: `YYYY`, `YYYY-MM` or `YYYY-Q1` (for example `2025`, `2025-06`, `2025-Q2`). Leave out for no lower bound.
cursorNoPaging token. Leave out for the first page; to read the next one, pass the previous answer's `next_cursor` back unchanged with the same other arguments.
countryYesCountry as a three-letter ISO 3166-1 code in capitals, for example `USA`, `IDN` or `JPN`.
series_idNoSeries id (UUID) from an earlier answer. Leave out for the country's default series.

Output Schema

NameRequiredDescriptionDefault
unitYesAlways `currency` here.
sourceYesWho published the balance. `publisher` is the body the International Monetary Fund's series metadata names as the original source; `distributor` is the International Monetary Fund, which Narwhal reads it from. One source per series, for its whole history.
countryYes
currencyNo
series_idYes
time_basisYesAlways `period_flow`: the net flow over the quarter, not a stock.
next_cursorYes
observationsYes
accounting_standardYesThe balance of payments manual the figure follows, for example BPM6.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedOutput schema / $defs / SignedDepthObservation / properties / period_end
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "format": "date",
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Period End"
      -}
    • removedOutput schema / $defs / SignedDepthObservation / properties / period_start
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "format": "date",
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Period Start"
      -}
    • changedOutput schema / $defs / SignedDepthObservation / properties / release_status / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "preliminary",
      -      "revised",
      -      "final"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "const": "preliminary",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / $defs / SignedDepthObservation / properties / release_status / description
      Added value: +"`preliminary` when the publisher marks the figure provisional. Left out otherwise."
  2. Changed6 schema fields changed
    • addedInput schema / properties / country / description
      Added value: +"Country as a three-letter ISO 3166-1 code in capitals, for example `USA`, `IDN` or `JPN`."
    • addedInput schema / properties / cursor / description
      Added value: +"Paging token. Leave out for the first page; to read the next one, pass the previous answer's `next_cursor` back unchanged with the same other arguments."
    • addedInput schema / properties / end / description
      Added value: +"Last period or day to return, inclusive: `YYYY`, `YYYY-MM` or `YYYY-Q1` (for example `2025`, `2025-06`, `2025-Q2`). Leave out for no upper bound."
    • addedInput schema / properties / limit / description
      Added value: +"Most rows to return in one answer. Default 100, max 1000."
    • addedInput schema / properties / series_id / description
      Added value: +"Series id (UUID) from an earlier answer. Leave out for the country's default series."
    • addedInput schema / properties / start / description
      Added value: +"First period or day to return, inclusive: `YYYY`, `YYYY-MM` or `YYYY-Q1` (for example `2025`, `2025-06`, `2025-Q2`). Leave out for no lower bound."
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, closed-world behavior, and the description adds substantial context beyond them: units (whole US dollars), that the series is a net quarterly flow rather than a stock, that negative values mean deficit, what `accounting_standard` and `source` fields represent, distributor vs publisher attribution, that the data is free, and that unsupported countries are not charged. This is unusually rich disclosure for a read tool.

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?

The core definition and routing instruction are front-loaded, and every sentence about units, sign, and coverage carries information. There is mild redundancy: the IMF distribution sentence is convoluted and repeated in the trailing 'Source: International Monetary Fund, Balance of Payments...' citation.

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?

An output schema exists, so return values need not be explained, and the remaining agent questions — units, direction of sign, coverage exclusions, error behavior, and the correct sibling for a different need — are all answered. Nothing required to call this tool correctly is missing.

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 description coverage is 100%, with start, end, limit, cursor, country and series_id each documented in the schema itself, so the baseline of 3 applies. The description implies period-based querying and a per-country series selection but adds no syntax, paging, or defaulting detail beyond the schema.

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?

States a specific verb and resource — quarterly current account balance by period for one country — and pins down the exact measure (net balance of goods, services, income and transfers) plus its flow/stock nature. It explicitly distinguishes itself from the sibling `economics_get_current_account`, which returns only the newest value.

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

Usage Guidelines5/5

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

Gives a direct routing rule to the alternative tool for the newest-value case, and states the supported-country constraint (ARG, CHN, IDN, KOR, MEX, SLV, THA, UKR, URY) so the agent knows when this tool will fail. Naming the 404 series_not_found outcome for other countries is a concrete use-time condition.

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