Skip to main content
Glama

Rag index text

rag_index_text

Add text to the studio's AI knowledge base: chunks + embeds it so it can be searched and cited later. Returns the document id.

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": {
      "text": "<text>"
    },
    "name": "rag_index_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
titleNo
source_refNo
source_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the safety profile is covered; the description adds genuine value beyond that by disclosing the internal pipeline (chunking plus embedding) and stating the return value ('Returns the document id') even though no output schema exists. The gap is that it doesn't warn that re-indexing the same text with idempotentHint=false will likely create a duplicate document, or mention any processing latency/cost.

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 tight sentences, zero filler, with the core action front-loaded and the benefit/return value following. Every clause earns its place.

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

Completeness3/5

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

The description covers the operation and its return value, which partly compensates for the missing output schema, but with no annotations explaining parameters and 0% schema coverage it leaves three of four parameters (including the enum) unexplained. For a non-idempotent write tool that feeds a retrieval pipeline, guidance on the metadata fields is needed to use it correctly.

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 for four parameters, yet it only gestures at the required 'text' field. It says nothing about what 'title' is used for, what 'source_ref' should contain, or what the five 'source_type' enum values (manual, note, upload, row, url) mean or how they affect citation. This is a substantial gap for an ingestion tool whose metadata quality determines retrieval quality.

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 uses a specific verb+resource ('Add text to the studio's AI knowledge base') and explains the downstream effect ('chunks + embeds it so it can be searched and cited later'), which makes the ingestion role clearly distinct from retrieval siblings like rag_search/rag_answer and lifecycle siblings like delete_rag_document/list_rag_documents. It stops short of naming any sibling explicitly, so it lands at a strong 4 rather than a 5.

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

Usage Guidelines3/5

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

Usage is only implied: the 'so it can be searched and cited later' clause hints this is the write step that precedes rag_search/rag_answer, but there is no explicit 'use this when…' or 'do not use this for…' and no mention of prerequisites such as needing text ready in hand. An agent can infer intent but gets no routing rules or exclusions.

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