Skip to main content
Glama

Check PDF signatures

verify_pdf_signature
Read-onlyIdempotent

Checks every digital signature in a PDF: who signed, when, whether the document changed after signing, and whether the certificate is trusted. Returns a report. The file is not changed. Always pass the person's own file exactly as they gave it. If you cannot pass it, call get_upload_link or ask for an https link to it. Never create, rewrite, summarise or rebuild a document to stand in for theirs.

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": {
      "file": "<file>"
    },
    "name": "verify_pdf_signature"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesOne file: file_id, url or base64. Always pass the person's own file exactly as they gave it. If you cannot pass it, call get_upload_link or ask for an https link to it. Never create, rewrite, summarise or rebuild a document to stand in for theirs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / file / description
      Previous value: -"One file: file_id, url or base64."New value: +"One file: file_id, url or base64. Always pass the person's own file exactly as they gave it. If you cannot pass it, call get_upload_link or ask for an https link to it. Never create, rewrite, summarise or rebuild a document to stand in for theirs."
    • changedInput schema / properties / file / properties / file_id / description
      Previous value: -"A file id from an earlier upload, or the id of a file attached in the chat."New value: +"A file id from an earlier upload, the upload_id from get_upload_link once the person says it is done, or the id of a file attached in the chat."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and idempotentHint=true, so the safety profile is covered. The description nevertheless adds a genuine behavioral rule beyond them: the file must be byte-for-byte the user's original and must not be regenerated, which constrains how the agent obtains input. It falls short of 5 because "Returns a report" gives no sense of the report's structure or failure modes.

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 outcome, then the constraint, then the fallback path — a sensible order. Minor waste: "Returns a report" is a vague filler sentence, and the file-integrity instruction is duplicated between the top-level description and the nested schema description.

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?

With no output schema, the description is the only source for return values, and "Returns a report" is too thin to tell the agent what it will get back or how to report an untrusted signature. Everything else an agent needs to call the tool correctly — input sourcing, integrity constraint, read-only nature — is present.

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%, and each of the five nested file fields (url, name, base64, file_id, download_url) carries its own size limits and sourcing explanation. The prose in the description largely restates the nested schema's own description verbatim rather than clarifying precedence or mutual exclusivity, so baseline 3 applies.

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 ("Checks every digital signature in a PDF") and enumerates the four things it reports: signer identity, signing time, post-signing modification, and certificate trust. That combination is unmistakably distinct from the PDF-manipulation siblings like compress_pdf or redact_pdf, so an agent can route without opening 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 Guidelines5/5

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

Gives an explicit conditional branch: pass the person's own file exactly as given; if you cannot, call get_upload_link or request an https link. It also states a firm exclusion ("Never create, rewrite, summarise or rebuild a document to stand in for theirs"), naming the alternative tool directly.

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