Skip to main content
Glama

Prepare a file

prepare_list_file
DestructiveIdempotent

Prepare the CSV file (every column) or the Excel file (the columns you choose) of a ready list. Then call get_list_file until the file is ready. A file stays available 7 days.

Free. idempotencyKey (a new UUID v4) is required; reuse it only to retry the very same call.

Same call as POST /api/v1/lists/{id}/files of the REST API.

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": {
      "listId": "<listId>",
      "format": "<format>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "prepare_list_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatYes
listIdYesId of a list of the account (from create_list or list_lists).
columnsNoxlsx only: column keys (see GET /lists/{id}/items, "columns"). A CSV always holds every column.
idempotencyKeyYesA new UUID v4 for this operation (sent as the Idempotency-Key of the API). Reuse it only to retry the very same call: the saved result comes back, nothing is charged twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructive=true, idempotent=true and readOnly=false, and the description adds real context beyond them: the operation is free, requires a fresh UUID v4, returns a cached result on retry with no double charge, and the resulting file expires after 7 days. It never explains why destructiveHint is true (e.g., whether an existing file is overwritten), 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and format split, then the required follow-up call, then retention and cost, then the idempotency rule. Every sentence carries operational information and nothing is padded.

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 no-output-schema, async prepare-then-poll tool this covers the full lifecycle: what is produced, how to poll, how long results persist, that it costs nothing, and how retries behave. Only the reason for the destructive flag and the file's access mechanics are left implicit.

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 75%, so most parameters are already documented; the description mainly restates that CSV holds every column while xlsx honors 'columns', a rule the schema already encodes. The idempotencyKey note mirrors the schema wording, adding little new meaning.

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 ('Prepare the CSV file ... or the Excel file ... of a ready list') and distinguishes the two formats' column behavior. It also names the follow-up sibling, get_list_file, so an agent can place it in the export flow without opening a 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 explicit sequencing ('Then call get_list_file until the file is ready') and a clear when-not rule for idempotencyKey reuse ('reuse it only to retry the very same call'). It does not discuss non-async siblings such as estimate_list or start_list_job, but the in-flow guidance is concrete.

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.