Skip to main content
Glama

batch

Destructive

BATCHES: run any Logimu endpoint over a whole list in one job and come back for the results - the same batch API as REST /v1/batches (see https://api.logimu.com/docs#batch). action=estimate prices a list before anything is billed (free); action=create makes a named, re-runnable batch (add start=true to launch its first run at once); action=run launches a run of an existing batch; action=status reports a batch (runs, line stats) or, with run_id, one run's progress (rows done, credits so far, queue position); action=results returns completed result rows of a run, mid-run too (limit / offset to page; jsonl_url and csv_url give the full download); action=list lists the account's batches; action=schedule repeats a batch every 12 hours / daily / weekly / monthly (credit_ceiling, webhook_url, email); action=delete removes a batch. USE WHEN the user has more than a handful of ASINs, barcodes, search terms, seller ids, brands or seeds to run, wants a daily/weekly refresh, or wants a CSV. Kinds: product (asins or gtins - or source=tracked for the ASINs this account tracks, typically with include [history_only] at 0.05 a row), search (terms, live SERP), seller / brand / category / keywords (paid plans), and every other endpoint as its own kind (shopping, warehouse_search, bestsellers, offers, deals, seller_products, seller_brands, seller_network, brand_sellers, brand_network, keywords_compare, categories, category_search, brands_top, brands_movers, sellers_top, sellers_movers, categories_top) with the endpoint's query parameters in params. Each row bills what the endpoint bills; failed, not-found and duplicate rows are never billed; runs are serialized per marketplace. COST estimate / status / results / list are free; create + run queue billable rows (the estimate is the ceiling). API key required (keyed lanes).

Input Schema

NameRequiredDescriptionDefault
kindNoestimate / create: product (default), search, seller, brand, category, keywords, or any endpoint kind named in the description.product
modeNoproduct / seller batches: cache = warehouse only, live = scrape every row, auto = warehouse when fresh enough (required on create for product batches).
nameNocreate: the batch's name (1-120 characters).
urlsNobestsellers batches: Best Sellers URLs.
asinsNoproduct batches: the ASINs (or Walmart item ids).
emailNocreate / schedule: e-mail the account when a run completes or pauses and when a scheduled firing is refused. Default false for batches created here or through the REST API; results are always available programmatically.
gtinsNoproduct batches: barcodes instead of ASINs.
limitNoresults: rows to return (page with offset; the download URLs carry everything).
pagesNosearch batches: pages per term (1-3); ranked-list batches: pages of 25 rows (1-40).
seedsNokeywords / keywords_compare batches: seed terms.
startNocreate: also launch the first run at once.
termsNosearch / shopping / warehouse_search / category_search batches: the queries.
actionYesWhat to do (see the tool description).
brandsNobrand, brand_sellers, brand_network batches.
offsetNoresults: rows to skip.
paramsNoendpoint kinds: the endpoint's query parameters, fixed for every row.
run_idNoFor status (one run's progress) and results.
sourceNoproduct batches: tracked = the ASINs this account tracks on the marketplace instead of a list.
countryNoestimate / create: us, uk, de, ca, au, fr, it, es, jp, mx, br, walmart (search batches Amazon only).us
includeNoExtras: history (seller / brand / category / keywords), reviews, used, offer_history, bsr_history, history_only (product), blocks (search).
batch_idNoFor run / status / results / schedule / delete.
scheduleNoschedule: how often the batch re-runs (none stops the schedule). 12h fires twice a day, at at_hour_utc and 12 hours later; daily once a day at at_hour_utc (default midnight UTC); weekly on Monday and monthly on the 1st, 00:00 UTC.
seller_idsNoseller, seller_products, seller_brands, seller_network batches.
at_hour_utcNoschedule, 12h and daily only: the UTC hour it fires at (12h: this hour and 12 hours later). Default: 12h = the current UTC hour, daily = 0. Kept when the same cadence is saved again without it.
webhook_urlNoschedule: POSTed on run completion / pause, HMAC-SHA256 signed; the secret is returned once.
category_idsNocategory / categories batches (ids, or root); deals batches (deals department ids, or all for the whole deals page).
max_age_daysNo
credit_ceilingNoschedule: a firing whose fresh estimate exceeds this does not run (email instead); default 2x the estimate.
history_pointsNo
history_sellersNo
schedule_enabledNoschedule: pause without deleting.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / email
      Added value: +{
      +  "description": "create / schedule: e-mail the account when a run completes or pauses and when a scheduled firing is refused. Default false for batches created here or through the REST API; results are always available programmatically.",
      +  "type": "boolean"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / at_hour_utc
      Added value: +{
      +  "description": "schedule, 12h and daily only: the UTC hour it fires at (12h: this hour and 12 hours later). Default: 12h = the current UTC hour, daily = 0. Kept when the same cadence is saved again without it.",
      +  "maximum": 23,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / schedule / description
      Previous value: -"schedule: how often the batch re-runs (none stops the schedule)."New value: +"schedule: how often the batch re-runs (none stops the schedule). 12h fires twice a day, at at_hour_utc and 12 hours later; daily once a day at at_hour_utc (default midnight UTC); weekly on Monday and monthly on the 1st, 00:00 UTC."
    • changedInput schema / properties / schedule / enum
      Previous value: -[
      -  "none",
      -  "daily",
      -  "weekly",
      -  "monthly"
      -]New value: +[
      +  "none",
      +  "12h",
      +  "daily",
      +  "weekly",
      +  "monthly"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / source / description
      Previous value: -"product batches: tracked = the ASINs this key tracks on the marketplace instead of a list."New value: +"product batches: tracked = the ASINs this account tracks on the marketplace instead of a list."
  4. Changed1 schema field changed
    • changedInput schema / properties / category_ids / description
      Previous value: -"category / categories batches (ids, or root)."New value: +"category / categories batches (ids, or root); deals batches (deals department ids, or all for the whole deals page)."
  5. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, readOnlyHint=false), the description discloses cost behavior that annotations cannot: which actions are free, that create/run queue billable rows, that failed/not-found/duplicate rows are never billed, that the estimate is the ceiling, and that runs are serialized per marketplace. It also flags the API-key requirement. It stops short of saying whether action=delete also discards stored results — a real gap for a destructive tool.

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?

Front-loaded with the core purpose, and each semicolon-delimited clause carries unique information (action semantics, kinds, billing, cost). It is dense to the point of being a wall of text for a 31-parameter tool, but almost nothing is redundant.

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 31-parameter multi-action tool with no output schema, the description covers action selection, kinds, cost, scheduling semantics, and pagination well enough to call correctly. Remaining gaps are the three undocumented numeric tuning parameters and any indication of the shape of status/results payloads beyond the mentions of rows/credits/queue position and download URLs.

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 90%, so the baseline is 3; the description still adds value by defining each action's semantics (estimate vs create vs run vs status vs results) and by explaining that endpoint kinds take the endpoint's own query parameters in params. It also pins concrete meaning onto source=tracked with include [history_only] and its 0.05/row cost. It does not cover max_age_days, history_points, or history_sellers, which carry no schema descriptions at all.

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 opening sentence names a specific verb and resource ('run any Logimu endpoint over a whole list in one job') and immediately scopes it as the batch counterpart to REST /v1/batches. Every action is enumerated with its own one-clause meaning, so an agent can distinguish this from single-item siblings like product or search 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 Guidelines5/5

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

The 'USE WHEN' clause gives an explicit trigger threshold ('more than a handful of ASINs, barcodes, search terms, seller ids, brands or seeds'), plus scheduled refresh and CSV output as alternate triggers, which implicitly routes single-item requests to the non-batch siblings. Kind selection is also spelled out per data type, leaving little to inference.

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.