The short version
The problem
GP's API reference renders only in a browser, and its Markdown packs each API group into one huge file. Agents get almost no text from the pages and have to page through files up to 1.46 MB long to find a single operation's fields.
Why it matters
Everything else is downstream of the spec: SDKs, agent skills, MCP servers. GP's published spec fails validation, its SDKs cover 52 of 73 operations, and its docs MCP server returns 0 of 19 documentation categories.
The fix
Fix the spec once, then generate everything from it: a portal with one page per operation, SDKs covering every operation, a Context Plugin for coding agents and an MCP server. One API change reaches every output in 204 seconds with no hand edits.
How an AI agent reads your documentation
An agent reads docs the way a script does. It requests a URL, does not run JavaScript, and reads about the first 100,000 characters of what comes back. If the fields it needs are further down, it has to ask again, and again.
- Developer asks an agent to integrate GP API
- Agent opens a GP API pageit needs JavaScript, so the agent sees about 48 characters of text
- Agent finds the Markdown fileone file per API group, up to 1.46 MB
- The fields are far down the file“Refund a Sale” starts at character 422,588
- Agent pages through itup to 8 fetches for a single operation
- Resultmore turns and cost, or it falls back to guides and memory
- GP's 17 OpenAPI filesvalidated and fixed, 508 changes logged
- One clean spec73 operations
- Portal: one page per operationreadable without JavaScript, with llms.txt and a sitemap that link every operation
- SDKsC#, Python and TypeScript, every operation
- Context Pluginskills and an SDK map for Claude Code, Cursor and Codex
- Resultthe agent reads every field in one fetch for 69 of 72 operations
Agents that search land on pages they can't read
We gave agents a GP coding task and a matching PayPal task, with web search and fetch, and told them to use the official docs. 30 runs each. GP's agents mostly opened GP's HTML pages, which return almost nothing without JavaScript.
GP runs took more turns than the matching PayPal run in 24 of 30 pairs (sign test p = 0.001). Markdown reached: Fisher exact p = 0.002.
GP's reference makes agents dig for the fields
We measured the same 73 operations on GP's developer site and on a portal APIMatic generated from GP's own spec, using the same field lists for both.
transactions.mdBoth rows use the same scale. The shaded area is what one fetch reads: the first 100,000 characters. On GP's site the agent reaches the refund fields on its 5th fetch. On the APIMatic page they're in the first.
Hover or tap a square to see the operation. Each operation's Markdown is read from the start, 100,000 characters at a time, until its last field is defined.
| GP today | APIMatic portal | |
|---|---|---|
| Operations with their own page | 0 of 73 | 73 of 73 |
| Page text without JavaScript (median) | 48 chars | 3,991 chars |
| Pages that show the fields without JavaScript | 0 of 72 | 68 of 72 |
| Markdown an agent must fetch (median) | 260 K chars | 29 K chars |
| Fields found in the first fetch | 61% | 98% |
| A request example (curl) on the page | 0 of 73 | 73 of 73 |
| llms.txt links straight to the operation | 0 of 73 | 73 of 73 |
| sitemap.xml lists operation pages | 17 group pages | 73 operation pages |
Collected 15 October 2026. Where the APIMatic portal also falls short: Create a Sale or Refund (73% of fields readable; GP 71%), Create a Link (90%) and 3-D Secure Initiate (92%), because their request schemas are very large. Neither site puts code samples in its Markdown.
The specification underneath has defects
Every SDK, MCP server and agent tool is generated from the OpenAPI spec. GP publishes it as separate files embedded in its reference pages, and as published they fail validation, so nothing reliable can be generated from them. APIMatic validated and fixed them, logging every change (508 in total).
Eight issues that change real behaviour, for GP to confirm
requestBody on a GET operationnotifications.challenge_return_url, which isn't in the request' global_transaction_reference' (2 places)notifications.status_url, which isn't in the request'images ''landline_phone ' (2 places)A generated client would send field names with stray spaces to the API exactly as written. Two webhook callbacks (3-D Secure initiate and funds settlement) reference fields that their request doesn't have.
Same tasks, each site: what agents actually did
Each agent got one starting point (the site's llms.txt), a fetch tool and no web search, and was told to take every endpoint, field and value from the docs. Four tasks on GP API operations that have no step-by-step guide. Two models, three runs each: 24 runs per site.
transactions.md up to 9 times in one run, which matches the 7 to 8 fetches our measurement predicts. They also leaned on GP's guides and on related files that reuse the same field names. Where paging was needed most (split), the APIMatic portal was clearly faster. On hold and release it was slower. Across all four tasks the total saving is real, but at this sample size it isn't statistically significant.Checks use facts from GP's spec: the endpoint, documented field names and enum values, amounts in the smallest currency unit, the X-GP-Version header and the token endpoint. The code was checked, not run. p-values: Mann-Whitney on turns per run (6 vs 6 per task, 24 vs 24 overall).
Beyond the docs: SDKs, agent skills, MCP, and keeping them current
Agents rarely call a payments API from scratch. They reach for an SDK, a plugin of skills or an MCP server. This part looks at what GP offers in each, measured the same way.
GP's SDKs can call 52 of 73 operations
GP publishes 7 hand-written SDKs (C#, Go, Swift, Java, TypeScript, PHP and Python). We read the GP API request code of the Node and Python SDKs and matched it against every operation in GP's spec. Both implement the same 52 of 73. The SDKs APIMatic generates from the same spec implement all 73, in C#, Python and TypeScript.
ServicesConfig| GP SDKs | APIMatic SDKs | |
|---|---|---|
| How they are made | Hand-written; one package per language covering several GP gateways (GP API, Portico, Realex) | Generated from GP's OpenAPI spec and regenerated when it changes |
| GP API operations | 52 of 73 (Node, Python) | 73 of 73 (C#, Python, TypeScript) |
| Licence | GPL-2.0, GPL-3.0 | MIT |
| Reference built for agents | None in the SDK | SDK map: route, signature, return type and every error for each operation |
| Open issues and pull requests | dotnet 71, ios 3, java 24, node 64, php 48, python 9 | n/a (generated) |
Also missing in both GP SDKs: funds settlement and lookups, GET /addresses, split, hold and release, both cryptogram operations, and detokenize. Where the APIMatic SDKs fall short: some model names are generic (Request, Response) because GP's spec titles them that way, and fixing those titles once fixes every language. GP's SDKs cover more languages (Go, Java, PHP, iOS, Android).
GP's agent skills are hand-written and cover the common flows only
GP already ships an agent plugin, globalpayments/agent-skills (created 28 August 2026, last updated 2 September 2026), with one hand-written skill per SDK: 8 in all. APIMatic's Context Plugin is generated with the SDKs from GP's spec. This section describes both; we did not benchmark them against each other.
| GP agent-skills | APIMatic Context Plugin | |
|---|---|---|
| How it's made | Written by hand from SDK source | Generated from the spec, with the SDKs |
| Skills | 8 (one per SDK) | 30 (auth, calling endpoints, errors, models, testing, integration workflow and more, for C#, Python, TypeScript) |
| GP API operations covered | Common flows | All 73, through the bundled SDK map |
| Stays current | Updated by hand; last change 2 Sep 2026 | Regenerated whenever the spec changes |
| Installs in | Claude Code, Codex | Claude Code, Codex, Cursor |
The Python skill shows the same result. It also mentions GP's older Portico gateway more often than GP API (21 vs 13 mentions of their config classes), which matches the Portico/GP API mix-ups agents made.
detokenize() to reveal a stored card's number. In GP's Node SDK, the GP API request builder handles Auth, Capture, Confirm, DisputeAcceptance, DisputeChallenge, Edit, Reauth, Refund, Reversal, TokenDelete and TokenUpdate. Detokenize isn't one of them, so on GP API the call the skill recommends isn't implemented.GP's docs MCP server can't return any documentation
GP's developer site promotes a local MCP server (globalpayments/mcp-server, last release 18 December 2025) with three tools: create a payment link, list payment links, and get_documentation, which “searches and retrieves API documentation for 19+ categories”. We sent exactly the requests the documentation tool sends.
get_documentationdeveloper.globalpay.com (old site)
/sites/default/files/apidoc_specs/…
GP moved its developer site to a new domain, and the spec files the tool depends on weren't carried over. Checked for all 19 categories on 15 October 2026, and confirmed on 16 October by running GP's server (v1.0.9, unmodified): 0 of 19 return documentation. The setup guide also points to folders and an entry file the repository doesn't have.
A working Global Payments MCP server
Generated on the same typed SDK: nine tools for sales, transactions, disputes, deposits and reconciliation, fees and pay-by-link. No credentials are needed to explore it in the Sandbox.
Nine hand-maintained artifacts, each released on its own schedule
GP told us governance adds at least a month to every launch. Today GP API is described by 9 separate hand-maintained artifacts: 7 SDKs, the agent skills and the docs MCP server. Every API change has to be made in each one and released through that process. Public history shows the cost: 153 commits across them in the last 12 months, and they still disagree with the spec and with each other.
Days since the group's reference page was first captured by the Internet Archive, to 16 October 2026. That's a lower bound: the pages may be older. In the last 12 months alone GP shipped 16 Node SDK releases, and none added these groups.
Two builds from the same source, one without the Orders operations, compared file by file.
| GP artifact | Last updated | Out of step today |
|---|---|---|
| Node and Python SDKs | npm: 16 releases, PyPI: 3 in 12 months | 52 of 73 operations |
| Agent skills | 2 Sep 2026 (43 days before the study) | Since then: npm 3.12.0, 3.13.0, 3.14.0; PyPI 2.0.8; 18 commits across 5 SDKs |
| Docs MCP server | 18 Dec 2025 | 0 of 19 categories load |
Generation doesn't remove governance: the spec still needs review. What changes is the number of things to review and release, from 9 hand-maintained artifacts to one spec.
Search engines can't index GP's API reference properly
Before an agent or a developer reaches a page, a search engine has to find and describe it. We read every page in both sites' sitemaps (plus GP's 17 API reference pages) the way a crawler that doesn't run JavaScript sees them.
| GP developer site | APIMatic portal | |
|---|---|---|
| Meta description | 0 of 190 pages | 79 of 79, each unique |
| Link-preview tags (Open Graph, Twitter) | 0 of 190 | 79 of 79 |
| Canonical URL | 160 of 190; API reference 1 of 17 | 79 of 79 |
| API reference text without JavaScript (median) | 20 chars | 3,943 chars |
| robots.txt names the sitemap | No | Yes |
Google Lighthouse 12.6.1, SEO category. GP's pages fail meta-description, crawlable-anchors and image-alt. Lighthouse runs JavaScript, so it flatters GP's site.
PayPal already works this way
PayPal's server SDKs are generated by APIMatic. Here is what public data confirms.
Claude Code's official plugin marketplace listed 315 plugins at the time of the study, including PayPal's, and none for any Global Payments brand. PayPal and APIMatic report time to first transaction falling from 4 hours to under 25 minutes; that figure is theirs and couldn't be checked publicly.
What we've built from GP's spec
The study used GP's October files (17 groups, 73 operations). GP now publishes 21 groups and 88 operations, and everything below is rebuilt from the current files.
What this study does not show
- Only Claude was tested (Claude Code with Sonnet and Opus). ChatGPT, Cursor and Copilot weren't measured.
- On these tasks GP's site didn't cause wrong code: agents paged through its long files and used its guides. The measured cost of GP's layout is extra fetches, turns and spend, not failure. Agents whose fetch tool doesn't page may do worse; that wasn't tested.
- Agent answers were checked against GP's documented facts; the code wasn't run against GP's sandbox.
- GP's step-by-step guides are good: on the tasks they cover (refund, capture, void) agents did well from GP's site in an earlier test. The gaps here are in the API reference and the spec.
- The APIMatic portal is a proof of concept built from GP's public spec, not a GP-approved source. Eight spec changes need GP's confirmation.
- SDK coverage was measured for GP's Node and Python SDKs by reading their source; the other GP SDKs weren't measured. The agent-skills and Context Plugin comparison is descriptive, not a benchmark.
- “Public since” dates are the Internet Archive's first capture of each page, so the real gaps may be longer.
- GP's MCP server was run unmodified to confirm the 0 of 19 result. Only GP's official release was assessed.
Method and sources
- Search test: 5 tasks × 2 models × 3 repeats per provider, every fetch logged.
- Spec: GP's 17 OpenAPI 3.0.3 documents extracted from developer.globalpayments.com, validated with an OpenAPI validator and APIMatic's validator, and fixed with every change logged.
- Crawlability: each of the 73 operations fetched from both sites without JavaScript; fields located in the Markdown each site serves. GP positions use the first match after the operation, which can only favour GP.
- Agent test: start at llms.txt, fetch only, 4 reference tasks × 2 models × 3 repeats per site.
- SDKs: the GP API request builders of GP's Node and Python SDKs, read from GitHub and matched to the 73 operations. SDK completeness: every operation, parameter, field name and enum value looked up in the generated SDK source.
- Agent skills and MCP: the GitHub repositories
globalpayments/agent-skillsandglobalpayments/mcp-server; the documentation tool's requests replayed, and GP's released server run unmodified. - Governance: commit history of GP's 9 public SDK, skills and MCP repositories, release dates from npm and PyPI, and first captures from the Internet Archive. Propagation: two builds of the same source with and without the Orders operations, compared file by file.
- Search engines: robots.txt, sitemap.xml and the raw HTML head of every sitemap page on both sites, fetched without JavaScript; Lighthouse 12.6.1 SEO category on five pages per site.