Skip to main content
Glama

ohmyho.st

Upload source file

source_blob_put
DestructiveIdempotent

Uploads one repository-relative file to this prepared snapshot, at most 2 MiB. Exactly one ordinary UTF-8 content_text or binary/legacy content_base64 is accepted; SHA256 is computed privately from validated bytes. The receipt contains path, hash, byte_length and executable flag. A staged file's content and mode are immutable within the upload. No local directory or model-supplied hash is read. API reference: https://docs.ohmyho.st/api-reference/upload-one-source-file-with-its-content-hash.

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": {
      "project_id": "<project_id>",
      "operation_id": "<operation_id>",
      "path": "<path>",
      "executable": "<executable>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "source_blob_put"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
executableYes
project_idYes
content_textNo
operation_idYes
content_base64No
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the annotations, which only say the tool is a non-readonly, destructive, idempotent write. The description adds the 2 MiB ceiling, the exact-one-of content_text/content_base64 rule, that the SHA256 hash is computed server-side from validated bytes rather than supplied, the receipt fields (path, hash, byte_length, executable), and that staged content and mode become immutable within the upload.

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?

Dense and front-loaded: the core action, size limit, and content-shape rule come in the first two sentences, with guarantees and return payload after. The trailing API reference URL is useful but the sentences are tightly packed, bordering on cryptic in places ('prepared snapshot', 'legacy').

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?

No output schema exists, and the description compensates by enumerating the receipt contents, plus limits, immutability, and hashing behavior. What is missing is error/failure behavior and the role of idempotency_key and operation_id, which an agent writing to a snapshot would want to know.

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?

With 0% schema coverage, the description must carry parameter meaning, and it does explain path relativization, the content_text/content_base64 mutual exclusion, and the executable flag. It leaves project_id, operation_id, and idempotency_key entirely unexplained, which is a real gap for a mutation tool with 7 parameters.

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: uploads one repository-relative file into a prepared snapshot, capped at 2 MiB. The phrase 'this prepared snapshot' implies the two-step prepare/put flow, but it never names source_upload_prepare or source_upload_commit, so the sequencing relative to those siblings must be inferred.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: 'to this prepared snapshot' hints that a snapshot must be prepared first, but there is no explicit prerequisite statement, no when-not guidance, and no pointer to the sibling tools that prepare or commit the snapshot. An agent can guess the context but is not told it.

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.