expense-tracker-mcp
expense-tracker-mcp
개인 지출을 추적하기 위한 원격 MCP 서버로, Postgres를 기반으로 하며 두 가지 서로 다른 클라이언트가 사용하도록 설계되었습니다: 커넥터로서의 Claude, 그리고 커스텀 LangGraph 에이전트.
"오늘 식료품에 450을 썼어"라고 말해 지출을 기록한 다음, "이번 달 음식에 얼마를 썼지?"라고 물어보세요. 그러면 어느 클라이언트에서든 같은 답을 얻을 수 있습니다. 상태가 채팅 세션이 아닌 데이터베이스에 있기 때문입니다.
Claude (connector) ─┐
├─► expense-tracker-mcp ─► Neon Postgres
LangGraph agent ────┘ (FastMCP)상태
단계 | ||
1 | 서버 기반 — 타입이 지정된 도구, Postgres, 카테고리 검증 | 로컬에서 작동 |
2 | LangGraph 클라이언트 — 터미널, | 시작 전 |
3 | 작동 중인 에이전트 위의 Streamlit 프론트엔드 | 시작 전 |
4 | OAuth 2.1, 인증된 사용자로 범위가 제한된 쿼리 | 시작 전 |
1단계는 실제 Neon 데이터베이스에 대해 종단 간 검증되었습니다. 배포가 다음 단계입니다.
Related MCP server: expense-tracker-mcp-server
도구
도구 | 목적 |
| 유효한 분류 체계 — 모델이 추측하는 대신 조회할 수 있습니다. |
| 지출 하나를 기록합니다. 쓰기 전에 카테고리를 검증합니다. |
| 개별 행을 최신순으로 반환합니다. 선택적 날짜 범위 및 카테고리 필터. |
| 날짜 범위에 대한 합계를 카테고리별로 그룹화 — 하나의 카테고리로 필터링하면 하위 카테고리별로 그룹화. |
분류 체계는 리소스인 expenses://categories로도 게시됩니다. 그 중복은 의도적이며, Claude로 테스트하면서 알게 된 것입니다: 리소스는 읽기 전용 참조 데이터에 대한 올바른 MCP 프리미티브이지만, 클라이언트는 사용자가 첨부할 때만 리소스를 읽습니다. 모델에는 리소스가 아니라 도구가 주어집니다. "사용할 수 있는 카테고리는 무엇인가요?"라고 묻자, Claude는 분류 체계를 사용할 수 없다고 보고하고, 거부 오류에서 유효한 값을 읽을 수 있도록 쓰레기 행을 작성하겠다고 제안했습니다. 도구는 모델이 실제로 도달할 수 있는 것이며, 리소스는 리소스를 직접 탐색하는 클라이언트를 위해 남아 있습니다.
카테고리는 categories.json에 정의된 고정된 2단계 분류 체계입니다 — 20개의 카테고리로 구성되며, 각각 하위 카테고리를 가집니다. 이 범위를 벗어나는 모든 것은 유효한 값이 오류에 포함된 채로 거부되므로, 모델은 한 번의 왕복으로 스스로를 수정할 수 있습니다.
로컬에서 실행하기
사전 요구 사항: Python 3.10 이상, uv, Neon 계정(무료 티어로 충분합니다).
git clone https://github.com/<your-username>/expense-tracker-mcp
cd expense-tracker-mcp
uv sync데이터베이스를 구성합니다. 예제 파일을 복사하고 Neon 연결 문자열을 입력하세요:
cp .env.example .env # PowerShell: Copy-Item .env.example .env그 문자열에서 중요한 두 가지가 있습니다:
풀링된 연결을 사용하세요 — 호스트에
-pooler가 포함되어 있습니다.?sslmode=require&channel_binding=require쿼리 문자열을 제거하세요. asyncpg는 libpq의 쿼리 매개변수를 허용하지 않으며invalid dsn: invalid connection option "sslmode"오류를 발생시킵니다. 대신 TLS는 코드에서 명시적으로 요청됩니다. (서버도 방어적으로 이를 제거하므로, 원본 문자열을 그대로 붙여넣어도 작동합니다.)
테이블을 생성합니다. schema.sql을 Neon SQL Editor 또는 모든 Postgres 클라이언트에서 한 번 실행하세요. 모든 문은 멱등적입니다.
서버를 시작합니다:
uv run python main.py # http://127.0.0.1:8000/mcp또는 MCP Inspector로 대화형으로 탐색해 보세요 (Node 필요):
uv run fastmcp dev inspector main.py브라우저에서 /mcp에 대한 GET 요청은 406 Not Acceptable을 반환합니다. 이는 실패가 아니라 정상입니다 — MCP는 Accept: application/json, text/event-stream 헤더를 포함한 POST를 요구합니다.
배포
Prefect Horizon(이전 명칭: FastMCP Cloud)용으로 제작되었습니다. 엔트리포인트 main.py:mcp로 이 저장소를 가리키고 환경 변수에 DATABASE_URL을 설정하세요. 배포된 서버는 *.fastmcp.app URL을 받으며, 이를 Claude에 커넥터로 직접 추가할 수 있습니다.
의도적으로 .python-version 파일이 없습니다. Horizon은 virtualenv가 아닌 시스템 Python 접두사인 UV_PROJECT_ENVIRONMENT=/usr/local로 빌드합니다. 버전 고정이 있으면 uv가 이를 거부하고, 관리형 CPython을 다운로드한 다음, venv가 아닌 디렉터리를 재생성하려다 실패하게 됩니다. pyproject.toml의 requires-python = ">=3.10" 하한이면 충분합니다.
설계 결정
금액은 NUMERIC(12,2)이며 절대 float가 아닙니다. 이진 부동 소수점은 0.1을 정확히 표현할 수 없으므로, float 금액을 합산하면 오류가 누적되어 합계가 센트 단위로 어긋납니다. 금액은 Python에서 Decimal, Postgres에서 NUMERIC이며, 문자열로 전송됩니다 — JSON 숫자는 IEEE-754 배정밀도이므로, float로 직렬화하면 마지막 단계에서 어긋남이 다시 발생합니다. 450.55 + 120.45는 정확히 571.00을 반환합니다.
연결 풀은 지연 생성되며, import 시점에는 절대 생성되지 않습니다. import 시점에 연결하면 일시적인 데이터베이스 문제가 배포 실패로 바뀝니다. 지연 풀은 호출자가 재시도할 수 있는 도구 호출 실패 한 번으로 바꿉니다. 스키마 생성 역시 서버가 부팅 시 수행하는 것이 아니라 별도의 일회성 스크립트입니다.
모든 매개변수에 주석이 달려 있습니다. FastMCP는 타입 힌트에서 모델이 보는 JSON 스키마를 생성하므로, date: date는 {"type": "string", "format": "date"}로 모델에 전달되고 amount는 exclusiveMinimum: 0을 갖습니다. 타입이 없는 매개변수는 도구 호출 정확도를 눈에 띄게 저하시킵니다 — 또한 잘못된 입력은 도구 본문이 전혀 실행되기 전에 스키마 검증에서 거부됩니다.
모든 도구는 성공과 실패 모두에서 dict를 반환하며, ok 키를 포함합니다. 성공 시 리스트를, 오류 시 dict를 반환하는 도구는 모든 호출자가 결과를 사용하기 전에 타입 검사를 하도록 강제합니다.
user_id는 처음부터 존재하며, 기본값이 있고 현재는 사용되지 않습니다. 4단계에서는 모든 쿼리를 이 값으로 범위를 제한합니다. 나중에 데이터가 채워진 테이블에 NOT NULL 열을 추가하는 것은 마이그레이션입니다 — 지금 추가하는 것은 비용이 들지 않습니다. 의도적으로 도구 매개변수가 아닙니다: 모델이 user_id를 선택할 수 있다면, 어떤 클라이언트든 그냥 묻기만 해도 다른 사람의 지출을 읽을 수 있기 때문입니다.
로깅은 stderr로 출력됩니다. stdio 전송에서 stdout이 JSON-RPC 채널입니다, 잘못된 print() 하나가 프로토콜 스트림을 손상시킵니다.
아직 구현되지 않음
간과가 아니라 솔직한 한계입니다:
편집 또는 삭제 도구가 없습니다. 잘못 기록된 지출을 수정하려면 데이터베이스에 직접 접근해야 합니다. 실제로 불편함이 입증될 때까지 연기되었습니다.
통화 열이 없습니다. 모든 금액은 단일 통화로 가정됩니다.
인증이 없습니다. 모든 지출은
user_id = 'default'로 기록되므로, 배포된 서버는 4단계까지 단일 테넌트입니다.
구조
main.py the server: three tools, one resource
schema.sql one-time table + index creation
categories.json the category taxonomy, single source of truth
.env.example documents DATABASE_URL사용된 기술
Available Tools
6 toolsadd_expenseA
Record a single expense.
Pass the user's local date -- the server does not infer 'today', because its clock is UTC and would log the wrong day either side of midnight.
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date the money was spent, YYYY-MM-DD. | |
| note | No | Optional free-text note. | |
| amount | Yes | Amount spent. Must be greater than zero. | |
| category | Yes | Top-level category, e.g. 'food'. Must be a known category. | |
| subcategory | No | Optional subcategory, e.g. 'groceries'. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
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 a subtle, high-impact behavior: the server uses UTC and will not infer today, so the client must pass the user's local date. It does not overstate side effects, but 'record' clearly signals creation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences with no filler. The essential behavioral warning about UTC is front-loaded in the second sentence and directly actionable.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple create operation with a full output schema and complete parameter documentation, the description covers the key pitfall an agent would likely miss. It does not mention category validation or sibling alternatives, but the schema states 'Must be a known category' and sibling names are self-explanatory.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description adds real value for the date parameter by explaining why the caller must supply the local date and how the server's UTC clock could cause errors. It does not need to repeat the other parameters since the schema already documents them fully.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with 'Record a single expense,' which is a specific verb, resource, and scope. This makes it immediately distinct from siblings like list_expenses, delete_expense, and summarize.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The wording implies when to use the tool, but it does not explicitly contrast it with alternatives or state when not to use it. The date guidance is operational context, not a when-to-use vs. alternative boundary.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
delete_expenseADestructiveIdempotent
Delete one expense, by id.
Use list_expenses first to find the id, and confirm with the user which
one they mean before deleting -- ids are not guessable from a description
and deleting the wrong row cannot be undone.
| Name | Required | Description | Default |
|---|---|---|---|
| expense_id | Yes | id of the expense to delete, from list_expenses. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already mark the tool as destructive and idempotent. The description adds meaningful behavioral context by warning that deleting the wrong row cannot be undone and that user confirmation is required. This goes beyond the annotation flags and helps the agent weigh the consequences of invoking the tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact and front-loads the core purpose in the first sentence. The second part provides essential usage and safety guidance without redundancy. It is slightly longer than necessary, but every sentence earns its place by adding important operational context.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple single-parameter delete operation, the description covers the key aspects: what to delete, how to get the id, and the need for user confirmation. The presence of destructive and idempotent annotations plus a full output schema means the description does not need to explain return values. Minor gaps, such as related data effects, are not significant for this tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The only parameter, expense_id, has full schema description coverage: it says 'id of the expense to delete, from list_expenses.' The tool description reinforces this by telling the agent to use list_expenses to find the id, but it does not add fundamentally new semantic meaning beyond what the schema already provides. Baseline 3 is appropriate given 100% coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with the precise action 'Delete one expense, by id', specifying exactly what resource is affected and how it is identified. This clearly distinguishes it from siblings like add_expense and list_expenses, and no other delete tool exists in the sibling set, so there is no ambiguity.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly instructs the agent to call list_expenses first to obtain the id and to confirm with the user before deleting. It also explains why this is necessary: ids are not guessable and deletion is irreversible. This gives clear when-to-use and safety guidance beyond just naming the operation.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_categoriesA
List every valid category and its subcategories.
Call this before logging an expense if you are unsure which category a purchase belongs to. Categories are a fixed taxonomy; anything outside it is rejected.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the disclosure burden. It reveals that categories form a fixed taxonomy and that invalid values are rejected, which is the key behavioral contract for an agent deciding whether to use it. It does not explicitly state that the operation is read-only, though the verb 'List' and the workflow context make that clear.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences with no redundancy. The primary action is front-loaded, followed by usage guidance and a validation caveat, making it scannable for an agent.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple, has no parameters, and has an output schema, so the description need not describe return values. It provides the essential workflow context (when to call and validation behavior) and fits the agent's decision-making needs relative to siblings like add_expense and list_expenses.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters, so the input schema is empty and schema description coverage is 100%. The description does not need to explain any parameter semantics, and the baseline for a zero-parameter tool is 4.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with the concrete action 'List every valid category and its subcategories', giving a clear verb and resource. It differentiates the tool from sibling expense-management tools by identifying it as a taxonomy lookup rather than a mutation or expense operation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly instructs the agent to call this tool 'before logging an expense if you are unsure which category a purchase belongs to', connecting it to the add_expense workflow. It also provides a decisive boundary condition: categories are a fixed taxonomy and anything outside is rejected, so the agent knows when this list is authoritative.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_expensesA
List individual expenses, newest first.
All filters are optional; with none set this returns the most recent
expenses. Use summarize instead when you want totals rather than rows.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return. | |
| category | No | Only return expenses in this category. | |
| end_date | No | Latest date to include, inclusive, YYYY-MM-DD. | |
| start_date | No | Earliest date to include, inclusive, YYYY-MM-DD. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full behavioral burden. It discloses ordering ('newest first'), return granularity ('individual expenses' as rows), and default filtering behavior. While it does not explicitly state read-only semantics, 'List' strongly implies a non-mutating operation, and the output schema covers return structure.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences with no wasted words. The core purpose and ordering are front-loaded, followed by filter semantics and the alternative-tool pointer.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple list tool with a rich schema and output schema, the description covers purpose, behavior, defaults, and the main sibling distinction. It does not discuss pagination beyond the `limit` parameter, but that is documented in the schema and not a significant gap here.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents each parameter and its meaning. The description adds useful high-level context about filters being optional and the default result set, but does not need to compensate for any parameter-schema gaps.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource ('List individual expenses') plus a clear ordering ('newest first'), and explicitly differentiates itself from the sibling `summarize` by contrasting rows vs. totals. An agent can tell exactly what this tool does without opening the schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It explicitly says all filters are optional and describes the default behavior when none are set. It also names the alternative tool (`summarize`) and the condition for choosing it ('when you want totals rather than rows'), giving clear when-to-use guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
summarizeA
Total spending over a date range, broken down by category.
Summing happens in Postgres over NUMERIC values, so the total is exact. Prefer this over listing every row and adding them up.
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Restrict to one category. When set, the breakdown is by subcategory instead of by category. | |
| end_date | No | Latest date to include, inclusive, YYYY-MM-DD. | |
| start_date | No | Earliest date to include, inclusive, YYYY-MM-DD. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the burden of behavioral disclosure. It adds a non-obvious guarantee: 'Summing happens in Postgres over NUMERIC values, so the total is exact.' This is genuinely useful context about precision. It does not explicitly say the operation is read-only, but the aggregation wording and lack of mutation signals make that reasonably clear.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is three short sentences, each earning its place: purpose, correctness guarantee, and usage preference. It is front-loaded with the primary function and contains no redundant filler or repeated schema content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple read-only aggregate tool with three optional parameters and a present output schema, the description covers purpose, usage guidance, and an important behavioral guarantee. Any remaining edge cases (e.g., empty results, invalid date ranges) are not essential for an agent to invoke the tool correctly, especially since the output schema and parameter descriptions provide the rest.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already fully documents all three parameters. The description only restates the date-range and category-breakdown concepts, adding no new meaning about date formats, inclusive bounds, or the categorical behavior beyond what the schema provides. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: 'Total spending over a date range, broken down by category.' This clearly conveys the aggregation behavior and differentiates it from sibling tools like list_expenses. The phrase 'Prefer this over listing every row' reinforces that it summarizes rather than enumerates.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The instruction 'Prefer this over listing every row and adding them up' explicitly tells the agent to use this tool for totals rather than manually aggregating list results. It does not name the sibling tool list_expenses directly, nor does it state exclusions (e.g., 'use list_expenses when line items are needed'), so it falls just short of fully explicit alternative routing.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
whoamiA
Report which user the server sees, and whether expenses are scoped.
Worth having permanently rather than as a one-off diagnostic: "why can't I see my expenses?" is answered by this tool in one call, and the answer is almost always that the request arrived unauthenticated and landed in the shared local bucket.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral disclosure burden. It explains that the tool reveals the server-side user, whether expenses are scoped, and that the likely cause of invisibility is an unauthenticated request landing in the shared local bucket. This adds meaningful diagnostic context beyond the tool name.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The first sentence is a crisp summary, and the second sentence earns its place by explaining practical value. The wording is slightly discursive with the quoted diagnostic scenario, but overall it is compact and front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple zero-parameter diagnostic tool with an output schema, the description covers purpose, usage rationale, and a common failure context. It does not explicitly state that the tool is read-only or side-effect-free, but the name and description strongly imply a safe diagnostic operation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters and the input schema is empty, so there are no parameter semantics to clarify. The baseline for a zero-parameter tool is 4, and the description appropriately does not invent parameter guidance.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb and resource: 'Report which user the server sees, and whether expenses are scoped.' This clearly distinguishes whoami from the expense-management siblings by framing it as a diagnostic identity/scoping tool rather than a data operation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives a concrete use case: answering 'why can't I see my expenses?' in one call, and advises keeping it permanently rather than as a one-off diagnostic. It does not explicitly contrast against sibling tools or state when not to use it, but the usage context is clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
6 tool updates
v0.1.0- First observed
add_expense - First observed
delete_expense - First observed
list_categories - First observed
list_expenses - First observed
summarize - First observed
whoami
TDQS
Scored across 6 tools
Each tool maps to a distinct action (auth check, category lookup, add, list, delete, summarize), and the list_expenses vs summarize distinction is explicitly drawn as rows versus totals. whoami is a bit of an outlier but clearly scoped to diagnosing visibility. Only minor overlap exists between listing and summarizing expense data.
Most tools follow a clear lower_snake_case verb_noun pattern (list_categories, add_expense, list_expenses, delete_expense). summarize and whoami break the noun-object pattern but are still readable and not confusingly styled. The pluralization of expenses is slightly inconsistent (list_expenses vs delete_expense) but harmless.
Six tools is a well-scoped size for an expense tracker: one diagnostic, one taxonomy lookup, and core expense operations. Each tool earns its place without redundancy or bloat. This is in the ideal 3–15 tool range.
The core lifecycle is covered: add, list, delete, summarize, plus category validation and auth scoping. The only notable gap is an update/edit operation, but users can delete and re-add an incorrect expense. Overall agents can accomplish expense tracking without dead ends.
Related MCP Connectors
Log, query, and edit expenses, budgets, and accounts in Manilo from any MCP-compatible AI assistant.
Hosted MCP server for AWS cloud spend: service breakdowns, anomalies, savings and forecasts.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
Related MCP Servers
- AlicenseAqualityDmaintenancePersonal expense tracker MCP server that enables tracking expenses, income, budgets, and savings goals through natural language.1021 PyPI1MIT
- FlicenseBqualityDmaintenanceMCP server for tracking personal expenses using FastMCP and SQLite, enabling adding, listing, updating, deleting expenses and summarizing by category via natural language tools.51-
- FlicenseNot gradedqualityDmaintenanceA local MCP server for tracking personal expenses using SQLite, enabling users to add, list, and summarize expenses via natural language.-
- FlicenseNot gradedqualityDmaintenanceMCP server for tracking expenses with local SQLite storage. Provides tools to add, list, and summarize expenses by category.-