Skip to main content
Glama

import_posts_csv

Idempotent

Import a CSV of posts as DRAFTS ONLY. Nothing is scheduled or published. dry_run true validates each row and writes nothing: supported network, a connected account in this org, the per-network character limit, the date, and media URL syntax. dry_run false creates pending drafts through the same path as create_drafts. Columns: text, scheduled_at, timezone, network, account, media_urls, first_comment, link, tags. Header names are case-insensitive. Also accepts calendar export headers (Message, Social network, Social profile, Date, Time) and a Postiz posts JSON object ({ posts: [...] } with content, publishDate, and integration). Duplicates match account, scheduled time, and a hash of the text. At most 200 rows and 1 MB per request. Rejected rows come back as rejectedCsv. first_comment is posted as the first comment under the post after it publishes, on networks that allow it (X, Bluesky, Mastodon, Pixelfed, Telegram, Slack; Instagram, Threads and Facebook only once their comment permission is granted). tags are stored on the draft and are not published. A status column is ignored. CAPABILITY: draft: creates content that cannot reach an audience on its own. Safe for a draft-only agent token.

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": {
      "csv": "<csv>",
      "dry_run": "<dry_run>"
    },
    "name": "import_posts_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvYesUTF-8 CSV text, or a Postiz posts JSON object. Max 1 MB and 200 data rows.
dry_runYestrue validates only. false creates drafts. Never schedules or publishes.
default_timezoneNoIANA timezone used when a row has a date without an offset and no timezone column. Example: Europe/Paris.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-destructive, idempotent, non-open-world behavior; the description adds substantial context on top: nothing is scheduled or published, duplicates are matched on account + scheduled time + text hash (which explains the idempotentHint), rejected rows are returned as rejectedCsv, limits are 200 rows / 1 MB, and first_comment posting rules vary by network. It stops short of describing the success payload shape, which matters because there is no output schema.

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 critical constraint (drafts only, never published) is front-loaded before any mechanics, and every subsequent sentence carries distinct information about formats, limits, or rejection handling. It is dense and long for a single paragraph, and the column list plus calendar-header list could be tightened, but nothing is pure filler.

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 tool with three parameters, no output schema, and a complex multi-format input, the description covers limits, accepted formats, dedupe semantics, partial-failure behavior, and per-network first_comment caveats. The one meaningful gap is the shape of a successful response (counts of created vs skipped drafts), which the agent cannot learn from an output schema because none exists.

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 100%, so the schema already documents all three parameters. The description does add real meaning beyond it: the exact validation checks dry_run performs (network support, connected account, character limit, date, media URL syntax) and the accepted CSV/JSON/calendar-export column formats for csv. It never mentions default_timezone, leaving one parameter entirely to the schema, so this stays near baseline.

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 opens with a specific verb and resource plus a hard scope constraint: "Import a CSV of posts as DRAFTS ONLY. Nothing is scheduled or published." It also names the sibling it shares a path with (create_drafts), so an agent can distinguish it from create_drafts and create_posts_from_source without inspecting schemas.

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?

It clearly splits the two modes: dry_run true validates only, dry_run false creates drafts, and it states that both go through the same path as create_drafts. What is missing is an explicit routing statement such as "use create_drafts for one-off single posts, use this for bulk files," so the agent must infer the bulk-vs-single distinction.

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.