Skip to main content
Glama

palace_ingest_document

Ingest a raw scientific document into the Cold Lab Notebook, returning chunk IDs and short previews for grounded claim extraction.

Instructions

Ingest a raw scientific document into the Cold Lab Notebook, returning chunk IDs and 180-char chunk previews for grounded claim extraction.

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": {
      "doc_id": "<doc_id>",
      "title": "<title>",
      "text": "<text>"
    },
    "name": "palace_ingest_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesFull verbatim document text.
titleYesDocument title.
doc_idYesUnique document identifier.
sourceNoOptional source or venue.
chunk_wordsNo
overlap_wordsNo
published_yearNoOptional publication year.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose the return shape (chunk IDs plus 180-char previews) — valuable since there is no output schema. It is silent on the mutation semantics that matter most here: whether re-ingesting the same doc_id overwrites, duplicates, or errors, and whether the source text is stored verbatim and immutably.

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?

A single front-loaded sentence that states action, destination, and return value with no filler. Nothing is repeated or padded.

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?

It sensibly compensates for the absent output schema by naming the return values, which is the right instinct for a 7-parameter mutation tool. Yet with no annotations and two undocumented chunking parameters, it leaves an agent guessing about idempotency, size limits, and failure modes before committing a large document.

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 71%, below the point where the schema alone suffices; chunk_words and overlap_words have no description text. The mention of chunk IDs and 180-char previews implies chunking, but the description never explains what chunk_words/overlap_words control or how chunk size affects the returned previews, so it adds little beyond the schema.

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?

Specific verb + resource + destination: 'Ingest a raw scientific document into the Cold Lab Notebook', plus what it returns. It clearly reads as a write/chunking entry point and is distinguishable from palace_propose_claim or palace_query by resource, though it never explicitly contrasts itself with siblings like palace_remember.

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 phrase 'for grounded claim extraction' implies this is the upstream step before proposing claims, which gives an agent an implicit pipeline position. However, there is no explicit when-to-use/when-not guidance, no statement of prerequisites (e.g., doc_id uniqueness expectations), and no named alternative such as palace_remember for non-document memory.

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