Skip to main content
Glama

Store Manager for WooCommerce

AddSynapse: coupon details

get_coupon
Read-onlyIdempotent

AddSynapse: One coupon by code: type, amount, expiry, usage limits and count, product/category restrictions. Read-only.

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": {
      "code": "<code>"
    },
    "name": "get_coupon"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
siteNoWhich connected site: its address or site_id from addsynapse_list_sites. Omit when the account has only one site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The description clarifies what the function returns—specific attributes like expiry, usage limits, and restrictions—which adds value beyond the 'Read-only' safety hint already provided in annotations. However, the 'Read-only' mention is redundant.

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 a concise single sentence that is efficient, though the inclusion of 'AddSynapse' at the start is primarily branding and not functional.

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?

Since there is no output schema, the description significantly boosts completeness by listing the specific data points that will be returned (type, amount, expiry, etc.). This helps the agent understand the scope of the retrieval operation.

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?

Since the schema coverage is 50%, the baseline is 3. The description doesn't add specific semantics to either the 'code' or 'site' parameters; those details are primarily contained within the input schema definitions.

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 explicitly states the tool retrieves coupon details using a coupon code, making the purpose highly specific. Although it doesn't differentiate from all sibling tools, the resource (coupon) and method (by code) are clear.

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?

The description clearly defines the trigger (inputting a coupon code), but it lacks proactive usage guidance or explicit warnings compared to alternatives (e.g., if there was a 'search_all_coupons' sibling).

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