Skip to main content
Glama

Import a file into your workspace

import_file

Use this when the user wants to bring a file's content into their Xenition workspace — e.g. they attached or pasted a document and want it saved. Pass UTF-8 text in textContent, or other content base64-encoded in base64Content, with contentMimeType. Saves it as an editable document that summarize_artifact, query_document, ask_workspace and edit_artifact can work on. Supports text, Markdown, CSV, JSON, HTML and PDF. To bring in a page from the web instead, use add_to_knowledge with its URL.

Input Schema

NameRequiredDescriptionDefault
titleYesa title for the saved file, e.g. 'Q3 Board Notes'
textContentNothe file's UTF-8 text content. Use this for text, Markdown, CSV, JSON or HTML. Set either this or base64Content, not both.
base64ContentNothe file's content, base64-encoded. Use this for non-UTF-8 files such as a PDF. Set either this or textContent, not both.
contentMimeTypeNothe MIME type of the content, e.g. 'text/markdown', 'text/csv', 'text/html', 'application/pdf'. Recommended so the content is handled correctly.

Output Schema

NameRequiredDescriptionDefault
typeYes
charsYes
titleYes
openUrlNo
artifactIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the safety profile is covered structurally. The description adds genuinely useful behavior beyond that: the artifact becomes an editable document that summarize_artifact, query_document, ask_workspace and edit_artifact can operate on, and it names the supported formats. It does not warn that repeated calls are non-idempotent (duplicate documents), which is the one behavioral gap.

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?

The trigger condition is front-loaded, followed by parameter mechanics, then the sibling redirect — a sensible order. The prose is dense with em-dashes and clauses but nearly every clause carries information (trigger, encoding choice, MIME type, downstream consumers, formats, alternative), so little is wasted.

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 an output schema present, return values need not be described, and the description still covers the trigger, the parameter encoding choice, the MIME type requirement, supported formats, downstream tool compatibility, and the sibling alternative. For a 4-parameter tool with one required field, nothing an agent needs to call it correctly is missing.

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 the baseline is 3; the description earns above that by mapping content types to parameters — UTF-8 text via textContent, other content base64-encoded via base64Content — and by naming which formats fall in each bucket (text, Markdown, CSV, JSON, HTML vs. PDF). That is real guidance the schema only partially conveys through per-field hints.

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 states a specific verb and resource ('bring a file's content into their Xenition workspace') and immediately clarifies the outcome ('saves it as an editable document'). It also distinguishes itself from the closest sibling by explicitly routing web-page imports to add_to_knowledge, so an agent can separate import_file from that alternative without reading either 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?

It gives an explicit trigger ('when the user wants to bring a file's content into their workspace — e.g. they attached or pasted a document') and an explicit alternative with its condition ('To bring in a page from the web instead, use add_to_knowledge with its URL'). The when-to-use, when-to-use-something-else, and the format-selection rule are all stated.

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.