Skip to main content
Glama

Proxy Mail QA

Record a coupon’s result at checkout

record_coupon_result

After applying a coupon at checkout with your own browser tools (on staging with test payments only, never real card details: Proxy Mail QA never pays for anything), records whether the app accepted it, refused it (rejected) or failed with an error, with the app’s own message. Answers with every result for that coupon and the coupon_result verdict: it fails a coupon accepted after its end date, accepted for an offer already given to another version of the address (check_offers), or accepted twice when one_time is true; it warns on an error or a refusal with no reason. With run_id, a failed verdict fails the run. The coupon: code (default: the newest coupon at the address) or email_id.

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": {
      "address": "<address>",
      "result": "<result>"
    },
    "name": "record_coupon_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoThe coupon code applied. Default: the newest coupon at the address.
testNoWith run_id: the test or step this call belongs to, shown beside what it saw in the report.
resultYesWhat checkout did with the coupon.
run_idNoA run from start_run: what this call sees is added to its report.
addressYesA test address in this project. A variant works too (capitals, or a +tag such as name+o'brien@…): it acts on the plain address, and a wait on a +tag variant only finds mail sent to it.
messageNoWhat the app said, such as "Code already used".
email_idNoThe email the coupon came in.
one_timeNoThe offer is one per person, so a second acceptance fails.
discount_appliedNoWhat checkout took off, as shown, such as -£5.00.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / address / maxLength
      Added value: +254
    • addedInput schema / properties / email_id / maxLength
      Added value: +36
    • addedInput schema / properties / run_id / maxLength
      Added value: +36
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, it discloses the computed verdict rules: a failure when the coupon is accepted after its end date, accepted for an offer already given to another address version, or accepted twice when one_time is true; a warning on an error or an unexplained refusal. It also states the consequential side effect that a failed verdict fails the run when run_id is supplied, which annotations alone do not convey.

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?

The content is valuable and front-loaded with the recording action, but it is delivered as one dense run-on with nested parentheticals and semicolon chains that are hard to parse. The material earns its place, yet the structure could be broken into clearer clauses.

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

Completeness5/5

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

With nine parameters and no output schema, the description compensates well: it describes the return value (every result for that coupon plus the coupon_result verdict), the verdict rules, the effect of run_id, and the default coupon selection. An agent has enough to call it correctly and interpret the response.

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, but the description adds real meaning: code defaults to the newest coupon at the address, and email_id identifies the email the coupon arrived in. It also explains how one_time and the result values feed the verdict logic, which the schema fields alone do not connect.

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 specific verb and resource: it records whether checkout accepted, rejected, or errored on a coupon, along with the app's own message. It also scopes the activity to applying the coupon yourself in a browser on staging with test payments, which separates it from siblings like check_offers that only inspect prior offers.

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 gives a clear precondition (use it after you have applied the coupon with your own browser tools, on staging with test payments only) and points to check_offers for the case of an offer already given to another address variant. It does not spell out an explicit when-not-to-use or name a competing recording tool, so it falls short of a full 5.

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