Skip to main content
Glama
NBP MCP Server

NBP MCP Server

by mpryc

get_gold_price

Retrieve the gold price in PLN per gram for today or a chosen date to check current and historical gold values.

Instructions

Get gold price in PLN per gram, either current or for a specific date.

Args: date: Specific date in YYYY-MM-DD format (ISO 8601). If empty, gets current price.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
dateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; 'Get' plus an optional date makes the read-only, fetch-only nature clear. It does not disclose what happens for dates with no quote (weekends, holidays), what the data source or freshness is, or how invalid dates fail. An output schema exists, so return-shape detail is reasonably omitted.

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?

Two sentences plus a single Args entry, front-loaded with the operation and unit. There is mild redundancy between 'either current or for a specific date' and 'If empty, gets current price', but nothing is bloated.

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

Completeness3/5

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

For a one-optional-parameter read tool with an output schema and no annotations, the essentials are present. It stops short of the edge-case context that matters for a dated price lookup — no-quote days and invalid-date behavior — leaving the agent to discover those at call time.

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 description coverage is 0% (the property has only a title and an empty default), so the description must compensate — and it does: it specifies the exact format (YYYY-MM-DD, ISO 8601) and that an empty value yields the current price. That resolves the only real ambiguity an agent would hit.

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 gold price) and adds two concrete qualifiers: currency/unit (PLN per gram) and the current-vs-historical mode. It never distinguishes itself from the close siblings get_gold_price_history and get_gold_price_last_n, so an agent cannot fully rule out overlap, but the core operation is unambiguous.

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

Usage Guidelines3/5

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

It gives implicit selection logic: pass a date for a historical value, leave it empty for the current price. There is no explicit when-not guidance and no mention of the sibling history/rolling-window tools, so an agent with a 'price over time' request has no stated route.

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