composing-1c-queries

Compose and execute 1C:Enterprise QPL queries for data retrieval and analysis.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/manilotw/1c-mcp-toolkit --skill composing-1c-queries-manilotw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: composing-1c-queries
Source: https://github.com/manilotw/1c-mcp-toolkit/tree/main/skills/composing-1c-queries
Command: npx skills add https://github.com/manilotw/1c-mcp-toolkit --skill composing-1c-queries-manilotw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill assists in composing correct and optimized 1C:Enterprise query language queries, enabling efficient data retrieval and analysis from 1C databases.

Core Features & Use Cases

  • Query Composition: Generate accurate and optimized queries for 1C:Enterprise.
  • Metadata Retrieval: Retrieve 1C configuration metadata to ensure accurate object and field names.
  • Use Case: When an AI agent or user requires querying, filtering, aggregating, or analyzing data from a 1C database, this Skill helps to compose the necessary query.

Quick Start

To compose a query for retrieving the latest balances of all products, use the following command: execute_query("SELECT Номенклатура, КоличествоОстаток FROM РегистрНакопления.ОстаткиТоваров WHERE Номенклатура = &Ном") with params={"Ном": {"_objectRef": true, "УникальныйИдентификатор": "Номенклатура", "ТипОбъекта": "Справочник.Номенклатура", "Представление": "Номенклатура"}}.

Frequently Asked Questions about composing-1c-queries

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compose queries for retrieving data from a 1C:Enterprise database?

You compose 1C:Enterprise queries using the query language (QPL) to generate accurate and optimized statements for filtering and analyzing data records. This requires accurate metadata to ensure correct object and field names in your queries.

What is 1C:Enterprise query language used for in database analysis?

1C:Enterprise query language is used for data retrieval and analysis, enabling database administrators and developers to programmatically query, filter, and aggregate data from 1C databases for reporting purposes.

How do I retrieve configuration metadata for accurate 1C database queries?

You retrieve 1C configuration metadata to ensure accurate object and field names when composing query language statements. This ensures your queries correctly target the specific database structures required for data retrieval.

Can I use object references when filtering data in a 1C database query?

Yes, you can use object references with unique identifiers and object types when filtering data in a 1C database query. This allows precise targeting of specific catalog entries like Номенклатура within your query parameters.

Does this approach to 1C data retrieval require specific syntax knowledge?

Yes, composing 1C:Enterprise queries requires an understanding of QPL syntax and accurate metadata. Administrators and developers need this knowledge to interact with 1C databases programmatically and execute optimized data retrieval correctly.

What's the best way to get the latest product balances from a 1C database?

The best way to get product balances from a 1C database is to execute a query selecting the balance field from the accumulation register, passing object reference parameters like Номенклатура to filter the specific inventory records.