Skip to main content
Glama

HTML/CSS to Image API

create_asset_upload_ticket

Destructive

Get a single-use URL to PUT raw file bytes. For a new asset, supply request.asset_path. To replace a file, pass its id and omit asset_path. Optional request.public_access_requested changes its public access. Complete the upload using an HTTP client with access to the file.

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": {
      "request": "<request>"
    },
    "name": "create_asset_upload_ticket"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
requestYes

Output Schema

NameRequiredDescriptionDefault
itemNoOperation result. Check success before using this value.
errorNoError details when the operation failed; null on success.
successNoWhether the operation succeeded. If false, inspect error before retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, and the description adds real context beyond them: the URL is single-use, the actual byte transfer happens outside the tool via an HTTP client with file access, and public_access_requested alters visibility. It does not state that replacing an existing file overwrites it irreversibly or how long the ticket lives, which keeps it from a 5.

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?

Four short sentences, front-loaded with what the tool returns before branching into the two modes and the external completion step. Every sentence is load-bearing, though 'Optional request.public_access_requested changes its public access' is slightly tautological in its wording.

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?

An output schema exists, so the return payload need not be described. For a two-mode, nested-object tool the dual paths and the external PUT handoff are both covered. Missing only secondary details such as ticket expiry, overwrite semantics, and the meaning of request.name.

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?

With 0% schema description coverage, the description carries the burden and mostly succeeds: it explains id and request.asset_path as an either/or pair and clarifies what public_access_requested toggles. The nested request.name field is never explained in either the schema or the description, leaving one gap in a 4-field nested object.

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 first sentence gives a specific verb and resource: mint a single-use URL for PUTting raw file bytes. The agent can distinguish it from direct-creates like create_image or create_url_image because it produces an upload ticket rather than an asset. It stops short of explicitly naming which sibling to use for the other creation paths.

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?

It gives clear branching within the tool: new asset -> supply request.asset_path, replacement -> pass id and omit asset_path. That is intra-tool routing rather than tool-level guidance; nothing tells the agent when to pick this over create_image, create_url_image, or update_asset, so usage is implied rather than stated.

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.