Skip to main content
Glama
Starling Safe MCP

Starling Safe MCP

by logicethos

get_spending_insights

Read-onlyIdempotent

Read Starling spending insights for a chosen calendar year by category, counterparty, or country. Use this to review where money went when no insight data is returned, fall back to summarise_spending.

Instructions

Read Starling's spending-insights endpoint for one calendar year, by category, counterparty, or country. Read-only. If Starling returns nothing, use summarise_spending.

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": {
      "by": "<by>",
      "year": "<year>"
    },
    "name": "get_spending_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYes
yearYesCalendar year, for example 2026.
accountUidNoAccount UID from list_accounts. Omit when the token can see only one account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so 'Read-only' is restatement. The genuinely additive content is the empty-result behavior ('If Starling returns nothing, use summarise_spending'), which tells the agent a successful call may yield no data. Nothing is said about pagination, rate limits, or the shape of an insight.

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?

Two short sentences with the operation, the grouping options, the safety note, and the fallback route front-loaded in that order. No filler and nothing buried.

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 low-complexity, flat-parameter read tool with rich annotations and an enumerated parameter, the definition covers what the agent needs to call it and what to do on an empty response. The one gap is that with no output schema, the description never indicates what an 'insight' record contains.

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 67%: accountUid and year already carry descriptions, and the by enum already enumerates category/counterparty/country. The description largely restates those values ('by category, counterparty, or country') and the year scope ('one calendar year') without adding format or semantics beyond the schema, so baseline 3 applies.

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?

States a specific verb (read) and resource (Starling's spending-insights endpoint) plus the grouping dimensions, so the agent knows exactly what it retrieves. It names the sibling summarise_spending, giving partial differentiation, though it frames it only as a fallback rather than contrasting the two tools' purposes.

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?

Provides one explicit routing condition: if the endpoint returns nothing, call summarise_spending instead. That is actionable and non-obvious. It stops short of saying when to prefer this tool over summarise_spending for a non-empty result, so it is clear context without full exclusions.

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