Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PMC_PDF_EXECUTABLE_PATHNoDirect path to system Chrome/Edge executable, skipping Chromium download.
PLAYWRIGHT_BROWSERS_PATHNoCustom directory for Playwright browsers to install or find Chromium.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
lookup_pmcidA

通过 NCBI elink API 查询 PMID 对应的 PMCID。

Args:
    pmid: PubMed ID(如 "42534757")
Returns:
    PMCID(如 "PMC7440785");若文章未在 PMC 开放获取则返回空字符串
download_single_pdfA

下载单个 PMC 文章的 PDF。已存在文件会自动跳过。

Args:
    pmcid: PMCID(如 "PMC7440785")
    output_dir: PDF 保存目录的绝对路径
    pmid: 可选 PMID,用于文件名前缀(默认空)
Returns:
    成功返回 "OK: <bytes> bytes",失败返回 "FAIL: <error>"
batch_download_pdfsA

批量下载 PMC PDF。自动跳过已存在的文件,失败自动重试 1 次。

Args:
    input_file: 输入文件路径。CSV 需含 PMID+PMCID 两列;TXT 每行一个 PMID(会自动查询 PMCID)
    output_dir: PDF 保存目录的绝对路径
    mode: "csv" 或 "txt",默认 "csv"
    num_workers: 并行下载线程数,默认 2
Returns:
    汇总信息字符串,如 "完成: 成功 2400, 失败 36, 报告: <path>"
get_download_reportA

读取指定目录下的 download_report.txt 下载报告内容。

Args:
    output_dir: 之前批量下载时指定的输出目录
Returns:
    报告文件全文。若文件不存在返回 "报告不存在"

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.3/5.0

Scored across 4 tools

Disambiguation5/5

Each tool handles a distinct stage of the PDF download workflow: identifier lookup, single download, batch download, and report retrieval. There is no functional overlap between them, so an agent can clearly select the right tool for a given task.

Naming Consistency5/5

All tool names follow a predictable snake_case pattern with action-first naming: lookup_pmcid, download_single_pdf, batch_download_pdfs, get_download_report. The naming clearly communicates both the action and the target, making the set easy to navigate.

Tool Count5/5

Four tools is well-scoped for a focused PDF downloader server. Each tool serves a necessary part of the workflow without unnecessary redundancy or excessive surface area.

Completeness5/5

The tool set covers the full end-to-end workflow: converting PMIDs to PMCIDs, downloading individual PDFs, handling batch downloads with retries, and retrieving a final report. No obvious gaps exist for the stated purpose of downloading PMC PDFs.

Maintenance

ActivityMaintained
ResponsivenessNo issues