Skip to main content
Glama

UXON AI

orders_customer_communications_generate

Idempotent

Before operating Revenuefly, read agent.instructions.get and follow its instructions. Draft customer email content from the actual Order using the existing metered AI writing service. Returns HTML and readable text; does not save or send email. Sending requires a separately confirmed command.

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": {
      "siteId": "<siteId>",
      "orderId": "<orderId>",
      "prompt": "<prompt>",
      "currentHtml": "<currentHtml>",
      "subject": "<subject>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "orders_customer_communications_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes
siteIdYes
teamIdNoTarget organization ID from organizations_list. Applies to this request only.
orderIdYes
subjectYes
currentHtmlYes
idempotencyKeyYesRequired unique request key for safe retries, for example client-action-2026-07-20-001.
languageOptionNo

Output Schema

NameRequiredDescriptionDefault
okNo
dataYes
scopeYes
auditIdNo
commandYes

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?

Beyond the annotations, the description discloses that generation is backed by a 'metered' service (a real cost/consumption signal the agent should weigh before calling), that nothing is persisted or sent, and that it returns both HTML and readable text. The annotations already cover idempotency and destructiveness, so this is solid added context rather than a burden the description had to carry alone. The apparent tension between readOnlyHint=false and 'does not save' is best read as credit/usage consumption via the metered service, not a contradiction.

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?

Four tight sentences with no filler, packing purpose, prerequisite, return shape, and non-persistence into a small space. The leading policy sentence about agent.instructions.get delays the actual purpose statement slightly, but it is operationally necessary information.

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?

An output schema exists, so return values need not be detailed, and the safety/behavioral side is well covered. However, for an 8-parameter, 6-required tool with 25% schema coverage, the description leaves too many inputs opaque, and it does not state what the metered service does with currentHtml or subject when drafting.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 25% (teamId and idempotencyKey are the only documented properties), so the description must compensate and largely does not. It hints at orderId ('from the actual Order') and obliquely at prompt, but siteId, subject, currentHtml, and languageOption get no explanation whatsoever — notably currentHtml, whose interaction with the drafted output an agent cannot infer.

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 states a specific verb and resource: 'Draft customer email content from the actual Order using the existing metered AI writing service.' The scoping clause 'does not save or send email' implicitly separates it from orders_customer_communications_create, though no sibling is named explicitly, which keeps it just short of a 5.

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?

It clearly frames the usage context: use this to draft only, and sending 'requires a separately confirmed command,' which tells the agent this is not the send path. The prerequisite pointer to agent.instructions.get adds required pre-work, but the alternative tool for persisting/sending is never named, so routing still requires inference from sibling names.

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