Skip to main content
Glama

AnyShare by Anysoft

Add document to data room

add_document_to_data_room
DestructiveIdempotent

Add an existing document to an existing data room and folder. If already present, preserve its current folder. Existing room recipients may gain access to this document. Does not create a new link.

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": {
      "document_id": "<document_id>",
      "room_id": "<room_id>"
    },
    "name": "add_document_to_data_room"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderNoGeneral
room_idYes
document_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely new behavior: the idempotent case preserves the current folder rather than moving the document, recipients of the room may gain access as a side effect, and no link is created. It does not discuss required permissions or failure modes, keeping it short of 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, each doing distinct work: purpose, idempotent behavior, side effect, and exclusion. The purpose is front-loaded and there is no filler.

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?

With an output schema available and rich annotations, the description needs only to add the side-effect and idempotency context, which it does. It stops short on preconditions such as required access to the room and folder-creation behavior, which matter for a mutation that changes recipient visibility.

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 0%, so the description carries the burden, and it only partially does: 'document' and 'data room' map loosely to document_id and room_id, and 'folder' is mentioned but never explained. It adds no information about whether the folder value is a name or path, that it defaults to 'General', or what happens if the folder does not exist.

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 definition states a specific verb and resource ('Add an existing document to an existing data room and folder') and scopes it to pre-existing documents, which implicitly separates it from upload paths. The closing line 'Does not create a new link' draws a boundary against the share-link sibling, though no sibling is named explicitly.

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

Usage Guidelines4/5

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

It gives clear context for when to use it: both the document and the room must already exist, so this is an association operation, not an upload or link-creation operation. It lacks an explicit 'use X instead when...' clause, but the exclusions that are present ('existing', 'does not create a new link') point the agent in the right direction.

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