Skip to main content
Glama

Add base products

create_base_products

Create Item

When to use: 아직 없는 기초상품(브랜드·상품코드·상품명)을 원가 이력과 함께 새로 등록할 때. 웹 「기초상품」 화면의 추가와 같은 동작이다.

When NOT to use: 이미 있는 기초상품의 원가나 이름을 바꾸는 것은 update_base_products. 원가 조회는 list_base_products 또는 get_cogs. 엑셀로 받은 원가를 한꺼번에 반영하는 것은 웹의 파일 업로드 흐름이라 이 도구로 대신하지 않는다.

Limitations: body 는 등록할 기초상품 항목의 리스트다. 항목마다 item_brand_name·item_id·item_name 과 cogs_history(1개 이상, 각 apply_start_datetime_id·cogs 정수)를 넣는다. cogs_history 가 비면 400. 같은 item_brand_name+item_id 의 원가가 이미 있으면 상품명이 달라도 409 로 요청 전체가 거부된다. cogs_history 의 provider 는 무시되고 모두 MANUAL(수동 입력)로 저장된다. 원가 변경은 cogs+'-' 스코프 데이터관리 이력에 남는다. 다음 배치 주기에 변경 뒤 상태가 복원 지점으로 찍히지만, 쓰기 직전 상태는 따로 찍히지 않는다. 그래서 되돌릴 기준점이 필요하면 쓰기 전에 create_restore_point(entity_type=cogs, entity_id='-')로 먼저 복원 지점을 만든다. 되돌리기 자체는 MCP 도구로 열려 있지 않다(라플라스 웹 데이터 관리 화면의 「버전 히스토리」에서 한다). 라플라스 웹 「기초 상품 관리」의 엑셀 파일 업로드(파일을 올린 뒤 반영하는 흐름으로, MCP 도구로 열려 있지 않다)와 다른, 행을 JSON 으로 직접 쓰는 도구다. 업로드해 둔 대기분을 반영하지 않는다. 요청 하나가 한 트랜잭션이라 항목 하나라도 거부되면 아무것도 저장되지 않는다. 저장 뒤 대시보드의 원가·이익 수치는 데이터 마트 갱신으로 비동기 반영된다. data_management:write 권한 + BASE_PRODUCT 스코프 필요.

Examples:

  • Q: '브랜드A' 수분크림 50ml 를 기초상품으로 추가하고 원가 4,500원으로 등록해줘 params: {'body': [{'item_brand_name': '브랜드A', 'item_id': 'SKU-1', 'item_name': '수분크림 50ml', 'cogs_history': [{'apply_start_datetime_id': '2026-11-01T00:00:00', 'cogs': 4500}]}]}

Related resources: analytics://glossary/cogs

Output shape: list — 요청한 항목을 그대로 돌려준다(저장된 행 수는 이력 detail 에 남는다)

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": {
      "body": "<body>"
    },
    "name": "create_base_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
project-idNo
auth_methodNojwt

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only state readOnlyHint=false and destructiveHint=false; the description adds substantial context beyond that: 400 on empty cogs_history, 409 rejecting the whole request on duplicate brand+item_id, provider silently coerced to MANUAL, all-or-nothing transaction semantics, async dashboard/mart refresh, required data_management:write + BASE_PRODUCT scope, and the note that undo is only available in the web UI (hence the create_restore_point tip). The one gap is that the irreversibility caveat sits somewhat in tension with the non-destructive framing, but it is disclosed rather than contradicted.

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 sectioned layout (When to use / When NOT to use / Limitations / Examples / Related resources) is well front-loaded and the worked example is useful. It is somewhat long and repeats the Excel-upload exclusion in both the 'When NOT to use' and 'Limitations' sections.

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

Completeness5/5

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

For a mutating batch-create tool this is close to complete: input shape, error conditions, permission and scope requirements, transactionality, async side effects, restore-point guidance, and even a return-shape note are all present. The existence of an output schema makes further return-value detail unnecessary.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the burden, and it largely does: it enumerates item_brand_name, item_id, item_name, and the cogs_history list with apply_start_datetime_id plus integer cogs, and explains that provider is ignored. The project-id and auth_method parameters are never mentioned, and no format constraints are given for item_id or the datetime.

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 ('아직 없는 기초상품(브랜드·상품코드·상품명)을 원가 이력과 함께 새로 등록') and explicitly distinguishes the tool from update_base_products and list_base_products/get_cogs. An agent can identify this as the create-new-record tool without opening the schema.

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 has explicit 'When to use' and 'When NOT to use' sections naming the alternative tools for updating (update_base_products) and for reading costs (list_base_products, get_cogs), and it excludes the Excel-upload bulk flow. Nothing about tool selection is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources