Skip to main content
Glama
AskBase

AskBase

Official

create_document

Add a text document to a specified collection so AI assistants can search and expand the AskBase knowledge base.

Instructions

Add a text document to a collection.

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": {
      "collection_id": "<collection_id>",
      "content": "<content>"
    },
    "name": "create_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoDocument title
contentYesThe document text (markdown is fine)
source_uriNoWhere the content came from
collection_idYesCollection ID

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses almost nothing beyond the mutation itself. It does not state whether the document becomes immediately searchable or must be published/indexed, what happens on a duplicate title, whether it requires write permissions, or whether source_uri triggers fetching.

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?

A single short sentence with zero filler, front-loading the action. It is efficiently written but borders on under-specification rather than being genuinely tight.

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?

An output schema exists so return values need not be explained, and the four parameters are fully covered. However, for a mutation tool in a knowledge-base pipeline with no annotations, the description omits essential context: whether ingestion triggers chunking/embedding and whether later publish_documents is required.

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 100%, so every parameter (title, content, source_uri, collection_id) is already documented in the schema, and the description adds no format, constraint, or semantic detail beyond it. The baseline of 3 applies since the schema does the heavy lifting.

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?

"Add a text document to a collection" gives a clear verb (add) and resource (text document) plus its scope (a collection), which is enough to distinguish it from read-side siblings like get_document or list_documents. It does not differentiate itself from other creation/ingestion siblings such as create_collection or ingest_url, so sibling disambiguation rests on the name alone.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says whether this is the right tool versus ingest_url or ingest_website for content fetched from a URL, or whether publish_documents must follow it. With source_uri as a parameter, that distinction is exactly what an agent would need, and the description says nothing about it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.