Skip to main content
Glama

Upload Asset

lyzr_upload_asset

Upload files as assets and prepare them for RAG workflows by parsing and chunking content for retrieval.

Instructions

Upload one or more files as assets, optionally parsing/chunking them for RAG. Files are base64-encoded in the request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesFiles to upload
end_pageNoLast page to parse (1-indexed)
vlm_modelNoVLM model
enable_vlmNoEnable vision-language-model parsing
start_pageNoFirst page to parse (1-indexed)
parse_configNoJSON string: {"provider":"standard|advanced","rag_id":"...","label_pages":false,"extract_text":true,"config":{}}
parsing_modeNoParsing mode
vlm_providerNoVLM provider
extract_tablesNoExtract tables from the document
describe_imagesNoGenerate descriptions for images in the document
parser_providerNoParser provider to use
chunking_strategyNoChunking strategy to apply
Behavior3/5

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

Annotations already establish this as a non-read, non-idempotent write operation. The description adds the base64 transport requirement and the RAG parsing side effect, which are useful beyond annotations. However, it does not disclose whether parsing is asynchronous (lyzr_get_asset_parse_status suggests it is), whether upload credentials are required, or what the response contains.

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 sentences, roughly 22 words, with the primary purpose front-loaded and the critical base64-encoding requirement stated in the second sentence. Every word earns its place; there is no repetition of schema details or annotation information.

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

Completeness2/5

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

This is a complex tool (12 params, 11 optional parsing controls) with no output schema, yet the description explains neither the return value (e.g., asset IDs/parse status) nor how to track an async parse. It also offers no guidance on navigating the many parsing options (page ranges, VLM providers, chunking strategies) or follow-up steps like polling lyzr_get_asset_parse_status. The schema's per-parameter descriptions help, but the operational flow is left for the agent to infer.

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?

With 100% schema description coverage, the baseline is 3; the schema already documents all 12 parameters, including the parse_config JSON shape. The description adds marginal value by framing the parse/chunk parameters as optional and RAG-oriented, but terse string params (vlm_model, parsing_mode, parser_provider, chunking_strategy) remain underspecified with no enum choices or examples, and the description does not compensate.

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 uses a specific verb ('Upload') tied to a clear resource ('files as assets') and adds distinctive scope with 'optionally parsing/chunking them for RAG.' This clearly distinguishes it from sibling parse-only tools (lyzr_parse_pdf, lyzr_parse_docx) and KB training tools (lyzr_kb_train_pdf), which handle parsing or training but not asset creation.

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 RAG parsing mention implies when to use it (ingesting files for RAG workflows), but there are no explicit when-to-use/when-not-to-use instructions or named alternatives among the many siblings. An agent gets no direct guidance on choosing between this and lyzr_kb_train_pdf, lyzr_parse_pdf, or lyzr_kb_train_documents for seemingly similar workflows.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nandanNM/lyzr-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server