Skip to main content
Glama

Upsert letterhead profile

upsert_letterhead_profile
Idempotent

Create or update a letterhead profile. Everything is optional except profile_key and, on creation, company_name — pass only what changes. Measurements are millimetres and points, colours six hex digits without '#'. logo_png_base64 is the payload without the data: prefix; it is what a PDF can embed, so a profile without it produces PDFs without a logo.

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": {
      "profile_key": "<profile_key>"
    },
    "name": "upsert_letterhead_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
h1_ptNo
h2_ptNo
h3_ptNo
placeNo
base_ptNo
mono_ptNo
logo_svgNo
variantsNo{"vergabeverfahren": {"anschreiben": "…"}, "freies_angebot": {"anschreiben": "…"}}
body_fontNo
mono_fontNo
agent_nameNo
caption_ptNo
fold_marksNoFold and punch marks on page 1 of a letter. Default true.
is_defaultNo
agent_emailNo
agent_phoneNo
profile_keyYes
accent_colorNo
company_nameNo
heading_fontNo
address_linesNo
caption_colorNo
logo_width_mmNo
margin_top_mmNo
footer_columnsNo
header_contactNo
margin_left_mmNo
return_addressNoReturn address line in small print above the recipient in a letter (DIN 5008). Empty: company name and address lines of this profile.
filename_prefixNo
logo_png_base64No
margin_right_mmNo
footer_offset_mmNo
header_offset_mmNo
margin_bottom_mmNo
page_number_templateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

The annotations already declare idempotentHint=true, destructiveHint=false, and readOnlyHint=false. The description explains what a partial payload means (fields you leave out are not changed), what is required on creation, and an outcome: a profile without logo_png_base64 yields PDFs without a logo. It does not describe merging or replacing behavior for nested objects such as variants and footer_columns.

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?

The description is short and front-loaded: the operation, required fields, and partial semantics come before the format conventions. The logo sentence is slightly convoluted but carries two useful facts, so it earns its length overall.

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 a 36-parameter mutation tool with no output schema and almost no schema descriptions, the description covers creation requirements and unit and format conventions fairly well. It is still thin on how defaults interact (is_default, fold_marks), nested payload shapes, and what happens to unspecified fields beyond the statement about passing only what changes.

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?

Only 8% of schema descriptions are covered, so the description has to add meaning for 36 parameters. It usefully defines global conventions (measurements in millimetres and points, hex colours without '#', logo payload without the data: prefix), but it leaves many individual parameters, such as variants, footer_columns, header_contact, is_default, and filename_prefix, without description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb pair and resource: "Create or update a letterhead profile." This makes the operation's scope clear at once. It does not name the sibling get_letterhead_profile as the read counterpart, so differentiation relies on the name of the sibling tools.

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

Usage Guidelines3/5

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

"pass only what changes" explains partial-update usage, and the creation requirement of company_name is stated. However, there is no guidance on when to read first with get_letterhead_profile, or when to prefer a different profile tool, so usage context is only implied.

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