Skip to main content
Glama

sync_assets

Destructive

Make a folder of assets match a local folder in one call: give every file's path, SHA-256 and size. Files the workspace has are recorded at once; you get an upload to make for each of the others, then call again to record them. A file over 100 MiB gets a multipart upload: PUT each part, keep each part's ETag, and in the next call give that file multipart (its upload_id and every part's part_number and etag).

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": {
      "files": "<files>"
    },
    "name": "sync_assets"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesEvery file of the local folder, up to 1000.
prefixNoThe workspace folder, ending in `/`, or empty for the whole workspace.
project_idNoThe project new assets go in; the workspace's default project when absent.
delete_missingNoAlso delete the folder's assets that aren't in `files`.

Output Schema

NameRequiredDescriptionDefault
deletedYesNames deleted because they weren't in `files`.
uploadsYesFiles to upload before the next request.
recordedYesNames recorded or already up to date.

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?

With annotations already declaring destructiveHint=true and openWorldHint=false, the description adds real value: the two-phase record-then-confirm protocol, the 100 MiB multipart threshold, and the requirement to retain each part's ETag across calls. The notable gap is that the destructive capability (delete_missing) is never surfaced in prose, leaving the agent to discover it only in the schema.

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?

The operation and its required inputs are front-loaded, and the multipart edge case is correctly deferred to the end. It is dense but every sentence carries protocol information; the nested parenthetical about part_number/etag is the only mildly awkward construction.

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?

An output schema exists, so return values need no prose, and the description covers the full round trip including the large-file exception. For a four-parameter tool with complete schema coverage, an agent has enough to execute both phases correctly; only the destructive delete_missing path is undersold.

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 description coverage is 100%, so the baseline is 3. The description does add genuine meaning for `multipart` by explaining its cross-call lifecycle ('in the next call give that file multipart (its upload_id and every part's part_number and etag)'), but it says nothing about prefix, project_id, or delete_missing beyond what the schema already states.

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 first clause names a specific verb and resource plus the exact effect: 'Make a folder of assets match a local folder in one call', and it immediately scopes the input ('give every file's path, SHA-256 and size'). This is unmistakably a reconciliation sync, distinguishable from list_assets or create_upload_token, not a restatement of the name.

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?

It lays out the two-call workflow explicitly ('you get an upload to make for each of the others, then call again to record them') and gives the branching condition for the multipart path (over 100 MiB). It stops short of when-not-to-use guidance and never tells the agent when the delete_missing path is appropriate, which is the riskiest choice available.

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