Skip to main content
Glama

Add reading to knowledge base

ingest_reading_to_kb

Push a saved reading-list item (its title, URL and notes) into the caller's knowledge base so the article becomes searchable via kb_search / search_personal(include_kb). Provide the 'reading_id'; optionally a 'collection_id' — otherwise it lands in (auto-creating) a collection named 'reading'. Reuses the KB ingest pipeline: chunked + embedded with the self-hosted multilingual model, quota-enforced. Refuses with a clear message if the KB embedding service is not configured or the plan limit is exceeded. Runs propose→confirm. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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": {
      "reading_id": "<reading_id>"
    },
    "name": "ingest_reading_to_kb"
  }
}

Input Schema

NameRequiredDescriptionDefault
reading_idYes
collection_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: chunking and embedding with the self-hosted multilingual model, quota enforcement, explicit refusal when the embedding service is unconfigured or the plan limit is hit, and the propose→confirm flow with status='confirmation_required', action_id and plan_token. Nothing contradicts the annotations, which only flag a non-destructive write.

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 and mostly tight, but the propose→confirm behavior is stated twice ('Runs propose→confirm' and the CONFIRMATION sentence), which is slightly redundant though arguably reinforcing.

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?

Given no output schema and a two-parameter write tool, it covers the ingredients, the default behavior, failure modes, quota behavior, and the required confirm_action follow-up. An agent can call it and handle the response correctly without further information.

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

Parameters5/5

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

With 0% schema coverage, the description fully carries parameter meaning: reading_id is required and identifies the saved item; collection_id is optional and defaults to an auto-created collection named 'reading'. That is exactly the missing semantics.

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?

States a specific verb and resource: pushes a saved reading-list item (title, URL, notes) into the caller's knowledge base, and names the downstream effect (searchable via kb_search / search_personal). This clearly separates it from add_reading (saving) and kb_ingest_text/document (generic ingest).

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

Usage Guidelines4/5

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

Explains when to use it (for a saved reading-list item) and points to the discovery path (kb_search, search_personal with include_kb). It does not explicitly state when to prefer kb_ingest_document/text instead, but the reading-item scope is a clear enough selection criterion.

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