Skip to main content
Glama

Draft a compliance-checked customer service reply

draft_customer_reply
Read-onlyIdempotent

Classifies a customer inquiry (order status, damaged/missing, refund, usage, health/medical, general), drafts a brand-safe reply, runs FDA/DSHEA supplement compliance checks, and marks autoSendEligible true only for plain order-status inquiries with tracking/ETA and zero compliance flags.

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": {
      "brandName": "<brandName>",
      "customerMessage": "<customerMessage>"
    },
    "name": "draft_customer_reply"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderIdNoOptional order ID
brandNameYesBrand name
productNameNoOptional product name
trackingUrlNoOptional carrier tracking URL
customerMessageYesThe buyer's message
estimatedDeliveryNoOptional estimated delivery date

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description adds real behavior beyond them: it discloses the internal compliance-checking step (FDA/DSHEA) and the precise gating condition for autoSendEligible true, which an agent could not infer from structured fields. It stops short of describing the actual response payload (draft text, flag list), which matters given no output schema exists.

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?

It is a single dense sentence front-loaded with classification, then drafting, then compliance, then the eligibility rule — a sensible pipeline order. Every clause carries information, though the nested parenthetical list and the trailing autoSendEligible condition make it heavier than it needs to be.

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?

For a six-parameter tool with full schema coverage and no output schema, the description supplies the pipeline, the compliance dimension, and the send-eligibility rule. The main gap is that it never outlines what comes back (classification label, draft body, list of compliance flags), leaving the agent to infer the response shape.

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 coverage is 100%, so the baseline is 3; the description earns a notch above by tying tracking/ETA to the autoSendEligible decision, giving latent meaning to trackingUrl and estimatedDelivery that the schema only labels as 'optional'. The remaining parameters (brandName, productName, orderId, customerMessage) get no added semantic beyond the 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 description names a concrete verb chain (classifies, drafts, runs compliance checks, marks autoSendEligible) on a specific resource (a customer inquiry reply). Enumerating the six classification buckets tells an agent exactly what input domain the tool handles and how its output is shaped.

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?

Usage is implied by the resource — customer inquiries needing a reply — but there is no explicit when-to-use or when-not-to-use guidance and no named alternative among the siblings (audit_listing_copy, run_brand_audit, etc.). The one routing-like rule present (autoSendEligible only for plain order-status with tracking/ETA and zero flags) is useful but governs output, not tool selection.

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