Skip to main content
Glama
1C OData MCP

1C OData MCP

Удалить строку документа

write.document.remove_document_line
Destructive

Deletes a numbered line from the Goods tabular section of an existing unposted 1C document, with dry-run preview and confirmation, and blocks removal of the last remaining line.

Instructions

Удаляет строку (по номеру LineNumber, начиная с 1) из табличной части «Товары» существующего НЕПРОВЕДЁННОГО документа. Нельзя удалить последнюю строку. dry-run/confirm.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "entitySet": "<entitySet>",
      "ref": "<ref>",
      "lineNumber": "<lineNumber>"
    },
    "name": "write.document.remove_document_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesRef_Key документа (GUID)
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
entitySetYesИмя документа, напр. Document_РеализацияТоваровУслуг
lineNumberYesНомер строки (с 1)
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.

Output Schema

NameRequiredDescriptionDefault
refNo
noteNo
notesNo
dryRunNo
fieldsNo
updatedNo
databaseNo
replayedNo
verifiedNo
entitySetNo
willPatchNo
descriptionNo
operationIdNo
readbackNoteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare this as a destructive write operation, and the description adds important context beyond them: it specifies the affected tabular section, the unposted-only constraint, the last-line protection, and the dry-run/confirm requirement. It does not describe side effects such as recalculating document totals, but the core behavioral constraints are disclosed.

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 short and front-loaded, moving directly from the operation to the key constraint and confirmation pattern. Every sentence carries relevant information with no filler.

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 destructive line-removal tool with rich schema coverage and an output schema, the description covers the critical constraints: unposted document, last-line prohibition, and dry-run/confirm. It is adequate, though it could mention any broader effects on document totals or dependent calculations.

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 schema already documents all six parameters including confirm and operationId in detail. The description only restates the 1-based line number and mentions dry-run/confirm, adding little meaning beyond the structured 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 states a specific verb and resource: it deletes a line by number from the 'Товары' tabular section of an existing unposted document. This clearly distinguishes it from sibling line operations such as adding or updating document lines.

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?

It provides clear preconditions and an exclusion: the document must be unposted and the last line cannot be deleted. It also signals the dry-run/confirm pattern, though it does not explicitly name alternative sibling tools for other line operations.

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