Skip to main content
Glama
wuruiqi

academic-workflow-mcp

by wuruiqi

workflow_import_pdfs

Extract real titles from PDFs and import into Zotero. Smart deduplication attaches PDFs to existing metadata entries to prevent duplicates.

Instructions

Import PDF files into Zotero with automatic title extraction and smart deduplication.

Improvements over zotero-mcp's zotero_add_from_file:

  1. Extracts the real title from the PDF (metadata field, then largest-font first-page text) instead of using the filename stem.

  2. Detects title mismatches between the filename and the PDF content — useful for catching mislabeled downloads (e.g. wrong paper saved under a different name).

  3. Smart deduplication:

    • If an identical file already has a PDF in Zotero → skip.

    • If a matching metadata-only entry exists (no PDF yet) → attach PDF to it rather than creating a duplicate parent item.

  4. Copies the PDF into /storage// so Zotero can open it immediately without any manual "Locate File" step.

Args: pdf_paths: List of absolute file paths to PDFs. collection: Zotero collection name (exact, case-sensitive). Leave empty for library root. item_type: Zotero item type for new parent items. Default "preprint". Other values: "journalArticle", "conferencePaper".

Returns: { "imported": [ {item_key, attachment_key, title, title_source, filename_stem, title_mismatch, attached_to_existing, storage_copied, path} ], "skipped": [ {path, item_key, title, reason} ], "failed": [ {path, error} ], "warnings": [ {path, filename_stem, extracted_title, title_source, message} ], # title mismatches needing user review "count": int, # newly imported (excludes skipped) }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
item_typeNopreprint
pdf_pathsYes
collectionNo
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explains the title extraction method (metadata then largest-font text), deduplication logic (skip identical file, attach to existing metadata-only entry), and storage copying behavior. It does not cover error handling or rate limits, but the provided details are substantial and clear.

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?

The description is well-structured with numbered improvements, Args, and Returns sections. It front-loads the main purpose and key features. While slightly lengthy, every part contributes value and the organization helps readability.

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

Completeness4/5

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

Given 0% schema coverage and no output schema, the description provides a detailed return structure and explains all parameters. It covers the core behavior (title extraction, deduplication, storage) and return value fields. Missing details like error handling for invalid paths are minor; overall, it is fairly complete.

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 0%, so the description must compensate. It does so by listing parameters in the Args section with context: pdf_paths (absolute paths), collection (exact case-sensitive, empty for root), and item_type (default 'preprint', with example values). This adds meaning beyond the schema's type and default fields.

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?

The description clearly states it imports PDFs into Zotero with automatic title extraction and smart deduplication. It distinguishes itself from a related tool (zotero_add_from_file) by listing specific improvements, and sibling tool names indicate different workflows, making its unique purpose unambiguous.

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 description provides a clear context for when to use the tool (importing PDFs) and mentions improvements over zotero_add_from_file, but it does not explicitly guide the agent on when not to use it or how it compares to sibling tools like workflow_get_paper or workflow_find_duplicates. The usage guidelines are implied rather than explicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wuruiqi/academic-workflow-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server