Skip to main content
Glama

Add document

add_document

Attach a document BY REFERENCE — no file bytes, source_url just points at something hosted elsewhere (e.g. an external drawing portal). To attach an actual file, use create_document_upload_url + finalize_document_upload instead.

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": {
      "title": "<title>"
    },
    "name": "add_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
titleYes
agent_idNo
categoryNo
entity_idNo
project_idNo
source_urlNo
descriptionNo
entity_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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, non-idempotent write, so the safety profile is covered. The description adds genuinely useful behavior beyond that — no bytes are transmitted and the URL is external — but says nothing about permissions, duplicate handling, or how referencing relates to entity linking, which matters for a mutation tool with nine parameters.

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?

Two sentences, zero filler, with the core scoping constraint front-loaded before the alternative-route pointer. Nothing could be removed without losing meaning.

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 a nine-parameter write tool with no output schema and no parameter descriptions, this is thin: an agent knows which tool to call but not how to fill most fields, particularly the entity_type/entity_id relationship and when project_id vs agent_id is appropriate.

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?

Schema description coverage is 0%, so the description carries the full burden, yet it clarifies only source_url (external reference, not upload). Nothing explains title, category, project_id, agent_id, notes vs description, or the entity_type/entity_id pairing required to bind the document to a record.

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?

Names a specific verb and resource ("Attach a document BY REFERENCE") and immediately constrains the scope: no file bytes, source_url merely points at externally hosted content. It explicitly distinguishes itself from the upload siblings, so an agent can route correctly without opening a schema.

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?

Gives an explicit when-not rule plus the named alternatives: "To attach an actual file, use create_document_upload_url + finalize_document_upload instead." That is a complete routing decision stated in one sentence.

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