Skip to main content
Glama

AnyShare by Anysoft

Upload attached document

upload_document
DestructiveIdempotent

Import the original bytes of a user-provided file using its temporary download_url. Use a stable file_id and idempotency_key for retries. If the source cannot be fetched, request_document_upload provides an upload page. May place content in an existing room and expose it to its recipients (requires rooms:write). Does not create a link; wait for conversion before sharing.

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": {
      "idempotency_key": "<idempotency_key>",
      "file": "<file>"
    },
    "name": "upload_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
nameNo
folderNoGeneral
room_idNoExisting data room in the connected organization.
filenameNo
idempotency_keyYesUnique key for this requested action; reuse unchanged on retry.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=true, idempotentHint=true, and openWorldHint=true, and the description adds real context beyond them: the rooms:write permission requirement, the side effect that content may be exposed to existing room recipients, and the retry contract via file_id/idempotency_key. It stops short of describing failure modes or what the response returns, but the safety-relevant behavior is well disclosed.

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 the core action and followed by retry, fallback, permission, and sequencing notes. Every sentence carries information, though the permission and room-placement clauses are slightly compressed into one sentence.

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?

This is a destructive, open-world mutation with a nested file object, and the description covers the essential contract: source of bytes, idempotent retries, required permission, exposure side effect, and the follow-up sequencing. An output schema exists, so return values need no explanation; only per-parameter detail for name/folder/room_id is missing.

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 only 33% schema description coverage across six parameters, the description partially compensates by explaining download_url as the source of the exact bytes and by framing file_id and idempotency_key as retry-stability inputs. It says nothing about name, folder, filename, or room_id, so several parameters remain opaque outside the sparse schema.

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?

The description opens with a specific verb and resource: importing the original bytes of a user-provided file via a temporary download_url. It separates this tool from request_document_upload (fallback upload page) and create_share_link (link creation), so an agent can pick it without opening sibling schemas.

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?

It states the primary condition for use (you have a host-provided download_url for the exact bytes), an explicit fallback path when the source cannot be fetched (request_document_upload), and a post-condition (do not share until conversion completes). That covers when-to-use, when-not, and the neighboring alternative.

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