Skip to main content
Glama

YouNeedToSign

Prepare a document for signing

prepare_document

Use this when the user wants to sign a document, or have someone else sign it, and you can pass the file: an attached file, an upload_id from create_upload, an HTTPS link to the file, or a small file as base64. Accepts PDF, Word (.docx) or image (PNG/JPG) files up to 25 MB (base64 up to 3 MB). Stores the file on YouNeedToSign and opens a signing view where supported. Anyone with the document's link can open it until it is deleted automatically 72 hours after upload; saving does not extend this. Word files keep their text only. Keep document_id and manage_token for later steps. If you can't pass the file, call get_upload_page_link instead. Do not use for legal advice or to sign on behalf of someone else.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "prepare_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
file_urlNo
file_nameNo
mime_typeNo
upload_idNo
file_base64No

Output Schema

NameRequiredDescriptionDefault
sign_urlYes
file_nameYes
expires_atYes
page_countYes
document_idYes
manage_tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare that this is a non-read-only, non-destructive write; the description goes well beyond them by disclosing persistence on YouNeedToSign, public link access, automatic 72-hour deletion that saving does not extend, and Word text-only degradation. It also tells the agent to retain document_id and manage_token for later steps, which is exactly the kind of state-tracking context annotations cannot express.

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?

Front-loaded with the trigger condition and input options, then constraints, then retention warnings, then the fallback and exclusions — a sensible order with no filler sentences. It is dense and long for a single paragraph, but nearly every clause carries operational information an agent would otherwise guess wrong.

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 mutation tool with six loosely-typed parameters, an output schema present, and no annotation nuance, the description covers inputs, limits, side effects, lifetime, and follow-up handoff (document_id, manage_token). Return-value detail is rightly omitted because an output schema exists, and nothing an agent needs to invoke it correctly is missing.

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 description coverage is 0%, so the description must carry the load, and it does: it explains the four mutually distinct file-passing mechanisms and their size ceilings (25 MB, base64 up to 3 MB), plus the accepted types matching the mime_type enum. It leaves file_name, mime_type as a caller-supplied field, and the one-of exclusivity requirement implicit, so it stops short of full coverage.

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?

Opens with a specific verb+resource ("sign a document, or have someone else sign it") and immediately enumerates the accepted input routes (attachment, upload_id from create_upload, HTTPS link, base64). This clearly separates it from create_upload and get_upload_page_link, which an agent could otherwise confuse with it.

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

Usage Guidelines5/5

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

Gives an explicit trigger condition ("when the user wants to sign a document... and you can pass the file"), an explicit fallback ("If you can't pass the file, call get_upload_page_link instead"), and explicit exclusions ("Do not use for legal advice or to sign on behalf of someone else"). When-to-use, when-not, and the alternative are all named.

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