Skip to main content
Glama

create_artifact

Создать артефакт и начальный черновик. Не вкладывай объёмный HTML целиком в content одним вызовом — большой content может оборваться по длине ответа, и тогда вызов придёт с неполными аргументами (ошибка валидации). Для крупного документа создай артефакт с коротким content (например, каркас страницы), затем наращивай содержимое порциями через replace_range_in_artifact (вставка в конец) или overwrite_artifact.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoТип артефакта. Сейчас поддерживается html.html
titleNoНазвание артефакта.
contentNoНачальное содержимое черновика.
created_byNoКем создана ревизия.assistant

Output Schema

NameRequiredDescriptionDefault
artifactYesАртефакт
revisionYesРевизия артефакта

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose a genuine, non-obvious failure mode: large content can be truncated by response length, producing incomplete arguments and a validation error. It omits other behavioral facts such as persistence (set_artifact_persistent) and revision/created_by semantics, so it is not fully complete.

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?

Two sentences, front-loaded with the action, then the pitfall, then the remediation path. Tight and purposeful, though the parenthetical about the validation error could be trimmed slightly.

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?

An output schema exists, so return values need not be explained, and the schema fully documents all four parameters. For an annotation-free create tool, the description adds the one thing an agent could not infer: the size/truncation constraint and the correct incremental-write strategy.

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 coverage is 100%, so baseline is 3; the description earns above baseline by adding operational meaning to the content parameter (keep it short, grow incrementally) that the schema's bare 'Начальное содержимое черновика' does not convey. It says nothing extra about title or created_by, which the schema already documents.

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?

States a specific verb and resource ('Создать артефакт и начальный черновик'), which is clear and distinct from read/modify siblings like read_artifact or overwrite_artifact. It does not, however, distinguish artifact creation from create_article, the other creation tool in the sibling set.

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?

Explicitly prescribes the correct workflow: create with a short skeleton content, then grow content via replace_range_in_artifact (append) or overwrite_artifact. It names the alternatives and the condition that selects them, though it never says when not to create an artifact at all (e.g. vs. create_article).

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