Skip to main content
Glama
1c-odata-mcp

1c-odata-mcp

by foxnaim

Создать договор

write.catalog.create_contract

Creates a counterparty contract in 1C with required contract type, organization, number/date, currency, and price type. Uses dry-run preview by default and writes only after confirmation.

Instructions

Заводит договор контрагента (подчинённый справочник): владелец — контрагент, организация, ВИД договора, номер/дата, валюта/тип цен и (опц.) руководитель/подписант. ВАЖНО: вид договора (kind) обязателен и его НЕЛЬЗЯ выбирать самостоятельно — уточните у пользователя, т.к. один контрагент может быть и покупателем, и поставщиком. Номер по умолчанию «б/н», дата — сегодня. По умолчанию предпросмотр (dry-run); создание — при confirm=true.

Input Schema

NameRequiredDescriptionDefault
dateNoДата договора YYYY-MM-DD (по умолчанию сегодня)
kindYesВид договора — ОБЯЗАТЕЛЬНО спросить у пользователя, не выбирать самому
nameNoНаименование договора (по умолчанию «Договор <номер>»)
numberNoНомер договора (по умолчанию «б/н»)
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
currencyNoВалюта взаиморасчётов — код (напр. 643/840) или название (RUB/USD)
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию.
headNameNoФИО руководителя/подписанта контрагента (реквизит договора)
priceTypeNoТип цен — название или код (из справочника Типы цен номенклатуры)
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
headPositionNoДолжность руководителя контрагента (напр. «Генеральный директор»)
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
counterpartyRefYesRef_Key контрагента (владелец договора)

Output Schema

NameRequiredDescriptionDefault
refNo
codeNo
noteNo
notesNo
dryRunNo
createdNo
payloadNo
databaseNo
replayedNo
entitySetNo
willCreateNo
descriptionNo
operationIdNo
writableBaseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the mutation profile is known from structured data. The description still adds real behavior: preview by default, default number 'б/н' and today's date, and idempotent retry via operationId. However, the operationId/confirm mechanics are also documented in the schema, so the incremental disclosure over structured fields is modest.

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?

It is a single dense paragraph with the critical constraint ('kind' must be asked) and the dry-run default front-loaded, so nothing important is buried. Every sentence carries information, though the block could be split for easier scanning of the confirmation workflow.

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 13-parameter mutation tool with a full schema, annotations and an output schema, the description covers the risky parts: mandatory user-confirmed kind, preview-first workflow, defaults and idempotent retry. The remaining parameter detail (currency, priceType, database resolution) is left to the schema, which is acceptable given 100% coverage.

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%, so the baseline is 3 and the description would need to add meaning beyond the schema to score higher. It restates the kind constraint, the confirm/dry-run semantics and the defaults for number and date, all of which are already in the schema; the only added framing is grouping the optional head/signatory fields. Baseline 3 applies.

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 opens with a specific verb and resource ('Заводит договор контрагента') and immediately scopes it as a subordinate catalog whose owner is the counterparty. That is precise enough for an agent to know this creates a contract, not a counterparty. It does not explicitly name or contrast a sibling tool, which keeps it short of a 5.

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?

It states the key precondition explicitly: 'вид договора (kind) обязателен и его НЕЛЬЗЯ выбирать самостоятельно — уточните у пользователя', with the reason given (one counterparty can be both buyer and supplier). It also spells out the default dry-run path and the confirm=true path, including showing the preview first and obtaining consent. This is exactly the when/when-not guidance the dimension rewards.

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