Skip to main content
Glama
NBP MCP Server

NBP MCP Server

by mpryc

get_gold_price_last_n

Retrieve up to the last 255 gold prices in PLN per gram from the Polish National Bank (NBP) API by choosing how many records to return.

Instructions

Get last N gold prices.

Args: count: Number of last gold prices to retrieve (max 255)

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": {
      "count": "<count>"
    },
    "name": "get_gold_price_last_n"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose a real operational constraint (count is capped at 255) and implies recency ordering via 'last N', but it omits whether results are ascending or descending, whether the call is read-only/authenticated, and how errors on out-of-range counts behave.

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 purpose is front-loaded in the first sentence and the Args block is compact with no filler. Formatting is slightly awkward but every line carries information.

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 single-parameter tool with an output schema already defining return values, the definition covers purpose, scope, and the key bound. The only meaningful gap is disambiguation from sibling endpoints and result ordering, which is minor at this complexity.

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 0% (the only param is titled 'Count' with type integer), so the description must compensate, and it does partially by defining the parameter as the number of most-recent prices and stating a maximum of 255. It leaves the minimum, default, and ordering semantics of the returned series unspecified.

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?

The description states a specific verb and resource ('Get last N gold prices') with an explicit scope (last N), so it is distinguishable from a single-price or history endpoint. It does not name the sibling tools (get_gold_price, get_gold_price_history) that an agent would most likely confuse it with, so differentiation is inferential rather than explicit.

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

Usage Guidelines2/5

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

There is no guidance on when to use this instead of get_gold_price or get_gold_price_history, and no prerequisites or context are stated. The agent must derive the choice solely from the 'last N' phrasing.

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