Skip to main content
Glama

Import attached files

import_chat_file

Save images or videos the user attached to their message into their PostNext asset library. Returns each saved file's url: pass it in mediaUrls (or media) of create_post_draft or update_post_draft. Files that could not be imported are listed in failed with the reason; the saved ones need no retry. Use this when the user has attached a photo or video and wants it in a post. JPEG, PNG, GIF, WebP or AVIF images and MP4, MOV, WebM or AVI videos, up to 50MB each, at most 10 per call; uses the account's storage.

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": {
      "files": "<files>"
    },
    "name": "import_chat_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesThe images or videos the user attached to their message.

Output Schema

NameRequiredDescriptionDefault
filesYes
failedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Goes beyond annotations meaningfully: partial-failure semantics ('failed' list with reasons, saved ones need no retry) are exactly the retry guidance an agent needs given idempotentHint=false, and the 50MB/10-file limits plus 'uses the account's storage' disclose quota side effects. It still doesn't state auth or permission requirements.

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?

Front-loads the action and the return contract, then folds constraints and the downstream call into single dense clauses. Every sentence carries actionable information; nothing is restated from the schema.

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?

Output schema exists and annotations declare the mutation profile, yet the description still supplies the failure/retry contract that neither covers. Combined with format limits and the follow-up tool to call, an agent has everything needed to invoke and chain it correctly.

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 baseline is 3; the description adds real value with accepted MIME types, per-file size cap, and the 10-per-call ceiling that the schema only partially encodes via maxItems. It does not explain the individual `files` fields (file_id vs download_url) beyond what the schema already says.

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 ('Save images or videos the user attached... into their PostNext asset library') and scopes the input to user-attached message media, which implicitly separates it from generic asset tools like upload_asset. An agent can tell what it does and what it produces without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear trigger ('Use this when the user has attached a photo or video and wants it in a post') and hands off to create_post_draft/update_post_draft with the returned url in `mediaUrls`/`media`. It does not address when to prefer upload_asset or request_asset_upload instead, so the sibling routing is incomplete.

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.

Resources