Skip to main content
Glama

Put Script Asset

put_script_asset
Destructive

Upload or replace a script asset from base64 content. Use the path as the key a command references — e.g. set an HTTP command's requestBody to { "key": "" } to give it a request body, or list the path in a browser upload step's files.

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": {
      "projectId": "<projectId>",
      "scriptId": "<scriptId>",
      "path": "<path>",
      "contentBase64": "<contentBase64>"
    },
    "name": "put_script_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe asset path / key to store it under, e.g. 'body.json'.
scriptIdYes
projectIdYes
contentBase64YesThe file content, base64-encoded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description's "or replace" usefully confirms existing content at that path is overwritten. It does not address size limits, content-type handling, or the mild tension between PUT-style "replace" semantics and idempotentHint=false. Reasonable added context, but thin beyond what annotations supply.

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?

Two sentences, front-loaded with the core action, followed by a single concrete usage example. No filler and the example earns its space by making the key contract unambiguous.

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, but the return value is not needed for correct invocation; the description is complete enough for a 4-required-param write tool. Missing only edge behavior — whether reuploads replace atomically, and any size/encoding constraints on contentBase64.

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?

Schema coverage is only 50%, but the description compensates by explaining what `path` actually means operationally — it is the key a command references, with a worked example — going beyond the schema's "asset path / key to store it under". `projectId` and `scriptId` remain undocumented in both places, which keeps it from a 5.

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+resource pair ("Upload or replace a script asset from base64 content") and immediately distinguishes the operation from get/delete siblings by explaining the key/path contract. An agent knows exactly what the tool stores and where it lands.

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 when-to-use context: set an HTTP command's requestBody to {"key": "<path>"} or list the path in a browser upload step's files. That is real guidance on why an agent would call this, though it doesn't address alternatives (e.g. when to prefer importing a script) or whether re-putting the same path is the update path.

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.