Skip to main content
Glama

Estimate an import

estimate_ingestion
Read-onlyIdempotent

Cut files into the data points past reads best and price them, before anything is sent. Each file is detected as email, chat, transcript, table, records, code, documentation or notes (or pass kind to skip detection), cut at its natural boundaries, ordered by time and batched for POST /api/v1/ingest/batch. Answers the points (at most 200, with a preview each), the batches with their idempotency keys, the credits, the balance, and fitsFirst: how many points in order fit what is left. Writes nothing, spends nothing, and leaves no row in the request log. Mirrors the API Explorer's drop review; needs project Read on the project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesThe files, as text: each with its path inside the import (the extension helps detection), its content, and optionally a kind (email, chat, transcript, table, records, code, documentation, notes). Extract PDF or office text yourself first.
pointsNo"summary" (the default) lists the points with a preview; "none" lists only files and batches.
projectNoThe project's slug, exactly as get_viewer or list_projects returned it. May be omitted when the organization has one live project.
timeZoneNoIANA time zone reading times the files write without one, for example Europe/Paris. UTC when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / points / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / project / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / timeZone / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, yet the description adds material beyond them: no credits are spent, no row is left in the request log, project Read is required, and the response shape (points capped at 200 with previews, batches with idempotency keys, credits, balance, fitsFirst) is spelled out. This is exactly the extra behavioral context that annotations cannot convey.

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 action, then details, then the no-write guarantees, with essentially no filler sentences. The single dense paragraph is information-rich but heavy, and the opening phrase ('data points past reads best') is slightly awkward, keeping it short of a 5.

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?

There is no output schema, so the description carries the return-value burden and does so explicitly (points, batches, credits, balance, fitsFirst). It also discloses the auth requirement and the non-mutating guarantee. Nothing needed to call this correctly is missing.

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 all four parameters are already documented in the schema, including the kind enum and the project slug. The description restates the detectable kinds and hints at the ordering/timeZone behavior but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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+resource: cutting files into data points and pricing them as an estimate before anything is sent. It names the endpoint it mirrors (POST /api/v1/ingest/batch) and clearly separates itself from siblings like explain_ingestion or retry_ingestion. An agent knows this is a dry-run cost/point estimate, not an actual write.

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?

"before anything is sent" plus "Writes nothing, spends nothing" gives a clear condition for using it (preview/estimate prior to ingesting). It provides strong context but never names the alternative write tool to use once the estimate is accepted, so the when-not/when-to-ingest-anyway half is left 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.

Resources