Skip to main content
Glama
1C Syntax Check MCP
by phsin

Проверить расширение 1С

check_extension
Idempotent

Validates 1C extension syntax and configuration issues by loading .cfe, XML, or infobase sources into a temporary base and returning diagnostics with module, line, and column.

Instructions

Загружает расширение (.cfe, XML или расширение из ИБ) во временную базу и выполняет /CheckModules или /CheckConfig. Возвращает диагностики с модулем, строкой и колонкой.

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": {
      "source": "<source>"
    },
    "name": "check_extension"
  }
}

Input Schema

NameRequiredDescriptionDefault
modesNoРежимы проверки; по умолчанию ThinClient и Server
sourceYes
waitSecNoСколько секунд ждать результата до возврата runId; по умолчанию 30
extendedNoДобавить -ExtendedModulesCheck
fullCheckNoВыполнить /CheckConfig вместо /CheckModules
timeoutSecNoТаймаут проверки в секундах
configChecksNoФлаги /CheckConfig; по умолчанию ConfigLogIntegrity и IncorrectReferences
keepWorkspaceNoНе удалять временную информационную базу

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds useful context — a temporary infobase is created and diagnostics are returned with module/line/column — but it omits the significant asynchronous behavior: that the call can return a runId after waitSec and require get_run/cancel_run, which is only visible in the parameter schema.

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?

Two tight sentences with zero filler: the operation is front-loaded, and the return-value sentence earns its place because there is no output schema. Nothing is repeated from the schema or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter tool with a nested source object, no output schema and siblings get_run/cancel_run, the definition covers the process and the return payload reasonably. It leaves out the async runId workflow, temp-base cleanup behavior (keepWorkspace), and any permission or cost considerations, so an agent still needs the schema to invoke it correctly.

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 88%, so the schema already documents all eight parameters in detail, including source.kind, fullCheck, modes and waitSec. The description only echoes the .cfe/XML/infobase source kinds and the /CheckModules vs /CheckConfig switch, adding no format or precedence details beyond the schema; 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 names a concrete verb and resource — loads an extension (.cfe, XML, or one taken from an infobase) into a temporary base and runs /CheckModules or /CheckConfig — and states the return shape (diagnostics with module, line, column). It is clearly distinguishable from check_configuration by the 'extension' scope, though it never names the closest sibling check_all_extensions or explains the difference.

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?

Usage is implied by the description (you use it to lint an extension rather than a whole configuration), and the source-kind enumeration hints at the supported entry points. There is no explicit when-to-use/when-not-to-use guidance, no mention of when to prefer check_all_extensions or check_configuration, and no prerequisites such as needing a base .cf for a temporary base.

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