Skip to main content
Glama
academic-tools-mcp

academic-tools-mcp

get_paper_code

Read-onlyIdempotent

Retrieve linked code repositories, project pages, and Hugging Face models, datasets, and spaces for a paper on Papers with Code using its arXiv ID or other identifier.

Instructions

Get linked code repositories, project pages, and Hugging Face artifacts on Papers with Code.

Returns arxiv_id, pwc_url, has_official_implementation, repository_count, repositories (official first, then by stars), repositories_truncated, project_pages, hf_models, hf_datasets, hf_spaces, and hf_artifact_counts. Shares one cached record with get_paper_catalog (calling both costs one request).

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

Input Schema

NameRequiredDescriptionDefault
identifierYesarXiv ID (bare, arXiv:, or URL), or a DOI/PMID/PMCID/OpenAlex work ID resolved to arXiv via OpenAlex.
force_refreshNoBypass the local cache and re-fetch from upstream.
max_repositoriesNoRepositories to return, official first, then by stars.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2026.11.21

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint), so the description does not need to restate them. It goes beyond by disclosing cache-sharing behavior, repository ordering (official first, then by stars), and the existence of a truncation flag — real operational context an agent would otherwise have to discover.

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 purpose sentence is front-loaded and the cache note is placed last where it belongs as a secondary tip. The long enumeration of return fields is dense and partly redundant with the output schema, which keeps it from a 5, but it is well organized and free of filler.

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?

For a read-only lookup with full schema coverage and an output schema, the definition covers purpose, semantics of the result set, and caching economics well enough to call correctly. The only gap is guidance on when this tool is the right choice versus its many paper-related siblings.

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 description coverage is 100%, so the parameters (identifier formats, force_refresh, max_repositories) are already well documented in the schema, which sets the baseline at 3. The description's ordering note ('official first, then by stars') lightly reinforces what max_repositories selects but adds no syntax or format detail beyond the schema.

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 opens with a specific verb and resource set: linked code repositories, project pages, and Hugging Face artifacts on Papers with Code. It is immediately distinguishable from siblings like get_paper_metadata or get_paper_bibtex, which cover different facets of a paper.

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 only usage guidance is the caching note that calling this together with get_paper_catalog costs a single request, which usefully implies pairing the two. There is no explicit statement of when to prefer this tool over alternatives such as get_paper_catalog, nor any exclusions or prerequisites.

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