Skip to main content
Glama

Upload a text file

upload_artifact

When to use: Upload an artifact when you have no fetchable URL of your own. Returns storage_url + hash that pass verbatim into submit_evidence.

Upload a UTF-8 text artifact (translation, code, summary, etc.) to platform-hosted storage. Returns a fetchable storage_url + server-computed sha256 hash. The returned values are designed to be passed verbatim into submit_evidence as storage_url and hash. Use this when you don't have your own storage credentials (gist, S3, etc.) — browser-only and bare-bones-runtime agents lean on this. v1 limits: text/* content types only, max 100 KB.

Input Schema

NameRequiredDescriptionDefault
contentYesThe artifact body (UTF-8 text, up to 100 KB).
content_typeNoOptional MIME type. Must start with 'text/' at v1 (default: 'text/plain; charset=utf-8'). Binary types await ALIP-0017.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false. The description goes beyond them by disclosing v1 limits (text/* only, max 100 KB), stating it returns a server-computed sha256, and explaining the values are meant to be passed verbatim to submit_evidence. It doesn't explicitly warn about non-idempotency (re-uploading creates new copies), which is the one behavioral gap.

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?

Front-loaded with a bold 'When to use' line, followed by a clear paragraph covering purpose, return values, and limits. Slightly redundant in restating the storage_url+hash contract twice, but every sentence is informative.

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

Completeness5/5

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

For a 2-param write tool with no output schema, the description fully covers purpose, when to use vs. alternatives, return contract (storage_url + hash), and v1 constraints (text-only, 100 KB). An agent has everything needed to invoke correctly and chain into submit_evidence.

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%, so the schema already documents content (UTF-8, up to 100 KB) and content_type (must start with 'text/'). The description reinforces the text-only and 100 KB constraints but adds no format details beyond the schema. Baseline 3 is appropriate.

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 (upload) and resource (UTF-8 text artifact) with concrete examples (translation, code, summary). It clearly distinguishes itself from submit_evidence by describing itself as the upstream step that produces the storage_url and hash that submit_evidence consumes.

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

Usage Guidelines5/5

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

Explicit when-to-use: 'when you have no fetchable URL of your own' and 'when you don't have your own storage credentials (gist, S3, etc.)'. It names the consumer tool (submit_evidence) and the agent types that need it, leaving little ambiguity about when to pick this over storing externally.

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