Skip to main content
Glama

Complete Source Upload

complete_source_upload
DestructiveIdempotent

Check the uploaded files and make them the agent's complete new source.

Replaces the previous source entirely: files not in this upload are not
kept. Earlier behaviors and probes are kept but marked outdated, and the
agent returns to needing a scan. Reports the files accepted, those skipped
and why, and whether a limit truncated the collection. Refused with
`operation_in_progress` while a scan or generation runs; call again with
the same upload_id once it finishes. Repeating a completed call returns
the same result.

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": "complete_source_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
excludeNoOptional glob patterns for files to leave out, on top of built-in exclusions.
includeNoOptional glob patterns; only matching files are collected (e.g. "src/**/*.py").
upload_idYesThe upload_id from prepare_source_upload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the replacement is total (files not in this upload are dropped), prior behaviors and probes survive but are marked outdated, the agent reverts to needing a scan, and the result reports accepted/skipped files plus truncation. It also discloses the operation_in_progress refusal path and idempotent replay behavior, which the annotations alone could not convey.

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-loads the action, then sequences destructive scope, side effects, return content, failure mode, and idempotency. Every sentence carries distinct information and none repeats the schema or annotations verbatim.

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?

For a destructive, idempotent mutation with three well-documented parameters and no output schema, the description covers what is destroyed, what is preserved, what is returned, and how retries behave. Nothing an agent needs in order to call it 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 include, exclude, and upload_id are already documented in the schema, including the glob syntax example and the prepare_source_upload provenance. The description adds no meaning to include/exclude beyond what the schema states, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: validate uploaded files and promote them to become the agent's complete new source. It is clearly the terminal step of the upload flow referenced by prepare_source_upload, though it never explicitly names that sibling as its prerequisite.

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 concrete operational guidance: retry with the same upload_id after an operation_in_progress refusal, and expect the same result on a repeat call. It does not explicitly say 'call this after prepare_source_upload' or cover what to do if files are skipped, but the sequencing is strongly implied.

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.