Skip to main content
Glama
Payware MCP Server

Payware MCP Server

Official
by payware

payware_data_generate_report

[Merchant] Generate an asynchronous data report for merchant data analysis and reporting. Production only - not supported in sandbox.

Instructions

[Merchant] Generate an asynchronous data report for merchant data analysis and reporting. Production only - not supported in sandbox.

⚠️ Running a report is entitlement-checked as of 2026-08-22. Naming a report answers 403 ERR_REPORT_NOT_AVAILABLE when that report is not included in the caller's plan or partner type. Until that date only the menu was filtered - the door was not - so a caller that hard-coded a report id it had never been offered could still run it, and may now start failing.

Always resolve the id from payware_data_list_reports rather than hard-coding one. That call and this check share a single rule, so the menu and the door cannot drift apart: if a report is in that list, this call will accept it.

Distinguish the two failures:

  • 403 ERR_REPORT_NOT_AVAILABLE - the report exists, this caller may not run it. Not retryable; it is a plan boundary, not a transient error.

  • 404 ERR_REPORT_UNIT_ID_NOT_FOUND - no report is registered under that id at all. Usually a typo or a stale id.

For an ISV acting on behalf of a merchant, the plan that applies is the merchant's, and reports are outside the Basic plan entirely.

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": {
      "reportUnitId": "<reportUnitId>"
    },
    "name": "payware_data_generate_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateToNoEnd date (YYYY-MM-DD), with period CUSTOM or no period. Only an end date covers that one day; no end on a range is today.
localeNoLocale for the reporten_US
periodNoPeriod preset: TODAY, YESTERDAY, THIS_WEEK, LAST_WEEK, THIS_MONTH, LAST_MONTH, THIS_QUARTER, LAST_QUARTER, THIS_YEAR, LAST_YEAR, or CUSTOM with dateFrom (and dateTo for a range). Which presets a report takes is its `period` in payware_data_list_reports. Omitted with dates is CUSTOM; omitted without dates is today, or the last closed month or quarter for a statement. Every preset is open on every plan; a custom range needs Standard or above (ERR_REPORT_CUSTOM_RANGE_NOT_IN_PLAN).
dateFromNoStart date (YYYY-MM-DD), with period CUSTOM or no period. Ignored with any other preset.
timeZoneNoTimezone for date calculations (e.g., 'Europe/Sofia', 'America/New_York')GMT
partnerIdNoPartner ID from payware dashboard. Uses PAYWARE_PARTNER_ID env var as default.partner_12345
privateKeyNoRSA private key for authentication. Uses production private key as default (Data API is production-only).
reportUnitIdYesThe ID of the report to generateprocessedTransactions
ignorePaginationNoIf true, return report as single continuous document. If false, paginate results.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.3.0
    • changedInput schema / properties / dateFrom / description
      Previous value: -"Start date (YYYY-MM-DD). Optional: defaults to today; the WTD, MTD and YTD reports compute their own start."New value: +"Start date (YYYY-MM-DD), with period CUSTOM or no period. Ignored with any other preset."
    • changedInput schema / properties / dateTo / description
      Previous value: -"End date (YYYY-MM-DD). Optional: defaults to today."New value: +"End date (YYYY-MM-DD), with period CUSTOM or no period. Only an end date covers that one day; no end on a range is today."
    • addedInput schema / properties / period
      Added value: +{
      +  "description": "Period preset: TODAY, YESTERDAY, THIS_WEEK, LAST_WEEK, THIS_MONTH, LAST_MONTH, THIS_QUARTER, LAST_QUARTER, THIS_YEAR, LAST_YEAR, or CUSTOM with dateFrom (and dateTo for a range). Which presets a report takes is its `period` in payware_data_list_reports. Omitted with dates is CUSTOM; omitted without dates is today, or the last closed month or quarter for a statement. Every preset is open on every plan; a custom range needs Standard or above (ERR_REPORT_CUSTOM_RANGE_NOT_IN_PLAN).",
      +  "enum": [
      +    "TODAY",
      +    "YESTERDAY",
      +    "THIS_WEEK",
      +    "LAST_WEEK",
      +    "THIS_MONTH",
      +    "LAST_MONTH",
      +    "THIS_QUARTER",
      +    "LAST_QUARTER",
      +    "THIS_YEAR",
      +    "LAST_YEAR",
      +    "CUSTOM"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / reportUnitId / enum
      Previous value: -[
      -  "processedTransactionsWTD",
      -  "processedTransactionsMTD",
      -  "processedTransactionsYTD",
      -  "productsList",
      -  "shopsList",
      -  "salesPerProduct",
      -  "paymentProfiles",
      -  "transactionsPerWebPOS",
      -  "partnerProfile",
      -  "processedTransactions",
      -  "schedulesList",
      -  "processedTransactionsPerProduct"
      -]New value: +[
      +  "processedTransactions",
      +  "settlementFeeStatement",
      +  "monthlyStatement",
      +  "bankReconciliation",
      +  "feeInvoiceRegister",
      +  "disputesAndAdjustments",
      +  "partnerShareStatement",
      +  "partnerMonthlyReport",
      +  "subCommissionStatement",
      +  "dailyReconciliation",
      +  "institutionQuarterlyReview",
      +  "institutionShareAccrual",
      +  "institutionStatement",
      +  "salesPerProduct",
      +  "transactionsPerWebPOS",
      +  "growthProgram",
      +  "isvPortfolio",
      +  "mediatedVolume",
      +  "producerFleet",
      +  "institutionExceptions",
      +  "salesAnalytics",
      +  "paymentAcceptance",
      +  "campaignResults",
      +  "partnerProfile",
      +  "paymentProfiles",
      +  "productsList",
      +  "schedulesList",
      +  "shopsList"
      +]
  2. First observedv2.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false, openWorld=true; the description adds far more — a plan/entitlement gate effective 2026-08-22, non-retryable 403 semantics versus a 404 typo case, production-only auth, and that an ISV is billed against the merchant's plan. The one real gap is that it says "asynchronous" but never says how results are retrieved afterwards (get_report_status / get_report_requests are not mentioned), leaving the follow-up workflow implicit.

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?

Front-loaded with purpose, then an entitlement warning, then a two-bullet error taxonomy — a sensible priority order with bolded error codes for scanning. The migration narrative ("the door was not... may now start failing") is explanatory history that could be trimmed without losing agent-relevant instruction.

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 9-parameter, async, production-only mutation-with-side-effects tool with no output schema, the definition covers environment, auth defaults, plan gating, and failure modes well. Missing is the lifecycle context: what the caller receives on success and how to poll for the finished report, which matters given the tool is explicitly asynchronous and dedicated status siblings exist.

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 description coverage is 100%, so the baseline is 3, and the description adds genuine meaning on top: reportUnitId must come from list_reports (menus and the acceptance check share one rule), and plan boundaries affect which ids will succeed. It does not add anything about period/date interactions or locale beyond what the schema already documents in detail.

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?

States a specific verb and resource ("Generate an asynchronous data report") plus the domain (merchant data analysis) and a hard environment constraint (production only, not sandbox). An agent can immediately distinguish it from siblings like payware_data_list_reports, payware_data_get_report_status, or payware_data_cancel_report without consulting their schemas.

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?

Explicitly instructs the caller to resolve reportUnitId via `payware_data_list_reports` rather than hard-coding, and names that sibling as the authoritative source. It also gives when-not-to-retry guidance and separates the two error cases, which is exactly the routing information an agent needs before invoking.

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

Deploy Server

Other Tools