papergraph-mcp
v1.2.3Turn mathematical LaTeX papers into theorem dependency graphs for AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_environment_diagnostics
Return PaperGraph version and reproducible launch diagnostics.
validate_arxiv_input
Normalize arXiv ID and URL inputs and return the safe next action.
| Parameter | Type | Description |
|---|---|---|
text_id | ||
url |
validate_arxiv_request
Validate a raw user arXiv request and return the safe next action.
| Parameter | Type | Description |
|---|---|---|
input * | string |
open_workspace
Open or initialize a persistent multi-paper workspace.
| Parameter | Type | Description |
|---|---|---|
path * | string |
workspace_add_local_paper
Add or replace a local LaTeX project in the active workspace.
| Parameter | Type | Description |
|---|---|---|
paper_id * | string | |
path * | string |
workspace_add_arxiv_paper
Add or replace an arXiv LaTeX project in the active workspace.
| Parameter | Type | Description |
|---|---|---|
arxiv_id * | string | |
main_file | ||
refresh | boolean |
workspace_add_pdf_paper
Add or replace a born-digital PDF paper in the active workspace.
| Parameter | Type | Description |
|---|---|---|
paper_id * | string | |
path * | string |
discover_doi_paper
Find exact DOI metadata and public body candidates; never download links.
| Parameter | Type | Description |
|---|---|---|
doi * | string |
workspace_import_doi_candidate
Import a selected root DOI PDF only after explicit review/confirmation. This is not permission to download newly discovered external references. Candidate provider identity is evidence, not a verification of PDF contents.
| Parameter | Type | Description |
|---|---|---|
candidate_id * | string | |
doi * | string | |
confirmed | boolean |
workspace_add_doi_paper
Load a user-requested root DOI when one public PDF candidate is eligible. Multiple candidates require user selection. Do not use for newly discovered external references: those require an import plan and review first.
| Parameter | Type | Description |
|---|---|---|
doi * | string |
workspace_list_papers
List all papers stored in the active workspace.
workspace_get_paper
Return metadata and counts for one stored paper.
| Parameter | Type | Description |
|---|---|---|
paper_id * | string |
workspace_search_theorems
Search theorem titles and bodies across the active workspace.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
kind | ||
limit | integer | |
paper_id |
workspace_get_dependencies
Return dependencies of a globally identified stored theorem.
| Parameter | Type | Description |
|---|---|---|
global_theorem_id * | string | |
recursive | boolean |
workspace_get_dependency_diagnostics
Explain how workspace dependencies were extracted for one theorem.
| Parameter | Type | Description |
|---|---|---|
global_theorem_id * | string | |
recursive | boolean |
workspace_get_citations
Return incoming or outgoing citation evidence for a stored paper.
| Parameter | Type | Description |
|---|---|---|
paper_id * | string | |
direction | string | |
include_unresolved | boolean |
workspace_list_results
List a stable result page (limit 1..100). Advance offset by returned count. A full page may be truncated; continue until a page has fewer than limit results. This is not an unbounded complete list.
| Parameter | Type | Description |
|---|---|---|
kind | ||
limit | integer | |
offset | integer | |
paper_id |
workspace_get_result
Return one stored evidence result with source spans.
| Parameter | Type | Description |
|---|---|---|
result_id * | string |
workspace_get_result_proof
Return proof evidence for one stored evidence result.
| Parameter | Type | Description |
|---|---|---|
result_id * | string |
workspace_get_proof_dependencies
Return proof dependency evidence for one stored evidence result.
| Parameter | Type | Description |
|---|---|---|
result_id * | string | |
recursive | boolean |
workspace_get_external_result_mentions
Return external result mentions from a result's proof evidence.
| Parameter | Type | Description |
|---|---|---|
result_id * | string |
workspace_get_evidence
Return metadata and source spans for one evidence node or edge.
| Parameter | Type | Description |
|---|---|---|
node_or_edge_id * | string |
workspace_export_reading_bundle
Export a paper-level evidence bundle for paper-reading consumers.
| Parameter | Type | Description |
|---|---|---|
paper_id * | string |
workspace_export_result_reading_context
Export focused evidence context for reading one result's proof.
| Parameter | Type | Description |
|---|---|---|
result_id * | string |
workspace_get_source_slice
Return bounded source text around one span, result, or proof.
| Parameter | Type | Description |
|---|---|---|
context | integer | |
proof_id | ||
result_id | ||
span_id |
workspace_read_source_blocks
Read raw source blocks from a slice locator; follow next until null. Blocks are source text, with no inferred proof ownership. Works for legacy imports without changing reading data. A changed extraction needs new locators.
| Parameter | Type | Description |
|---|---|---|
span_id * | string | |
limit | integer |
workspace_get_result_reading_path
Return deterministic local reading paths for one result.
| Parameter | Type | Description |
|---|---|---|
result_id * | string | |
recursive | boolean |
workspace_get_dependency_reading
List main-result candidates or read a user-selected target with evidence. Statement references and proof-local dependencies remain separate. External references produce reviewable plans only; empty evidence is not independence.
| Parameter | Type | Description |
|---|---|---|
paper_id * | string | |
detail | string | |
max_candidates | integer | |
recursive | boolean | |
target_result_id |
workspace_create_reading_session
Create a persistent reading session in the active workspace.
| Parameter | Type | Description |
|---|---|---|
paper_id * | string | |
label | ||
target_result_id |
workspace_list_reading_sessions
List persistent reading sessions in the active workspace.
| Parameter | Type | Description |
|---|---|---|
paper_id | ||
status |
workspace_get_reading_session
Return one persistent reading session with checkpoints and notes.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
workspace_record_reading_checkpoint
Create or update a reading checkpoint in the active workspace.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
status * | string | |
target_id * | string | |
target_kind * | string | |
evidence | ||
summary | string |
workspace_add_reading_note
Add a note or question to a reading session.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
text * | string | |
note_type | string | |
target_id | ||
target_kind |
workspace_export_reading_session_summary
Export a deterministic recovery summary for a reading session.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
workspace_create_reading_queue
Create a persistent reading queue for one stored result.
| Parameter | Type | Description |
|---|---|---|
result_id * | string | |
label | ||
recursive | boolean |
workspace_list_reading_queues
List persistent reading queues in the active workspace.
| Parameter | Type | Description |
|---|---|---|
paper_id | ||
status |
workspace_get_reading_queue
Return one persistent reading queue with ordered items.
| Parameter | Type | Description |
|---|---|---|
queue_id * | string |
workspace_apply_reading_queue_to_session
Apply reading queue items as checkpoints in a reading session.
| Parameter | Type | Description |
|---|---|---|
queue_id * | string | |
session_id * | string | |
status | string |
workspace_plan_external_imports_for_result
Plan external arXiv imports for one result's reading path.
| Parameter | Type | Description |
|---|---|---|
result_id * | string | |
recursive | boolean |
workspace_plan_external_imports_for_queue
Plan external arXiv imports referenced by one reading queue.
| Parameter | Type | Description |
|---|---|---|
queue_id * | string |
workspace_plan_external_imports_for_paper
Plan external arXiv imports visible in one stored paper.
| Parameter | Type | Description |
|---|---|---|
paper_id * | string |
workspace_resolve_external_reference
Resolve a blocked external reference to a user-confirmed target.
| Parameter | Type | Description |
|---|---|---|
blocked_id * | string | |
paper_id * | string | |
target * | object | |
artifact_dir | ||
import_target | boolean |
workspace_list_external_reference_resolutions
List recorded external reference resolutions and selection provenance.
| Parameter | Type | Description |
|---|---|---|
paper_id |
workspace_search_external_reference
Search scholarly metadata providers for a blocked external reference.
| Parameter | Type | Description |
|---|---|---|
blocked_id * | string | |
paper_id * | string | |
max_candidates | integer | |
providers | ||
refresh | boolean | |
resolver_version | string |
workspace_list_external_reference_searches
List scholarly reference search runs and candidates.
| Parameter | Type | Description |
|---|---|---|
blocked_id | ||
paper_id |
workspace_resolve_external_reference_candidate
Apply a searched candidate as an explicit reference resolution.
| Parameter | Type | Description |
|---|---|---|
blocked_id * | string | |
candidate_id * | string | |
paper_id * | string | |
artifact_dir | ||
import_target | boolean | |
overwrite | boolean |
workspace_get_paper_map
Return an evidence-first first-load map for one stored paper.
| Parameter | Type | Description |
|---|---|---|
paper_id * | string | |
max_candidates | integer |
workspace_export_paper_reading_report
Export a deterministic Markdown reading report for one stored paper.
| Parameter | Type | Description |
|---|---|---|
paper_id * | string | |
max_candidates | integer |
workspace_export_cross_paper_reading_plan
Export a deterministic Markdown reading plan for selected papers.
| Parameter | Type | Description |
|---|---|---|
paper_ids * | array | |
focus | ||
max_candidates_per_paper | integer |
workspace_plan_starter_project
Plan a Workspace Starter run without writing files.
| Parameter | Type | Description |
|---|---|---|
artifact_dir * | ||
papers * | array | |
workspace_path * | string | |
create_queue | boolean | |
create_session | boolean | |
focus | ||
max_candidates | integer | |
project_title | ||
target_result_id |
workspace_bootstrap_reading_project
Create starter artifacts for a first reading project.
| Parameter | Type | Description |
|---|---|---|
artifact_dir * | string | |
papers * | array | |
workspace_path * | string | |
create_queue | boolean | |
create_session | boolean | |
focus | ||
max_candidates | integer | |
project_title | ||
target_result_id |
load_paper
Load a local LaTeX paper and build its theorem graph.
| Parameter | Type | Description |
|---|---|---|
path * | string |
load_arxiv_paper
Download an arXiv source project and build its theorem graph.
| Parameter | Type | Description |
|---|---|---|
arxiv_id * | string | |
main_file | ||
refresh | boolean |
load_arxiv_request
Validate a raw arXiv request, then load it only if unambiguous.
| Parameter | Type | Description |
|---|---|---|
input * | string | |
main_file | ||
refresh | boolean |
list_theorems
List theorem-like environments in the currently loaded paper.
| Parameter | Type | Description |
|---|---|---|
kind |
get_theorem
Return the full text and metadata for one theorem-like node.
| Parameter | Type | Description |
|---|---|---|
theorem_id * | string |
get_dependencies
Return theorem-like nodes referenced by the given theorem.
| Parameter | Type | Description |
|---|---|---|
theorem_id * | string | |
recursive | boolean |
get_dependency_diagnostics
Explain how dependencies were extracted for one theorem-like node.
| Parameter | Type | Description |
|---|---|---|
theorem_id * | string | |
recursive | boolean |
where_used
Return theorem-like nodes that reference the given theorem.
| Parameter | Type | Description |
|---|---|---|
theorem_id * | string |
workspace_create_reference_expansion
Save an approved finite expansion policy. Creation does not search or import.
| Parameter | Type | Description |
|---|---|---|
root_paper_ids * | array | |
policy |
workspace_advance_reference_expansion
Execute the saved policy: search, download arXiv sources, import unique strong candidates and record resolutions without per-paper prompts, within approved budgets. Resume with the same run ID.
| Parameter | Type | Description |
|---|---|---|
run_id * | string | |
max_steps | integer | |
time_budget_seconds | integer |
workspace_get_reference_expansion
Read saved graph, counts, decisions and continuation actions without network.
| Parameter | Type | Description |
|---|---|---|
run_id * | string |
workspace_list_reference_expansions
List saved expansion summaries, optionally filtered by state.
| Parameter | Type | Description |
|---|---|---|
state |
workspace_decide_reference_expansion
Record exactly one candidate_id, target, existing_paper_id, skip:true or retry:true. Advance separately to execute the approved choice.
| Parameter | Type | Description |
|---|---|---|
decision * | object | |
edge_id * | string | |
run_id * | string |
workspace_update_reference_expansion_policy
Explicitly revise numeric budgets; cumulative usage is retained.
| Parameter | Type | Description |
|---|---|---|
limits * | object | |
run_id * | string |
workspace_pause_reference_expansion
Pause scheduling after the active step. Advance explicitly to resume.
| Parameter | Type | Description |
|---|---|---|
run_id * | string |
workspace_cancel_reference_expansion
Permanently stop this run, preserving imported papers and history.
| Parameter | Type | Description |
|---|---|---|
run_id * | string |
workspace_export_reference_expansion
Return saved JSON or Markdown without writing client files or using network.
| Parameter | Type | Description |
|---|---|---|
run_id * | string | |
format | string |