Skip to main content
Glama
Paper Distill MCP Server

Paper Distill MCP Server

by Eclipse-Cj

Ingest Research Context

ingest_research_context

Ingest research context from other AI conversations to extract keywords and inherit insights, using session_id to isolate sessions and prevent context pollution.

Instructions

Ingest research context from other AI conversations for cross-AI context inheritance.

Extracts keywords from the markdown text and appends to interests.jsonl. Use session_id to isolate different chat sessions (prevents context pollution when multiple OpenClaw/AI sessions run concurrently).

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": {
      "markdown_text": "<markdown_text>"
    },
    "name": "ingest_research_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
search_nowNoIf True, also run a paper search using extracted keywords
session_idNoOptional session identifier to isolate contexts (e.g. "openclaw-abc123"). If provided, only this session's interests are used for search_now.
markdown_textYesMarkdown text containing research context (e.g. from another AI's summary)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removedv0.2.2
  3. First observedv0.2.4

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description does real work: it discloses the persistent append to interests.jsonl and that `search_now` triggers a secondary paper search. It does not say whether duplicate keywords are merged, what happens on a malformed session_id, or whether ingesting is idempotent — meaningful gaps for a tool that writes to storage and can fan out into a search.

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?

Short and front-loaded: the purpose sentence comes first, then the storage side effect, then the session-isolation caveat, with no filler. The trailing parenthetical is slightly verbose but justifies the parameter rather than padding.

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?

An output schema exists, so return values need no explanation here, and the description covers both side effects (append and optional search). What keeps it from a higher score is the absence of any annotation coverage coupled with unstated behavior around keyword deduplication and repeated ingestion of the same text — the agent cannot predict whether calling twice corrupts the context store.

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 coverage is 100%, so all three parameters are already documented, including the session_id example and the search_now default. The description adds only the concurrency rationale for session_id (preventing context pollution across parallel sessions), which is useful but marginal; baseline 3 is appropriate.

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?

Names a specific verb and resource ("ingest research context") and adds the concrete mechanism ("extracts keywords from the markdown text and appends to interests.jsonl"), which tells an agent exactly what happens to the input. It is clear on its own, but it never distinguishes itself from the sibling `load_session_context`, so the reader must infer the write-vs-read split.

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?

The intended scenario is explicit: inheriting context produced by another AI's conversation summary, with session_id used to avoid pollution across concurrent sessions. What is missing is any routing guidance — there is no statement of when to prefer this over `load_session_context` or `add_topic`, or what to do when no prior session exists.

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