Skip to main content
Glama

Send brev

send_letter

Sender et fysisk brev (almindeligt eller rekommanderet) til en adresse i Danmark: Postly printer, kuverterer og afleverer det hos dao. Beløbet trækkes fra den forudbetalte saldo, og brevet kan ikke annulleres efter afsendelse. Ikke til e-mail, pakker eller sporing. English: Sends a physical letter (standard or registered) to an address in Denmark: Postly prints, envelopes and hands it to dao. The amount is taken from the prepaid balance and the letter cannot be cancelled once sent. Not for email, parcels or tracking.

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": {
      "letterType": "<letterType>",
      "sender": "<sender>",
      "recipient": "<recipient>"
    },
    "name": "send_letter"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoBrevets tekst. Udelades hvis der sendes en PDF.
senderYes
fileNameNo
templateNoSkabelon i stedet for text: Postly skriver brevet ud fra templateData. Påkrav og ophævelse sendes altid rekommanderet.
recipientYes
referenceNoDin egen reference, fx et ordrenummer.
fileBase64NoPDF som base64.
letterTypeYes
testOutcomeNoKun med testnøgle: hvordan testbrevet ender.
templateDataNoPåkrav: rentalAddress, lastPaymentDay (YYYY-MM-DD), payment, items [{type: husleje, period, amount}], fee (true/false), senderCvr (valgfri). Ophævelse: rentalAddress, paakravDate, paakravReceivedDate, arrears, stillUnpaid (yes), moveOutBy.
idempotencyKeyNoValgfri unik nøgle for denne afsendelse. Brug den samme nøgle, hvis kaldet gentages, så brevet ikke sendes to gange.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / $defs / address / properties / careOf
      Added value: +{
      +  "description": "c/o name, printed between the name and the street. \"c/o \" is added.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / template
      Added value: +{
      +  "description": "Skabelon i stedet for text: Postly skriver brevet ud fra templateData. Påkrav og ophævelse sendes altid rekommanderet.",
      +  "enum": [
      +    "paakrav-manglende-husleje",
      +    "ophaevelse-af-lejemaal"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / templateData
      Added value: +{
      +  "description": "Påkrav: rentalAddress, lastPaymentDay (YYYY-MM-DD), payment, items [{type: husleje, period, amount}], fee (true/false), senderCvr (valgfri). Ophævelse: rentalAddress, paakravDate, paakravReceivedDate, arrears, stillUnpaid (yes), moveOutBy.",
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true), the description discloses the real consequences: money is deducted from a prepaid balance, the letter is printed and handed to the dao carrier, and it cannot be cancelled after sending. That is exactly the kind of irreversibility and billing context annotations cannot convey. It does not cover failure modes (insufficient balance, invalid address) or the test-key behavior, which keeps it from a 5.

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?

Content is front-loaded and every claim is substantive, but the entire text is duplicated in Danish and English, roughly doubling length for an agent that reads only one of them. The core facts (physical send, prepaid charge, no cancellation, exclusions) are stated efficiently within each language block.

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

Completeness3/5

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

For an 11-parameter, nested-object, mutating tool with no output schema, the description covers purpose, cost and irreversibility well but omits what a successful call returns, how idempotency key usage protects against double sends, and what happens when the prepaid balance is insufficient. Adequate but with clear gaps given the tool's complexity.

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 64% with 11 parameters including nested sender/recipient objects, so the schema does much of the work. The description adds meaning only for letterType (standard vs registered) and indirectly for the template path; it says nothing about text-vs-PDF exclusivity, idempotencyKey, reference, or the nested address fields, leaving gaps the schema alone must cover.

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 opening clause names a specific verb and resource ("Sender et fysisk brev") and immediately narrows scope to Denmark plus the two letter types (almindelig/rekommanderet). The closing sentence explicitly excludes email, parcels and tracking, which lets an agent separate this from get_letter_status, list_letters and tracking siblings without opening any 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?

Guidance is clear: it says this tool produces a physical, paid, irreversible dispatch, and states what it is not for (email, parcels, tracking). It stops short of naming the alternative tool for status/listing queries, so the agent must infer that get_letter_status is the read path.

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