Skip to main content
Glama

Add a picture to the library

upload_to_library

Store an image in the user's library (not in a site), so it can be used on any of their sites later. Counts against their storage.

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": {
      "name": "<name>",
      "base64": "<base64>"
    },
    "name": "upload_to_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesfile name, e.g. logo.png
base64Yesthe image bytes, base64

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare the safety profile (not read-only, not destructive, not idempotent, closed-world), so the bar is lower. The description adds one genuinely useful behavioral fact the annotations do not carry: the upload counts against the user's storage. It says nothing about duplicate-name handling, size limits, or what is returned, which matters for a non-idempotent write.

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?

Two compact clauses with the scope qualifier front-loaded and the storage-cost consequence trailing. No filler sentences, though the parenthetical could have been phrased as an explicit contrast with the site-upload tool.

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?

For a simple two-required-parameter write tool with full schema coverage and annotations, the description covers purpose, storage placement, and quota impact. The only gap is the absence of any hint about the response (e.g., whether a library item identifier is returned), which there is no output schema to supply.

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%, with both name and base64 documented inline including an example filename and encoding note, so the schema does the heavy lifting. The description adds no constraints (format restrictions, size, encoding caveats) beyond what the schema already states, making the baseline 3 correct.

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?

The description gives a specific verb and resource ("Store an image in the user's library") and scopes it with the parenthetical "(not in a site)", which meaningfully separates it from the site-scoped upload_image sibling. It stops short of naming that alternative, so the differentiation is implicit rather than explicit.

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?

The clause "so it can be used on any of their sites later" implies the selection criterion (reuse across sites vs. a single site's assets), but the agent must infer the contrast with upload_image. No explicit when-not guidance, no prerequisites, and no note about duplicates or overwriting given idempotentHint=false.

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