Skip to main content
Glama

ai_asset

List and upload project assets to the assets/ folder, ensuring files exist before components reference them.

Instructions

Project assets in assets/: list/upload. Upload before referencing an asset in a component.

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": "ai_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoAbsolute path of a local file (upload)
nameNoAsset file name including extension (upload)
pathNoTarget path inside the project (upload)
actionNoWhat to do
base64NoBase64 bytes instead of file (upload)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. It never states whether an upload overwrites an existing file at the same path, whether intermediate directories in `path` are created, what a list returns (flat vs nested, metadata), or whether the operation is reversible.

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 compact sentences, front-loaded with the resource and modes before the ordering rule. No padding, though the fragmentary "list/upload" phrasing is terser than it needs to be for clarity.

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?

For a 5-parameter, no-annotation, no-output-schema tool, the short description plus complete schema coverage is nearly sufficient. The remaining gap is mutation behavior and return shape, which the missing annotations would otherwise have covered.

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 all five parameters are already documented in structured form; the description only implies that file/name/path/base64 belong to the upload mode. Baseline 3 applies since the description adds little meaning beyond the schema.

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?

"Project assets in assets/: list/upload" names the resource (project assets) and the two modes of operation, with the action enum reinforcing the split. It is specific enough to separate it from siblings like ai_download or ai_build, though it does not name any sibling explicitly.

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?

"Upload before referencing an asset in a component" gives one concrete ordering prerequisite, which is genuinely useful. However, there is no guidance on when to choose list vs upload, no exclusions, and no mention of alternatives for retrieving an existing asset (e.g. a download tool).

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