Skip to main content
Glama

Goma – MCP for Danish grocery prices, meal plans, and recipes

Mit forbrug

get_spending_insights
Read-onlyIdempotent

Use this when the user asks how much they have spent on groceries, e.g. this month, per chain or per category. Returns the spending on the receipts Goma has synced from the user's connected store accounts, as in the Goma app's Indsigter: total, per month, per chain and per department, plus the discounts documented on the receipts. Amounts are in DKK and cover whole calendar months, at most 12.

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_spending_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoAny day in the last month (YYYY-MM-DD). Defaults to today.
fromNoAny day in the first month (YYYY-MM-DD). Defaults to 12 months back.

Output Schema

NameRequiredDescriptionDefault
chainsYesSpending per chain, largest first.
monthsYesEvery month of the period, oldest first; months without receipts are 0.
toMonthYesLast calendar month covered (YYYY-MM); the current month runs to today.
fromMonthYesFirst calendar month covered (YYYY-MM).
itemCountYesSum of quantities on product lines.
categoriesYesSpending per department (e.g. Mejeri), largest first.
totalSpentYesDKK paid on the period's receipts.
hasReceiptsYesThe user has receipts in Goma.
receiptsInfoYesSet when the user has no receipts: how receipts reach Goma (store accounts connected in the Goma app).
totalSavingsYesDKK of discounts documented on the receipts (Sparet in the app).

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, and the description still adds real substance: the data comes only from receipts synced from connected store accounts, amounts are in DKK, coverage is whole calendar months capped at 12, and receipt discounts are included. It does not address empty-state behavior when no store accounts are connected.

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 use-case trigger is front-loaded in the first clause and the second sentence packs provenance, unit, granularity and the 12-month cap without redundancy. No filler or restatement of the tool name.

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 two-optional-parameter read tool with an output schema, the description covers trigger, data source, currency, temporal granularity and limits — essentially everything needed to call it correctly. Only the no-data/no-connected-account case is left unaddressed.

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%, but the description still adds meaning the schema lacks: the range is expressed in whole calendar months and limited to at most 12, which constrains how 'from'/'to' are interpreted. It also implies there is no grouping parameter — all breakdowns (total/month/chain/department) come back together — which resolves an ambiguity the schema leaves open.

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 concrete trigger ('when the user asks how much they have spent on groceries'), the resource (spending aggregates), and the exact breakdown returned: total, per month, per chain, per department, plus documented discounts. The aggregation framing implicitly separates it from receipt-listing siblings such as get_receipts without needing to name them.

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

Usage Guidelines4/5

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

The opening clause gives a clear when-to-use condition with examples ('this month, per chain or per category'). It does not state when NOT to use it or point at an alternative for raw receipt lists, so it stops short of full routing guidance.

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