Skip to main content
Glama

Get literature excerpts

knowledge_get
Read-onlyIdempotent

Search the library and return abstracts with matching passages. Excerpts, not whole papers: knowledge_get_full reads a whole one. Three modes: (1) query only → discover documents AND return each one's abstract + relevant chunk excerpts in one call; (2) document_refs only → abstract + first chunks per doc as a table-of-contents glimpse; (3) both → re-rank chunks against the query, scoped to those refs. At least one of query or document_refs is required. In query-discovery mode you may also scope by journal / year_from / year_to (ignored when document_refs is given).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "knowledge_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax documents (only applies when document_refs is omitted, default: 10).
queryNoSearch text. Required when no documents are selected (discovery mode) — finds matching documents. Optional once document_refs are given: include it to rank those documents' chunks by relevance, or omit it to pull each document's abstract + opening chunks. The library is English-language: technical terms and scientific names match best.
journalNoOptional. Restrict the search to ONE journal, by its full name (e.g. "Journal of Cleaner Production"). A distinctive fragment also works ("Cleaner Production"), but a fragment matching several journals is rejected with the candidates listed — never guessed at — so prefer the full name. To compare journals, run one search per journal. Omit to search every document this session can reach — including the user's own uploads and anything else with no journal recorded, which a journal filter would exclude.
year_toNoOptional inclusive upper bound on publication year. Omit for no upper bound.
year_fromNoOptional inclusive lower bound on publication year (e.g. 2020 for "recent"). Omit for no lower bound.
document_refsNoSpecific documents to pull from, as knowledge refs from a recent knowledge_search (e.g. ["k1", "k7"]). Provide these to fetch those exact documents (abstract + chunks) instead of discovering by query — the metadata filters (Scope / years) then no longer apply. Required if query is omitted.
top_k_chunks_per_docNoMax chunks to return per document (default: 3).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description still adds real behavior: excerpts vs. whole papers, re-ranking semantics when both inputs are given, filters silently ignored in refs mode, `limit` applying only in discovery mode, and journal fragments being rejected with candidates rather than guessed at. These are operational traits the agent could not infer from annotations or schema.

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 with the core distinction and then organized as a numbered list of modes, so a skimming agent still lands on the right branch. It is dense and the mode sentences are long, but almost every clause carries a distinct constraint rather than filler.

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

Completeness4/5

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

For a 7-parameter tool with no output schema and genuinely branching behavior, the description covers input combinations, filter applicability, and the shape of what comes back (abstract plus chunk excerpts, or a table-of-contents glimpse). Only minor gaps remain, such as chunk overlap or result ordering when both inputs are supplied.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining cross-parameter semantics the schema cannot express — which parameter dominates in each mode, that `limit` is inert when refs are given, and that `journal`/`year_*` are scoped to discovery only. It does not restate types or bounds, correctly leaving those to the schema.

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?

Opens with a concrete verb+resource ("Search the library and return abstracts with matching passages") and immediately scopes it against the sibling: "Excerpts, not whole papers: `knowledge_get_full` reads a whole one." An agent can distinguish this from knowledge_get_full without opening either schema.

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

Usage Guidelines5/5

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

Enumerates three explicit modes (query-only, document_refs-only, both) with the outcome of each, states the hard precondition ("At least one of `query` or `document_refs` is required"), and flags the interaction rule that journal/year filters are ignored when refs are supplied. That is when-to-use, when-not, and alternatives in one place.

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