Skip to main content
Glama

Samuelz® Communications

Eingegangenen PDF-Brief erfassen

intake_physical_mail
Idempotent

Archive an explicitly user-selected incoming PDF letter (max 10 MiB) in the connected tenant. Requires communications:read and separate communications:intake consent. Supply exactly one: pdfFile using the actual ChatGPT attachment/file ID when the host exposes this parameter as a string; the host supplies download_url and file_id (optional mime_type/file_name) to the server, or original bytes as canonical pdfBase64. Never invent bytes, URLs, file IDs or reconstruct a document. A /mnt/data path alone is not a file handle; if the host cannot pass the file, use the existing Brief erfassen UI. Supports HTTPS files.oaiusercontent.com, the signed chatgpt.com/backend-api/estuary/content endpoint bound to the same file ID, and standard public Azure Blob URLs with a bounded, signed read-only single-blob SAS; no arbitrary URL fetch, container access or redirects. Source metadata never grants tenant authority. fileName and summary required; summary is caller supplied, not verified OCR. Optional contactId is existing linked User ID; reservationId is existing tenant case. Keep the UUID requestKey, original PDF and metadata identical on retry; an expired download handle may be refreshed for the same original file. Changed bytes/metadata conflict. Returns stored_only, SHA256, documentRecognition and get_thread next read. With existing accounting:read/operator:execute consent and current actor accounting write/manage authority, invokes the shared original-document recognition service. Supplier invoices return extracted evidence and review_required for the existing financial-module import path; this OAuth grant does not delegate draft creation; payment reminders only link an unambiguous existing original, otherwise report review_required without creating a payable. Without that delegated authority, archive succeeds and recognition reports review_required. No reply, payment, external bookkeeping send, signature or legal completion.

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": {
      "requestKey": "<requestKey>",
      "fileName": "<fileName>",
      "summary": "<summary>"
    },
    "name": "intake_physical_mail"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdfFileNoActual host PDF attachment handle instead of pdfBase64. The host supplies its fields; a /mnt/data path alone is not a handle.
subjectNoOptional supplied letter subject; omit rather than infer an unverified claim.
summaryYesRequired caller-supplied factual summary of the selected original, not verified OCR, authenticity or resolution evidence.
fileNameYesActual original PDF filename for the archive, at most 180 characters.
contactIdNoOptional exact existing linked User ID for this tenant; not permission to create or infer a contact identity.
pdfBase64NoCanonical base64 of the actual original PDF, up to 10 MiB decoded. Supply exactly one of pdfBase64/pdfFile; no reconstruction or fabricated bytes.
requestKeyYesOne UUID for this explicitly supplied original letter and metadata. Preserve on recovery; a fresh download handle may refer only to the same original file.
reservationIdNoOptional exact existing tenant case/reservation ID to link; not a new booking or inferred business outcome.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / contactId / description
      Added value: +"Optional exact existing linked User ID for this tenant; not permission to create or infer a contact identity."
    • addedInput schema / properties / fileName / description
      Added value: +"Actual original PDF filename for the archive, at most 180 characters."
    • addedInput schema / properties / pdfBase64 / description
      Added value: +"Canonical base64 of the actual original PDF, up to 10 MiB decoded. Supply exactly one of pdfBase64/pdfFile; no reconstruction or fabricated bytes."
    • addedInput schema / properties / pdfFile / description
      Added value: +"Actual host PDF attachment handle instead of pdfBase64. The host supplies its fields; a /mnt/data path alone is not a handle."
    • addedInput schema / properties / pdfFile / properties / download_url / description
      Added value: +"Actual signed host attachment URL for this file ID under the existing download allowlist; never an arbitrary URL or local path."
    • addedInput schema / properties / pdfFile / properties / file_id / description
      Added value: +"Actual host-issued attachment file ID bound to the same original PDF and download handle."
    • addedInput schema / properties / pdfFile / properties / file_name / description
      Added value: +"Optional original filename supplied by the host, not invented provenance."
    • addedInput schema / properties / pdfFile / properties / mime_type / description
      Added value: +"Optional actual host MIME type; does not override PDF validation."
    • addedInput schema / properties / requestKey / description
      Added value: +"One UUID for this explicitly supplied original letter and metadata. Preserve on recovery; a fresh download handle may refer only to the same original file."
    • addedInput schema / properties / reservationId / description
      Added value: +"Optional exact existing tenant case/reservation ID to link; not a new booking or inferred business outcome."
    • addedInput schema / properties / subject / description
      Added value: +"Optional supplied letter subject; omit rather than infer an unverified claim."
    • addedInput schema / properties / summary / description
      Added value: +"Required caller-supplied factual summary of the selected original, not verified OCR, authenticity or resolution evidence."
  2. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare non-read-only, non-destructive, idempotent, closed-world, and the description honors all of these while adding genuinely new context: the two required consents, the exact URL allowlist (files.oaiusercontent.com, the signed estuary endpoint, bounded single-blob SAS, no redirects or container access), and the idempotency contract (keep requestKey/bytes/metadata identical on retry; expired handle may be refreshed for the same original; changed bytes conflict). It also discloses the return fields and explicit non-effects (no reply, payment, external send, signature, legal completion), which is substantial disclosure beyond the annotations.

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?

The content earns its place, but it is delivered as one dense run-on paragraph with no grouping of preconditions, input rules, return values, and scope limits. Several clauses (e.g. 'Source metadata never grants tenant authority', 'this OAuth grant does not delegate draft creation') are load-bearing yet buried mid-sentence, so an agent skimming may miss them. Front-loading the happy path and separating the recognition branch would improve it without losing information.

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?

With no output schema, the description carries the return contract itself (stored_only, SHA256, documentRecognition, get_thread as next read) and it does so. Combined with consent requirements, transport restrictions, conflict/retry semantics, degraded-mode behavior (archive succeeds, recognition reports review_required), and explicit scope exclusions, nothing material for correct invocation 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 100%, so the baseline is 3; the description still adds cross-parameter meaning the schema cannot express well: the exactly-one-of pdfFile/pdfBase64 rule, how the host populates download_url/file_id/mime_type/file_name, that contactId and reservationId must reference existing tenant entities and grant no creation authority, and that summary is caller-supplied rather than verified OCR. That is real added interpretation on top of a fully documented 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 first sentence names a specific verb and resource ('Archive an explicitly user-selected incoming PDF letter ... in the connected tenant') and bounds size (max 10 MiB). It is unmistakably distinct from the reply/thread siblings, and it also names a non-tool fallback ('the existing Brief erfassen UI') so the agent knows what this tool is not.

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?

States positively when to use it (explicitly user-selected incoming PDF), when not (never invent bytes, URLs, file IDs; a /mnt/data path alone is not a handle), and what to do instead when the host cannot pass the file (Brief erfassen UI). It also spells out the preconditions for the recognition side path (accounting:read/operator:execute plus actor write/manage authority) and what happens without them.

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