Skip to main content
Glama

Список договоров

list_contracts
Read-onlyIdempotent

Retrieve paginated contracts from your Avito Ads account, filterable by IDs, numbers, clients, or contractors. Includes legal details and weekly API balance.

Instructions

Возвращает одну страницу договоров, зарегистрированных под аккаунтом: {total, items, page, limit, hasNextPage} плюс apiPointBalance (остаток недельных баллов API). В каждом элементе id, type, number, date, subject, object (действие по договору), cid, description (тип контрагента), parentId (заполнен у дополнительных соглашений) и юридические реквизиты клиента и исполнителя. Сузить выдачу можно через filter.ids / filter.numbers / filter.clients (id рекламодателей) / filter.contractors. limit — 1..100 (по умолчанию 20); нумерация page с 1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoНомер страницы, нумерация с 1. По умолчанию 1.
limitNoРазмер страницы, 1..100. По умолчанию 20.
filterNoФильтр страницы. Без него возвращаются все договоры.
Behavior4/5

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

Annotations already declare readOnlyHint: true and idempotentHint: true, and the description aligns with these—no writes or deletes are implied, consistent with destructiveHint: false. The description adds value beyond the annotations by clarifying the semantic meaning of API points ('остаток недельных баллов API'—week reset) and explaining what some response fields mean (e.g., 'description (тип контрагента)', 'parentId (заполнен у дополнительных соглашений)').

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 a single, information-dense paragraph that front-lodes the tool's purpose and response shape before covering parameters. While efficient, the long sentence is slightly run-on, and the semi-colon usage could be clearer, costing a point.

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?

Given the tool's simple nature (a filtered list with pagination) and the rich schema, annotations, and clear description of the response structure, the description is complete. It explicitly does not detail network error handling or rate-limit behavior, but since no output schema is provided, the description's explanation of the response shape (total, items, page, limit, hasNextPage) is adequate for an agent to understand the return value.

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 100%, documenting all three parameters (page, limit, filter) with defaults and ranges, so the baseline is 3. The description provides marginal extra context by specifying the default page size of 20 and the fact that 'filter' without parameters returns all contracts ('Без него возвращаются все договоры'), which complements rather than repeats the schema.

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 clearly states the tool returns a paginated list of contracts under the account, using the specific verb 'Возвращает' (returns) combined with the resource. It distinguishes itself from a potential sibling confusion by detailing its response, including a notable field 'apiPointBalance (остаток недельных баллов API)'. While it doesn't name sibling tools like list_groups or list_campaigns as alternatives, the list semantics are explicit and specific enough to be distinct.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The description provides clear context on how to use the tool including the pagination range (limit 1..100, default 20, page starting from 1) and filter options ('Сузить выдачу можно через filter.ids / filter.numbers / filter.clients...'). While it doesn't explicitly state 'use this instead of X', the context of listing contracts vs. other list tools is implicit in the resource type, and the detailed filtering and pagination guidance is sufficient for an agent to know when 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/A1-x-Tech/mcp-avito-ads'

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