Skip to main content
Glama

pmg_what_object_add

Add an object to a Proxmox Mail Gateway 'what' object group. Dry-run by default; use confirm=True to execute the mutation.

Instructions

MUTATION (LOW): add an object to a PMG RuleDB 'what' object group. Dry-run by default.

To create the group first use pmg_what_group_create; list its objects with pmg_what_group_objects. If the group is already attached to a rule, the new object affects mail matching immediately. confirm=True executes and returns {"status": "ok", "result": <PMG's raw API response>}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldNoMail header field name to match; used for type_='matchfield'.
type_YesObject type: contenttype|matchfield|spamfilter|virusfilter|filenamefilter|archivefilter|archivefilenamefilter.
valueNoValue/pattern to match against the field; used for type_='matchfield'.
ogroupYesNumeric 'what' object group ID (e.g. '8') from pmg_what_groups_list.
confirmNoFalse (default) returns a dry-run PLAN; True executes the mutation.
filenameNoFilename pattern to match; used for type_='filenamefilter'/'archivefilenamefilter'.
spamlevelNoSpam score threshold; used for type_='spamfilter'.
contenttypeNoMIME content type to match; used for type_='contenttype'/'archivefilter'.
only_contentNoMatch content only, not filename; maps to API param 'only-content'.
top_part_onlyNoRestrict match to the top MIME part only; maps to API param 'top-part-only'.
proximo_targetNoWhich configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full responsibility. It explicitly marks the tool as 'MUTATION (LOW)', describes dry-run default, execution with confirm=True, and immediate mail matching impact. However, it omits what the dry-run output format is (e.g., a plan), and lacks error behavior or idempotency details.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely concise: four sentences that each add unique value. The opening 'MUTATION (LOW)' immediately conveys safety, and subsequent sentences provide prerequisites, effects, and execution details without redundancy.

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?

Given the complexity (11 params, no annotations, output schema exists), the description covers purpose, usage, and behavioral impact well. It does not describe the dry-run output format or error handling, but the presence of an output schema likely mitigates that. Still, for a mutation tool, it is notably complete.

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%, so a baseline of 3 is appropriate. The description adds minimal extra parameter context, only mentioning that ogroup comes from pmg_what_groups_list and listing type_ enum. It does not elaborate on the meaning or relationships of the other parameters beyond the schema.

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 clearly states the action ('add an object to a PMG RuleDB 'what' object group') and specifies it's a mutation with dry-run behavior. While it distinguishes from siblings like delete/update by the verb 'add', it does not explicitly contrast with them, leaving room for minor ambiguity.

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?

Excellent guidance: instructs to create the group first with pmg_what_group_create, lists objects with pmg_what_group_objects, explains the effect when attached to a rule, and clarifies dry-run vs. execution with confirm=True. No gaps.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/john-broadway/proximo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server