Skip to main content
Glama

AnyShare by Anysoft

Prepare original document upload

request_document_upload
Idempotent

Reserve a document up to 100 MB. Returns a signed URL for PUT of original file bytes, plus a user upload page if your client cannot transfer the file. Complete the upload afterward; completion may expose it to existing room recipients. Adding to a room also requires rooms:write.

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>",
      "filename": "<filename>",
      "size": "<size>"
    },
    "name": "request_document_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
sizeYes
folderNoGeneral
room_idNoExisting data room in the connected organization.
filenameYesOriginal filename, including its supported extension; no directory path.
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

A3.7/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, but the description adds real value beyond them: the 100 MB cap, the signed-URL PUT mechanism, the upload-page fallback, the rooms:write scope requirement, and the important disclosure that completion may expose the document to existing room recipients. That is substantive behavioral context not present in the structured fields.

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?

Three dense sentences, front-loaded with the core action and size limit, followed by return behavior and the completion/permission caveats. Every sentence carries information, though the phrasing is compact enough to border on terse.

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 mutation tool with an output schema, the description covers the essential agent needs: size limit, return artifacts, required follow-up step, and the rooms:write authorization. Minor gaps remain around idempotency behavior and the folder/name parameters, but nothing critical to correct invocation 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?

Schema coverage is 50%, and the schema already documents room_id, filename, and idempotency_key. The description reinforces the size ceiling and the room-attachment permission, but adds nothing about name, folder, or the idempotency_key retry semantics beyond what the schema states, so it neither compensates for nor worsens the coverage gap.

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 states a specific verb and resource ('Reserve a document') and clarifies the two-step nature by noting it returns a signed URL for PUT and that the upload must be completed afterward. This distinguishes it from complete_document_upload and upload_document without naming them explicitly, so it is clear but not maximally differentiated.

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 implies the workflow ('Complete the upload afterward') and offers a fallback ('a user upload page if your client cannot transfer the file'), plus the rooms:write prerequisite for room attachment. However, it never explicitly states when to choose this over upload_document or add_document_to_data_room, leaving the alternative selection to inference.

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