Skip to main content
Glama

Create Artifact from Template

artifact-create_from_template

Create a NEW artifact from one of Anima's templates. Returns a ready artifact; never edits an existing one.

Call with a templateId from artifact-list_templates (react, html, presentation or second-brain), an optional name (defaults to "Untitled project") and workspaceId. The template supplies the files, the artifact type and the framework: no files, ZIP upload, framework or artifactType are accepted. Then make it the user's: read it with artifact-explore and change it with artifact-edit, starting from the returned revision.

This is the DEFAULT way to start a new React app, HTML site or presentation that you will build yourself: use it whenever the user asks for one and has no code or file of their own, even if they never mention templates — they usually do not know templates exist. Use artifact-create instead to import existing code, to write a project from scratch when the user explicitly asks for that, to create a markdown document or asset, or to have Anima generate an app from a prompt, a website or Figma.

Returns the sessionId, initial revision, artifactUrl, name, artifactType, framework, fileCount, skippedFiles, and applicable preview URLs and Git access. Share artifactUrl with the human. Only use artifact-publish when the user explicitly asks for a public deployment.

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": {
      "templateId": "<templateId>"
    },
    "name": "artifact-create_from_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional display name; defaults to "Untitled project".
templateIdYesThe template to start from: an id returned by artifact-list_templates.
workspaceIdNoWhere to create it — an id from workspace-list_workspaces. Omit it to create in General, or in the only workspace you can create in; name one only when the user asked for a specific workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspaceId / description
      Previous value: -"Where to create it — an id from workspace-list_workspaces. Optional when you can create in only one workspace; otherwise required, since there is no default workspace."New value: +"Where to create it — an id from workspace-list_workspaces. Omit it to create in General, or in the only workspace you can create in; name one only when the user asked for a specific workspace."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent, open-world mutation, and the description adds materially: what inputs are rejected (no files, ZIP, framework or artifactType), that a fresh revision is returned rather than an existing artifact being modified, and the exact return fields including skippedFiles, preview URLs and Git access. The workflow note that editing must start from the returned revision is behavioral context unavailable in annotations.

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?

Front-loaded with the core action and the negative constraint, then organized into invocation, workflow, and routing-to-alternatives. It is on the long side and the return-field enumeration partially duplicates the intent of the next two sentences, but nearly every clause carries actionable routing or behavioral information.

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?

With no output schema, the description compensates by naming the returned fields and telling the agent to share artifactUrl with the human. Combined with the usage routing and the explicit list of disallowed inputs, an agent has everything needed to select and call this tool 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 description coverage is 100%, so the schema already explains templateId, name (including the "Untitled project" default) and the workspaceId omission semantics; the description largely restates these. It does add a little by enumerating the valid template ids (react, html, presentation, second-brain) and pointing at artifact-list_templates as the id source, but that is marginal over a fully documented 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?

States a specific verb and resource ("Create a NEW artifact from one of Anima's templates") and immediately draws the boundary against the nearest sibling: "never edits an existing one." An agent can distinguish this from artifact-create and artifact-edit without opening any 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?

Gives explicit when-to-use guidance ("DEFAULT way to start a new React app, HTML site or presentation... even if they never mention templates") and explicit when-not-to guidance naming artifact-create for imports, from-scratch projects, markdown/assets, and prompt/Figma generation. It also routes the agent to artifact-list_templates for the id, artifact-explore/artifact-edit for follow-up work, and artifact-publish only on explicit request.

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.