Skip to main content
Glama

Upload opt-in source content

write_source_content
Destructive

Upload exact source files for a project only after the user explicitly agrees: record that consent (consent), upload one file (upload_blob), commit uploaded files as a new snapshot (commit_snapshot), or stop further uploads while keeping stored data (disconnect).

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": {
      "operation": "<operation>",
      "payload": "<payload>"
    },
    "name": "write_source_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYes
operationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description's main added value is the consent precondition and the note that disconnect keeps stored data. It does not disclose consequences of commit_snapshot (snapshot replacement, baseSnapshot conflicts) or whether uploads are reversible, which matter for a destructive write 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?

A single dense sentence with no waste, leading with the consent gate and then mapping operations. The parenthetical list is compact, though the gating condition sits mid-sentence rather than being fully front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, multi-operation tool with a nested payload of roughly a dozen fields and no output schema, the description covers only the operation set and the consent gate. It omits payload field semantics, snapshot base/conflict behavior, and hashing requirements, leaving significant gaps.

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 0%, so the description must compensate. It usefully defines the meaning of all four enum values of the operation parameter, but leaves the payload's fields (projectId, sha256, contentBase64, baseSnapshot, grantId, accepted, noticeVersion, changes, deleted) entirely unexplained.

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 and resource ('Upload exact source files for a project') and then enumerates the four concrete operations (consent, upload_blob, commit_snapshot, disconnect), so an agent can tell this apart from read_source_content and delete_source_content.

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?

The gating condition is explicit: only after the user explicitly agrees. It also implicitly maps each operation to its stage of the flow. It does not name a sibling alternative or a when-not condition, so it stops short of a 5.

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