Skip to main content
Glama
ninetails-io

gnucash-mcp

list_commodities

List commodities from your GnuCash book, filter by stale prices to identify those needing fresh quotes, and get details for price updates.

Instructions

List all commodities (currencies, stocks, etc.) in the book.

Leads with a Showing X-Y of Z commodities line, then a compact one-line-per-commodity format by default. Page with offset; limit=0 returns the count only. Use verbose=true for full JSON with fraction, latest prices, etc.

THE PRICE-UPDATE WORK LIST: stale_days=30, held_only=true returns exactly the commodities needing fresh quotes, each marked Nd stale or no price on file. Look the quotes up, then record them all in one create_prices call.

Args: verbose: If true, return full JSON details for each commodity. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0). stale_days: Only commodities whose latest market price is at least this many days old, including never-priced ones, excluding the book default currency. Omit for the unfiltered list. held_only: Only commodities some real account is denominated in. Filters AND-combine.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
verboseNo
held_onlyNo
stale_daysNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses significant behavioral details: that limit=0 returns count only, that stale_days excludes the book default currency, that held_only filters to commodities real accounts are denominated in, and that filters AND-combine. An output schema exists to document return structure, and behavioral traits like pagination and filtering semantics are well covered.

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?

The description is well-structured with a clear lead sentence, a pragmatic workflow hint (THE PRICE-UPDATE WORK LIST), and a clean Args block. Every sentence earns its place, explaining real usage patterns rather than padding. It's longer than minimal but all content is operationally valuable.

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?

For a listing tool with 5 parameters, 0% schema description coverage, and an output schema present, the description is remarkably complete. It explains output format, pagination, filtering semantics, and even ties into the broader workflow (create_prices) for the stale-quotes use case. The output schema covers return values, so the description needn't duplicate that.

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

Parameters5/5

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

Schema description coverage is 0%, so the description fully compensates. Every parameter is explained beyond its schema definition: verbose (full JSON details, default false), limit (default 50, max 250, 0=count only), offset (0-indexed, default 0), stale_days (at least N days old, includes never-priced, excludes default currency), and held_only (only denominations in real accounts, AND-combines with stale_days).

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 clearly states the tool lists all commodities (currencies, stocks, etc.) with specific verb+resource+scope. It distinguishes itself from siblings like list_accounts and list_lots by naming the resource explicitly, and it provides detail on output format (count line, one-line-per-commodity default, verbose JSON option).

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?

The description gives explicit guidance on when to use the stale_days+held_only combination as a price-update work list, naming the follow-up tool create_prices. It clearly explains filter semantics (AND-combining, excludes book default currency, includes never-priced) and pagination conventions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ninetails-io/gnucash-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server