Skip to main content
Glama

WritersLogic research agents

arxiv-to-code

arXiv-to-Production Code & Hyperparameter Compiler — Fetches an arXiv paper's full text (ar5iv), selects method, pseudocode, hyperparameter tables and ablations, and returns a core-algorithm summary, hyperparameters each with a source pointer and a verbatim quote verified against the text, ablation warnings with evidence sentences, and one self-contained TypeScript or Python file that is compile/syntax-checked and literal-checked against the extract

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": {
      "targetLanguage": "<targetLanguage>"
    },
    "name": "arxiv-to-code"
  }
}

Input Schema

NameRequiredDescriptionDefault
arxivIdNoarXiv id or URL, e.g. 1706.03762 or https://arxiv.org/abs/1706.03762.
searchQueryNoTitle or keywords; the top arXiv hit is used. Provide exactly one of arxivId or searchQuery.
targetLanguageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the retrieval source (ar5iv), that hyperparameters come with source pointers and verbatim quotes verified against the text, that ablation warnings carry evidence sentences, and that the emitted file is compile/syntax-checked and literal-checked. It stops short of failure behavior — what happens when the paper is unretrievable, has no extractable method, or the generated file fails checks — and says nothing about cost or latency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Length is defensible for the amount of pipeline detail conveyed, and the output artifacts are front-loaded after the title phrase. However, it is delivered as one long em-dash-chained sentence, which makes the four returned artifact types harder to scan than a short bulleted or clause-separated structure would.

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 3-parameter tool with no output schema and no annotations, the description thoroughly characterizes the return payload (summary, sourced hyperparameters, ablation warnings, one checked file), which compensates for the absent output schema. The remaining gap is behavioral edges — failure modes and how the single-file output is bounded in size or scope.

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 coverage is 67%, so the schema already explains arxivId formats and the arxivId-or-searchQuery exclusivity. The description adds no parameter-level meaning of its own; 'TypeScript or Python' merely restates the targetLanguage enum without saying how language choice affects the extraction or check pipeline.

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 chain: fetch an arXiv paper's full text via ar5iv, extract method/pseudocode/hyperparameters/ablations, and emit a checked source file. The output artifacts (quote-verified hyperparameters, ablation warnings, one self-contained file) make it unmistakable versus generic siblings like doc-to-markdown or chat-* tools.

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?

Usage is implied by the name and by the 'arXiv-to-Production Code' framing, but there is no explicit when-to-use, when-not-to-use, or named alternative. The only routing rule (exactly one of arxivId or searchQuery) lives in the schema, not in guidance about which tool to pick for a paper-to-code task.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources