Skip to main content
Glama

Sprout: AI Finance & Cash Flow

Recategorize a transaction

set_transaction_category
DestructiveIdempotent

Use this only when the person asks to change the category of a transaction, for example "file this Costco charge under Groceries" or "always put Uber under Transport". Takes a transaction id from search_transactions or find_unusual_transactions and one of Sprout's categories. With applyToCompany, Sprout also makes a rule that files every past and future charge from the same company there. Changes Sprout's view only, never the bank's records; repeating it changes nothing more. Confirm the transaction and category with the person before calling.

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": {
      "transactionId": "<transactionId>",
      "category": "<category>"
    },
    "name": "set_transaction_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryYesThe category to file it under.
transactionIdYesTransaction id from search_transactions or find_unusual_transactions.
applyToCompanyNoAlso file every past and future charge from the same company here.

Output Schema

NameRequiredDescriptionDefault
ruleYes
categoryYes
transactionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond annotations by explaining the real blast radius of applyToCompany: Sprout creates a rule that files 'every past and future charge from the same company,' which is the concrete meaning of destructiveHint=true. It also disambiguates the write target (Sprout's view, not the bank) and restates idempotency in plain language ('repeating it changes nothing more'), plus a human-confirmation requirement.

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?

Front-loaded with the gating condition, then intent examples, then prerequisites, then side effects, then the confirmation step. Five tight sentences with no filler; each one carries a distinct decision-relevant fact.

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?

An output schema exists, so return values need not be described. Everything an agent needs before a destructive, idempotent write — where the id comes from, what applyToCompany cascades to, that bank records are untouched, and that confirmation is required — is present.

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%, so the baseline is 3, but the description adds meaning the schema only gestures at — that applyToCompany creates a persistent rule covering both historical and future charges, and that category must be 'one of Sprout's categories.' transactionId's provenance is restated from the schema rather than extended.

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 specific verb+resource ('change the category of a transaction') and gives two concrete user-intent examples ('file this Costco charge under Groceries', 'always put Uber under Transport'). It also disambiguates from siblings by naming search_transactions and find_unusual_transactions as the source of the id.

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?

Explicit gating language: 'Use this only when the person asks to change the category' and 'Confirm the transaction and category with the person before calling.' It also clarifies scope limits ('Changes Sprout's view only, never the bank's records'), which tells an agent when this tool is not the right lever.

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.