Skip to main content
Glama

fh_pubmed_search_articles

Search PubMed with full query syntax, year and sort filters, returning structured rows with PMID, title, author, year, journal, publication types, free full-text PMCID, and library status.

Instructions

Search PubMed with its own query syntax (AND / OR, field tags like [pt], [ti], [mesh]); sort relevance | newest; years "2020-2026". Faster and far smaller than asking PubMed: the total and up to 100 rows as arrays in columns order — PMID, title, first author, year, journal, publication types, PMCID when free full text exists, and the library level when the paper is already stored. The same search is answered from disk for 7 days. For a batch of PMIDs: fh_pubmed_fetch_articles; for abstract or full text: fh_library_read.

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

Input Schema

NameRequiredDescriptionDefault
sortNorelevance (PubMed's ranking) or newest (publication date, latest first).relevance
queryYesPubMed query, full syntax: "tadalafil AND (systematic review[pt] OR meta-analysis[pt])".
yearsNoPublication years: "2020-2026", "2022-", "-2019" or "2022".
max_resultsNoRows to return (1–100).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.17

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does most of it: it discloses the return shape (total plus up to 100 rows as arrays in a fixed column order), enumerates the columns, notes the PMCID-only-when-free caveat and the library level field, and states the 7-day disk cache. It does not cover error behavior, rate limits, or authentication needs, which keeps it from a 5 given zero annotation coverage.

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 verb and syntax, then capability, then alternatives — a sensible order with no filler sentences. The return-column enumeration is long but each item earns its place given there is no output schema.

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?

No output schema exists, and the description compensates by specifying the return payload precisely: total count, row cap, array-of-arrays layout, and each column in order. Combined with explicit sibling routing and cache behavior, an agent has everything needed to call this correctly.

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, but the description adds meaning beyond the schema by illustrating field-tag syntax ([pt], [ti], [mesh]) and the year range form alongside the sort modes. The additions are modest but genuinely reduce the chance of a malformed query string.

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 and resource ("Search PubMed") with its own query syntax, and explicitly distinguishes the scope from two named siblings: batch PMIDs go to fh_pubmed_fetch_articles, abstract/full text goes to fh_library_read. An agent can route correctly without opening any 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?

Gives explicit conditional routing to alternatives: "For a batch of PMIDs: fh_pubmed_fetch_articles; for abstract or full text: fh_library_read." It also notes caching behavior ("answered from disk for 7 days") that tells the agent repeat queries are cheap, which is a usage-relevant fact rather than a restated parameter.

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