Skip to main content
Glama

Upload Knowledge Document

ethora-source-doc-upload

Upload documents (1–5; PDF, text, etc.) into an agent's knowledge base (the one named by agentId, else the app's default agent) (app-token / B2B variant of ethora-source-doc-upload-legacy). Async - content becomes queryable once indexing finishes; files passed as base64, 50MB max each. Pass tags to tag every document of the call in the same request (no separate ethora-source-doc-tags-update per document); the result lists each document's id and tags. Requires: a selected app (ethora-app-select) or an explicit appId. Auth: app-token mode OR B2B mode with an explicit appId. Errors: 401/403 wrong auth; 404 unknown appId; 413 too large; 422 unsupported document type. Related: ethora-source-doc-list, ethora-source-doc-delete.

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": {
      "files": "<files>"
    },
    "name": "ethora-source-doc-upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTags to put on every document of this call (up to 50, 64 characters each), e.g. `["billing", "faq"]`. An agent with `ragTags` answers only from sources carrying at least one of those tags; an agent without `ragTags` uses everything it has. If the tags match no source the agent has no knowledge to answer from, so tag the sources first. Change them later with `ethora-source-doc-tags-update`.
appIdNo24-char hex appId to ingest into. Required in B2B mode unless already set via `ethora-app-select`; ignored in app-token mode.
filesYes1 to 5 documents to ingest in this call.
agentIdNoAgent whose knowledge base gets the content (24-char hex, from `ethora-agent-list` / `ethora-agent-create`). Must be your own agent or one of this app's. Omit to file it under the app's default agent (the one answering its website widget); an app still on the shared Support Agent first gets its own copy of it.
agentIdOrAddressNoAlias for `agentId` - either name is accepted, pass whichever you have.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / tags
      Added value: +{
      +  "description": "Tags to put on every document of this call (up to 50, 64 characters each), e.g. `[\"billing\", \"faq\"]`. An agent with `ragTags` answers only from sources carrying at least one of those tags; an agent without `ragTags` uses everything it has. If the tags match no source the agent has no knowledge to answer from, so tag the sources first. Change them later with `ethora-source-doc-tags-update`.",
      +  "items": {
      +    "maxLength": 64,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 50,
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true), it discloses that ingestion is asynchronous and only queryable after indexing, per-file 50MB limits, and the concrete error surface (401/403, 404, 413, 422). The main remaining gap is what happens on a duplicate upload — the non-idempotent hint implies duplication but the description never says it.

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?

Front-loaded with purpose, then requirements, auth, errors, and related tools in a scannable order. It is dense with nested parentheticals and long compound sentences, so a small amount of parsing effort is required, but almost every clause carries operational information.

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

Completeness5/5

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

For a 5-parameter write tool with no output schema, it covers auth modes, prerequisites, async semantics, size caps, error codes, and even the shape of the result. An agent has everything needed to call it correctly and interpret failures.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns above that by adding call-level meaning the schema cannot, notably that `tags` apply to every document in the call and that the response lists each document's id and tags. It also clarifies the `agentId` fallback to the app's default agent, reinforcing but not merely repeating the schema text.

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?

Opens with a specific verb and resource ("Upload documents ... into an agent's knowledge base"), scopes it by count and file types, and explicitly marks itself as the app-token/B2B variant versus `ethora-source-doc-upload-legacy`. An agent can distinguish it from siblings like `ethora-source-doc-list` or `ethora-source-doc-delete` 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?

States prerequisites (a selected app via `ethora-app-select` or an explicit `appId`), the alternative to avoid (no per-document `ethora-source-doc-tags-update` when `tags` is passed), and the agent-selection default when `agentId` is omitted. It also names related follow-up tools (`ethora-source-doc-list`, `ethora-source-doc-delete`), leaving little 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.