Skip to main content
Glama

snapshot_papers

Save a named PubMed/preprint query and flag new papers since its last run; first run sets a baseline. Reuse the same name to track what changed.

Instructions

Snapshot a paper query (PubMed + optional preprints) and return papers new since the previous snapshot. Network call + local write: stores a new run under name in the local DB (BIOCATALYSTFEED_DB) and returns {run_id, baseline, records, changes, changes_detail}; the first call for a name is a baseline with no changes. Use search_papers for one-off lookups (no write) and paper_changes_since to re-read stored changes later.

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

Input Schema

NameRequiredDescriptionDefault
drugNoDrug names or codes, OR'd.
nameYesWatch name: a label you choose for this saved query. Reuse the same name to diff against its previous snapshot.
sinceNoPublication date from (YYYY-MM-DD).
keywordNoRaw query syntax for PubMed / Europe PMC.
affiliationNoAuthor affiliation phrases, OR'd (e.g. 'Viking Therapeutics').
preprint_daysNoLook back this many days for bioRxiv/medRxiv preprints; 0 skips preprints.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.4.1
    • addedInput schema / properties / affiliation / description
      Added value: +"Author affiliation phrases, OR'd (e.g. 'Viking Therapeutics')."
    • addedInput schema / properties / drug / description
      Added value: +"Drug names or codes, OR'd."
    • addedInput schema / properties / keyword / description
      Added value: +"Raw query syntax for PubMed / Europe PMC."
    • addedInput schema / properties / name / description
      Added value: +"Watch name: a label you choose for this saved query. Reuse the same name to diff against its previous snapshot."
    • addedInput schema / properties / preprint_days / description
      Added value: +"Look back this many days for bioRxiv/medRxiv preprints; 0 skips preprints."
    • addedInput schema / properties / since / description
      Added value: +"Publication date from (YYYY-MM-DD)."
  2. First observedv0.3.1

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that this is both a network call and a local write, where the run is stored (local DB BIOCATALYSTFEED_DB), and the exact return envelope {run_id, baseline, records, changes, changes_detail}. The baseline-on-first-call semantics is behavior an agent could not infer from readOnlyHint=false and openWorldHint=true alone.

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-loads the action and the diff semantics before secondary details, and the alternative-tool routing sits at the end where it belongs. The single dense sentence packing return keys is justified because no output schema exists, though it could be split for readability.

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?

With no output schema, the description compensates by naming the return keys and explaining the baseline case, and the write target is disclosed for a mutation tool. Combined with annotations covering safety hints, nothing an agent needs to call this correctly is missing.

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 every parameter already carries a description; the tool description only reinforces `name` as the diff key, which the schema states verbatim. It adds little new meaning about how drug/keyword/affiliation filters interact or how `since` behaves across snapshots, so baseline 3 applies.

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 (snapshot), resource (a paper query over PubMed + optional preprints), and the differentiating behavior (returns papers new since the previous snapshot). It names the two siblings it is not — search_papers and paper_changes_since — so an agent can separate it from them without opening schemas.

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?

Explicitly routes the agent: use search_papers for one-off lookups with no write, and paper_changes_since to re-read stored changes later. It also tells the agent that the first call for a name is a baseline returning no changes, which is the key decision point for first-time invocation.

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