Skip to main content
Glama

ingest_source_tool

Ingests PDFs, code files, or web URLs into immutable SHA-8 source folders and rebuilds the full-text search index for traceable research.

Instructions

Ingest a PDF file, code file, or web URL into immutable sources// and rebuild FTS index.

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": {
      "slug": "<slug>",
      "input_ref": "<input_ref>"
    },
    "name": "ingest_source_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
doiNo
slugYes
yearNo
notesNo
titleNo
venueNo
authorsNo
citekeyNo
input_refYes
evidence_tierNoprimary_evidence

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two meaningful traits: content-addressed immutable storage under sources/<sha8>/ and a side effect of rebuilding the FTS index. It omits what happens on duplicate ingest, whether the operation is idempotent or destructive, and any auth or error behavior, which are significant gaps for an unannotated mutation tool.

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 dense sentence that front-loads the action, enumerates accepted inputs, and names the storage destination and index rebuild. Nothing is wasted and nothing is buried.

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

Completeness2/5

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

For a 10-parameter ingestion tool with zero schema documentation and no annotations, the description covers only the high-level action. An agent still cannot determine what to pass for slug, how input_ref is formatted, or what evidence_tier means, and the presence of an output schema does not offset that input-side gap.

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 description coverage is 0% across 10 parameters, so the description must compensate and largely fails: slug, input_ref, citekey, evidence_tier, and the bibliographic fields (doi, year, venue, authors, notes, title) are never explained. The only meaning added is a hint that input_ref accepts a file path or URL, derived from 'PDF file, code file, or web URL'. The critical distinction between the two required parameters (slug vs input_ref) and the allowed values for evidence_tier remain undocumented.

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?

States a specific verb ('Ingest') plus the accepted resource types (PDF file, code file, web URL) and the destination (immutable sources/<sha8>/), so the agent knows exactly what the tool accomplishes. It does not explicitly distinguish itself from siblings like search_sources_tool or propose_patch_tool, but the action is unambiguous on its own.

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 accepted input types imply when to reach for this tool (you have a document, code file, or URL to add), which is implicit usage guidance. There is no explicit when-not, no mention of what to do for sources already ingested, and no routing to alternatives such as search_sources_tool for lookup instead of ingestion.

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