Skip to main content
Glama

deposit_document

File a document in a library the person owns (app: "library" in search): an upload from start_upload or a url. File only what the person asked for.

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": {
      "library_id": "<library_id>"
    },
    "name": "deposit_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
titleNo
periodNo
contentsNo
doc_typeNoFor a new document: a type's key (`annual_report`), not its label.
documentNoA filed `D-…`: with an `upload_id` alone, that file replaces its copy.
keywordsNo
publisherNo
upload_idNo
library_idYes
published_onNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / doc_type / description
      Previous value: -"A type the library has, by key: the categories of its Documents table's Type column."New value: +"For a new document: a type's key (`annual_report`), not its label."
  2. Changed4 schema fields changed
    • addedInput schema / properties / doc_type / default
      Added value: +null
    • addedInput schema / properties / document
      Added value: +{
      +  "default": null,
      +  "description": "A filed `D-…`: with an `upload_id` alone, that file replaces its copy.",
      +  "type": "string"
      +}
    • addedInput schema / properties / title / default
      Added value: +null
    • changedInput schema / required
      Previous value: -[
      -  "library_id",
      -  "title",
      -  "doc_type"
      -]New value: +[
      +  "library_id"
      +]
  3. Added

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, open-world write, so the safety profile is covered. The description adds the ownership requirement and the valid content sources, but says nothing about what happens to an existing document, whether re-filing is idempotent, or what a successful deposit returns.

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?

Two sentences, front-loaded with the action and the scope constraint, with no filler. The parenthetical is dense but functional rather than wasteful.

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

Completeness2/5

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

For an 11-parameter mutation tool with no output schema and very low schema coverage, the description is far too thin. An agent still cannot tell how the optional metadata fields behave or how the `document`/`upload_id` combination is meant to be used.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 11 parameters and only 18% schema description coverage, the description carries most of the burden but explains almost none of it. It gestures at `url` and `upload_id` as sources and at `library_id` via the ownership rule, yet `title`, `period`, `contents`, `keywords`, `publisher`, `published_on`, and the replace-copy behavior of `document` are left entirely unexplained.

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 gives a specific verb and resource ('File a document in a library') plus the ownership constraint, and it distinguishes the two content sources (an upload from `start_upload` or a `url`). It stops short of a clean sibling contrast, but an agent can tell what the tool does without opening the schema.

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 supplies real routing context: find the target library via `search` with `app: "library"`, and obtain content via `start_upload` or a URL. The scope rule 'File only what the person asked for' constrains behavior, though no explicit when-not-to-use case is 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.

Resources