Skip to main content
Glama

Расходы профиля

items_post_account_spendings
Read-onlyIdempotent

Retrieve account spending statistics by service type (e.g., vas, tariff) for a date range, grouped by day, week, or month. Optionally filter by categories, items, or locations.

Instructions

Статистика расходов профиля (по типам услуг — vas/cpa/tariff и т.п.) за период. grouping — строка "day"|"week"|"month" (НЕ объект). filter — по категориям/объявлениям/локациям. Обязательны: dateFrom, dateTo, spendingTypes, grouping.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateFromYesНачало периода (YYYY-MM-DD).
dateToYesКонец периода (YYYY-MM-DD).
spendingTypesYesТипы расходов: vas, perf_vas, lf, cv, tariff, subscription, cpa, bundle.
groupingYesГруппировка расходов по периоду: "day" | "week" | "month" (строка, обязательно).
filterNoФильтры по категориям / объявлениям / локациям (employeeIDs НЕ поддерживается).
user_idNoПо умолчанию — Profile_id из .env.
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=true. The description adds context by specifying required parameters and the expected format of grouping, but does not contradict or significantly expand beyond what annotations provide.

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?

The description is two sentences long, front-loaded with the primary purpose, and includes essential details without redundancy. Every sentence adds value.

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 stats tool with no output schema, the description covers required parameters and constraints. It lacks information about the return format or pagination, but given the annotations, the agent can infer it is a read operation. Slightly incomplete but adequate.

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 100%, so all parameters are documented. The description reinforces the grouping type and required fields but does not add substantial new semantic meaning beyond the schema.

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 clearly states the tool returns spending statistics by service type (vas, cpa, tariff) over a period. The verb 'статистика' and noun 'расходов' make the purpose explicit, and it distinguishes from sibling tools like items_post_calls_stats.

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?

The description lists required parameters and clarifies that grouping is a string, not an object, and that filter does not support employeeIDs. However, it does not provide explicit guidance on when to use this tool versus alternatives, nor does it mention when not to use it.

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/elchin92/avito-mcp'

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