Skip to main content
Glama

Sarb Timeseries

sarb_timeseries
Read-onlyIdempotent

Historical observation series for a single SARB indicator, identified by its TimeseriesCode (obtain codes from home_rates, current_market_rates, cpd_rates or exchange_rates). Examples: "MMRD002A" (SARB Policy Rate, or use sarb_policy_rate directly), "MMRD000A" (prime lending rate), "EXCX135D" (Rand per US Dollar), "CPI1000F" (CPI). Optionally bound the range with start_date and end_date (YYYY-MM-DD); omit both for the most recent ~25 points, not the full history. An unknown code and a valid code with no data in range both come back as a named no_data error (the SARB itself cannot tell them apart).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "MMRD002A"
    },
    "name": "sarb_timeseries"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesSARB TimeseriesCode, e.g. "MMRD002A", "EXCX135D", "CPI1000F".
end_dateNoRange end, YYYY-MM-DD (optional). Requires start_date.
start_dateNoRange start, YYYY-MM-DD (optional). Requires end_date.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "code": "MMRD002A"
      +  },
      +  {
      +    "code": "EXCX135D",
      +    "end_date": "2024-12-31",
      +    "start_date": "2023-01-01"
      +  }
      +]
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds two genuinely non-obvious traits: unbounded calls return only ~25 recent points rather than full history, and unknown codes are indistinguishable from empty ranges, both surfacing as a named `no_data` error. It stops short of describing response shape or ordering.

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

Conciseness5/5

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

Four dense sentences, front-loaded with the primary purpose, then code sourcing, then range semantics, then error semantics. The example codes earn their place by anchoring ambiguous code formats; nothing is redundant with the schema.

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 read-only lookup with no output schema, it covers purpose, inputs, defaults and failure modes thoroughly. The remaining gap is return shape: it says 'observation series' but never indicates that results are date/value pairs or how they are ordered, which matters for a timeseries consumer.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description exceeds it by explaining the default behavior when both dates are omitted (~25 points, not full history) and reinforcing that the two date params are used together. That default is the parameter fact an agent is most likely to get wrong and it is not in 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?

The description opens with a specific verb-and-resource statement: a historical observation series for a single SARB indicator, keyed by TimeseriesCode. It distinguishes itself from siblings by pointing to the code sources (home_rates, current_market_rates, cpd_rates, exchange_rates) and by noting that MMRD002A can be had via sarb_policy_rate directly.

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?

It states where to get valid codes, names an explicit alternative for the most common series (sarb_policy_rate), and gives the condition for using this generic tool instead. It also specifies the omit-both-dates default, which is the main behavioral decision an agent must make.

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.