Skip to main content
Glama

График трат

operations_histogram
Read-onlyIdempotent

Retrieves bank spending grouped into a histogram by category and period. Use it to review transaction totals over a chosen number of days; internal transfers are excluded from the results.

Instructions

Траты, сгруппированные банком. Возвращает сырой JSON (дерево summary + intervals[].aggregated[]); для готовой разбивки по категориям бери spending_categories() — он это дерево уже разворачивает.

Внутренние переводы (между своими счетами) ИСКЛЮЧЕНЫ: эндпоинт всегда вызывается с config=allNotInner, как в приложении. Полный список операций, включая внутренние, — list_operations().

max_chars — предел размера ответа (0 = без предела). Шапка всегда называет, что урезано и на сколько.

В захвате приложения этот эндпоинт вызывался 27 раз и КАЖДЫЙ раз с period=«day», group_by=«category» — только эта пара проверена. Любое другое значение (в том числе «month») ничем не подтверждено, а на неизвестный enum эндпоинт отвечает 400: пробуй осознанно и проверяй ответ.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
periodNoday
group_byNocategory
max_charsNo
account_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

The description adds several behavioral details beyond annotations: internal transfers are always excluded via config=allNotInner, max_chars caps the response and the header names any truncation, and the endpoint has only been verified with period=day and group_by=category. Annotations already confirm safety; the description enriches the operational picture.

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?

The description is longer than one sentence because there is genuinely complex behavioral context to convey. It is front-loaded: the first sentence states what the tool returns and which sibling to use instead. The later paragraphs are earned detail rather than padding.

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?

It covers the raw output shape, the canonical alternative tool, the internal-transfers exclusion, response truncation semantics, and the risk of unverified parameter values. It remains short of complete because the semantics of days and account_id are never explained, and those parameters will affect what the agent requests.

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?

With 0% schema description coverage, the description only partially compensates: it explains max_chars fully and warns about period/group_by behavior, but does not explain days, period semantics, or what account_id controls beyond its empty default. The defaults hint at meaning, but important params remain under-documented.

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?

The description states a clear verb and resource: returns raw JSON of expenses grouped by the bank. It also actively distinguishes itself from spending_categories and list_operations, so an agent can identify this tool 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.

Usage Guidelines5/5

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

Explicitly instructs when to prefer spending_categories for ready-made category breakdowns and list_operations for a full transaction list including internal transfers. It also flags the only verified parameter combination and warns that other values may cause a 400.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/icyberdeveloper/tbank-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server