Skip to main content
Glama
Actual Budget MCP Server

Actual Budget MCP Server

by jimmyzmli

actual_check_receipt_exists

Checks whether a receipt already exists in PocketBase using source_hash, source_ref, or tx_id, enabling read-only deduplication before adding financial records.

Instructions

[READ-ONLY] Check whether a receipt already exists in PocketBase by source_hash, source_ref, or tx_id (fast O(1) local SQLite check).

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": "actual_check_receipt_exists"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
tx_idNoTransaction ID
source_refNoSource reference
active_onlyNoExclude ignored receipts
source_hashNoSHA-256 hash

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden; it does disclose the read-only nature via the [READ-ONLY] tag and the O(1) local SQLite performance profile, which is genuinely useful. However it does not say what happens when zero or multiple keys are supplied, nor what the check returns (boolean, receipt id, partial record), leaving the critical edge case undocumented.

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?

One front-loaded sentence with the safety tag first, the action second, and the performance note last; there is no filler. A slightly clearer break between the keys and the parenthetical would help readability but nothing is wasted.

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 simple existence-check tool this covers the core purpose, but with zero required parameters, no output schema, and no stated return shape, an agent cannot predict the result or the failure mode of calling it with no keys. A sentence on return value and required-key behavior would make it complete.

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 description coverage is 80%, so the schema already documents tx_id, source_ref, source_hash, and active_only. The description only restates the three key names and adds no semantics about precedence when several keys are given, and it says nothing about the undocumented 'args' parameter.

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 gives a specific verb+resource (check whether a receipt exists) plus the three lookup keys and the storage backend. It implicitly distinguishes itself from heavier siblings like actual_get_receipt by advertising a fast O(1) existence check, though it never names an alternative explicitly.

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?

Usage is only implied: an agent can infer this is a dedupe/existence gate to run before saving a receipt. There is no statement of when to prefer this over actual_get_receipt, no guidance on which of source_hash/source_ref/tx_id to use, and no warning that all five parameters are optional.

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

Deploy Server

Other Tools