Skip to main content
Glama

import_asset

Adds a selected local PNG or JPEG to the workspace and returns a content-addressed asset ID for reuse in design and asset workflows.

Instructions

Import one explicitly selected local PNG/JPEG into the workspace. Returns a content-addressed asset ID.

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_path": "<source_path>"
    },
    "name": "import_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_pathYes

Output Schema

NameRequiredDescriptionDefault
dataYes
statusNook

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.6

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered and the description's burden is lighter. The description adds real value beyond that by restricting inputs to local PNG/JPEG and stating the return is a content-addressed asset ID, which hints at deduplication. It says nothing about what happens with an already-imported identical file, path format, or size limits.

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 short sentences, front-loaded with the action and scope, and the return value stated last. No filler or restated title content.

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

Completeness4/5

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

An output schema exists, so the return value need not be elaborated, and the tool takes only one parameter, keeping complexity low. The description covers input type, selection scope, and output kind adequately for that complexity. Only edge-case behavior on duplicate content is left unstated.

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 0%: the single property is documented only as 'Source Path' with no description or format. The description partially compensates by constraining it to an explicitly selected local PNG/JPEG, which gives real meaning to the parameter. It still omits whether an absolute path is required, allowed extensions casing, or an example value.

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: import a local PNG/JPEG into the workspace, plus what it yields (a content-addressed asset ID). That is far more concrete than the bare name 'import_asset'. It does not name a sibling or draw a boundary against any alternative, but no sibling in the supplied list appears to duplicate this import role.

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?

The phrase 'one explicitly selected' implies usage context: a single, user-consented file rather than bulk or automatic discovery. That is only implied, however — there is no explicit when-to-use, when-not-to-use, or prerequisite statement, and no alternative tool is referenced.

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