Skip to main content
Glama

ApriFile

Open a signed P7M file

read_signed_file
Read-onlyIdempotent

Opens an Italian digitally signed file (.p7m, CAdES, including .pdf.p7m and .xml.p7m) and returns who signed it, when, the certificate issuer and validity dates, whether the signature still matches the content, and the document inside: text of a PDF, or a full summary if it is a FatturaPA invoice. Use when the user shares or asks about a .p7m file. The signature check is informational and is not a legal validation. Files up to 10 MB.

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": "read_signed_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoA file the user attached in the chat.
content_base64NoThe .p7m file encoded in base64, when the file cannot be attached directly.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds real value beyond them: it declares the 10 MB size ceiling and explicitly warns the signature check is informational, not legal validation—an important expectation-setting detail an agent would otherwise misreport.

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 verb and scope, then a compact return-value list, then use condition and caveats—logical ordering with no filler. The enumeration of return fields is dense but each item earns its place given there is no output schema.

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 and only two parameters, the description carries the return-value burden and does so thoroughly (signer, timestamps, issuer, validity, match status, extracted content). Combined with the size limit and the legal-validation caveat, an agent has what it needs; only failure modes for unsupported or oversized files are unstated.

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 nested file object is fully described in the schema, so the description correctly does not repeat field-level detail. Its only added constraint is the 10 MB file limit, which is useful but not tied to either parameter by name, so it sits at the baseline.

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 ("Opens") and a precisely bounded resource (Italian CAdES .p7m, including .pdf.p7m and .xml.p7m), and enumerates what it returns (signer, timestamp, issuer, validity, match status, embedded document). This is specific enough that an agent can recognize a .p7m request without consulting the schema or siblings.

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?

Gives a clear trigger: "Use when the user shares or asks about a .p7m file." It also implies scope boundaries via the format list and the informational-not-legal caveat, but it names no alternative for adjacent cases (e.g., unsigned PDFs or non-.p7m invoices), so routing against siblings like summarize_einvoice is left to inference.

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