Skip to main content
Glama

Researchzy

Create PDF upload

create_pdf_upload
Idempotent

Get a short-lived signed URL that adds a PDF file to a library paper that has no PDF yet (hasReadablePdf false), selected by paperId. Uploading is a separate step for the host: PUT the file to uploadUrl before expiresAt with Content-Type application/pdf and without Researchzy credentials. The file must be a PDF of at most maxSizeBytes. The PUT response has paperId, hasReadablePdf, readerUrl, sizeBytes and fileHashSha256; it fails with the same error codes as this tool. A paper's PDF is never replaced: a paper that has one, from the index or an earlier upload, is refused with OPERATION_NOT_ALLOWED. The paper's metadata stays as it is. Call only when the user asks to add a PDF to a paper. Requires a connected Researchzy account and library.write.

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": {
      "paperId": "<paperId>"
    },
    "name": "create_pdf_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
paperIdYesA paperId of a paper in the user's library without a PDF, from list_library_papers, get_paper or add_paper_to_library.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Despite annotations already covering the safety profile, the description adds substantial detail beyond them: the URL is short-lived with an expiresAt deadline, the upload is a separate PUT the host performs without Researchzy credentials, a required Content-Type, a maxSizeBytes cap, and the shape of the PUT response including its error codes. It also discloses two non-obvious invariants – a PDF is never replaced and the paper's metadata is untouched.

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 core action and its scope lead the description, followed by the upload mechanics and then the failure conditions, so it is well front-loaded. It is dense rather than padded, though the middle passage on the PUT response could be tightened slightly.

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

Completeness5/5

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

For a two-step signed-URL flow this is complete: the agent learns the call's output, the follow-up PUT, header and size requirements, the response fields, and the error semantics. An output schema exists, and the description still supplies the cross-call contract that the schema alone cannot convey.

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 100% and the single paperId parameter is already fully documented, including where to obtain it. The description only restates 'selected by paperId' and adds the hasReadablePdf precondition, so it does not meaningfully extend 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 states a specific verb and resource ('Get a short-lived signed URL that adds a PDF file to a library paper') and narrows the target with a precondition (hasReadablePdf false, selected by paperId). An agent can tell exactly what the tool returns and when it applies without consulting the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit when-to-use rule ('Call only when the user asks to add a PDF to a paper') and a hard exclusion (a paper that already has a PDF is refused with OPERATION_NOT_ALLOWED). It does not name any sibling tool as an alternative path, which keeps it just short of a 5.

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