Skip to main content
Glama

schedule-iii

Ingest upload into the books

ingest_upload
Destructive

Commit a validated upload into the entity’s books. This is a TWO-CALL approval: if the upload has any warnings, or would permanently delete existing trial-balance rows for a period it covers, the first call writes NOTHING and refuses with every warning, the exact record counts, and a short-lived removal_token. Show your user every warning and both counts, get their explicit go-ahead, then resend the SAME call adding removal_token and removal_count exactly as returned. acknowledge_warnings is IGNORED on this connection — the token is the only acknowledgment, so sending it changes nothing. A clean, additive ingest needs no token and succeeds on the first call. Returns the ingestion outcome including any notices.

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": {
      "upload_id": "<upload_id>"
    },
    "name": "ingest_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
upload_idYesThe upload session id returned by upload_trial_balance.
removal_countNoThe exact removal count returned by the removal preview.
removal_tokenNoOnly include the short-lived token returned by the removal preview for this exact upload.
confirm_mergesNo
acknowledge_warningsNo
acknowledged_state_digestNoBrowser/REST only, and IGNORED on the agent connection exactly as acknowledge_warnings is: the destroy_state_digest returned by the confirm-mapping step, resent unchanged so the server can prove the acknowledgment was given against the data that is still there. On this connection the removal_token already pins the rows at risk, so sending this changes nothing.
monthly_history_authorityNo
confirm_identity_correctionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / monthly_history_authority
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "confirm": {
      +      "const": true,
      +      "type": "boolean"
      +    },
      +    "preview_digest": {
      +      "pattern": "^[a-f0-9]{64}$",
      +      "type": "string"
      +    },
      +    "reason": {
      +      "maxLength": 1000,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "confirm",
      +    "preview_digest",
      +    "reason"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / confirm_identity_correction
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / acknowledged_state_digest
      Added value: +{
      +  "description": "Browser/REST only, and IGNORED on the agent connection exactly as acknowledge_warnings is: the destroy_state_digest returned by the confirm-mapping step, resent unchanged so the server can prove the acknowledgment was given against the data that is still there. On this connection the removal_token already pins the rows at risk, so sending this changes nothing.",
      +  "pattern": "^[0-9a-f]{64}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / removal_count
      Added value: +{
      +  "description": "The exact removal count returned by the removal preview.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / removal_token
      Added value: +{
      +  "description": "Only include the short-lived token returned by the removal preview for this exact upload.",
      +  "maxLength": 200,
      +  "minLength": 20,
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=true), and the description adds genuine value by naming what gets destroyed — existing trial-balance rows for a covered period — and the short-lived token that pins those rows. However, it is silent on the semantics of confirm_merges, monthly_history_authority, and confirm_identity_correction, which are also consequential on a commit operation, so it does not fully carry the behavioral burden beyond annotations.

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-loads the commit action and the two-call rule before the details, and every sentence carries operational weight (token, ignorance of acknowledge_warnings, clean path). It is long-ish and restates the 'sending it changes nothing' point in two phrasings, which is minor redundancy rather than waste.

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 destructive, multi-step commit with no output schema, it covers the critical path — preview/refusal, token round-trip, clean single-call success — and states what is returned (ingestion outcome plus notices). The gap is the unaddressed merge/authority/identity-correction parameters, which an agent facing those branches would have to infer from the schema alone.

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?

With 8 parameters and only 50% schema coverage, the description does real work: it explains the relational contract between removal_token and removal_count (must be resent exactly as returned, same call, token is the only acknowledgment) and warns that acknowledge_warnings is ignored here. It adds no meaning for confirm_merges, monthly_history_authority, or confirm_identity_correction, so it does not fully compensate for the coverage gap.

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?

"Commit a validated upload into the entity's books" gives a specific verb (commit) and resource (a validated upload), and the word "validated" plus the upload_id-from-upload_trial_balance wiring makes clear this is the consuming step, not the intake step. An agent can tell it apart from upload_trial_balance or the confirm_* siblings 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 Guidelines5/5

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

Explicitly defines the two-call approval protocol: when the first call is a no-op refusal (warnings present or permanent row deletion), what it returns (warnings, counts, removal_token), and what to do next (get user go-ahead, resend the same call with removal_token and removal_count). It also names the clean case where no token is needed and the trap that acknowledge_warnings does nothing on this connection.

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