Skip to main content
Glama

Ingest Into Vector Database

library_ingest
Idempotent

Ingest a full-text library source by chunking, embedding, and storing it. Idempotent; requires OpenAI and Supabase credentials.

Instructions

Chunk, embed, and store a text. Idempotent. Full-text sources only. Requires OPENAI_API_KEY + SUPABASE_URL + SUPABASE_SERVICE_ROLE_KEY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
sourceYesLibrary source name. Run library_list_sources for the current list and descriptions.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
sourceYes
sourceIdYes
chunksDroppedYes
chunksWrittenYes
skippedDuplicateYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv11.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already provide idempotency and safety hints, so the description needs less behavioral disclosure. It adds worthwhile context: the chunk-embed-store processing stages, source-type limitation, and required authentication environment variables. It does not go into failure modes or error behavior, but the bar is lowered by the annotations.

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?

The description is compact and front-loads the core action. Each sentence adds a distinct type of information: operation, idempotency, source scope, and prerequisites. It is slightly terse, but not bloated.

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?

For a two-parameter tool with an output schema and helpful annotations, the description covers key constraints and auth needs. Still, the meaning of 'id' is left unexplained, and the relationship to the 'source' parameter is only implied, leaving a notable gap for an agent preparing a correct call.

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 coverage is only 50%, and the description does not explain how 'id' and 'source' map to the action beyond saying 'a text.' The schema's source description is helpful, but the id parameter has no description anywhere, and the tool description does not compensate for that gap.

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?

The description names a specific pipeline ('Chunk, embed, and store a text') and a concrete resource (vector database), which clearly separates it from the sibling tools like library_read or library_search. The title reinforces the resource, and the 'Full-text sources only' constraint adds precision.

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?

The description gives clear preconditions ('Full-text sources only', required API keys) that tell an agent when it is allowed to use the tool. However, it does not explicitly explain when to prefer this over a sibling like library_index, and no alternatives are named.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/The-40-Thieves/alexandria-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server