Square

developer.squareup.com/docs
Score: 56 out of 100, grade F56
Grade F
Last checked: April 30, 2026 · afdocs v0.17.1 · Rerun · Request listing
Share on
Simulation: Fern // bud
Day 0
CategoryPayments
Checks passed9/23Warnings1Failed9

Square scores 56/100 (Grade F), passing 9 of 23 checks (39%). There are 10 issues limiting AI agent readiness. Addressing llms.txt support and markdown availability would provide the most improvement.

# Agent Score Fix Report — Square
URL: https://developer.squareup.com/docs
Score: 56/100 (Grade F)

I need help improving the AI-readiness of the documentation at https://developer.squareup.com/docs.
Agent Score found 9 failing checks and 1 warnings.

## Failing Checks (9)
- [content-discoverability] Llms Txt Size: llms.txt is 104,117 characters (exceeds 100,000 threshold; will be truncated by most agents)
- [content-discoverability] Llms Txt Links Resolve: Only 0/10 same-origin sampled links resolve (0%); 10 broken
- [content-discoverability] Llms Txt Links Markdown: Same-origin links point to HTML and no markdown alternatives detected; 3 rate-limited (HTTP 429)
- [content-discoverability] Llms Txt Directive Html: No llms.txt directive found in HTML of any of 5 sampled pages; 5 failed to fetch
- [content-discoverability] Llms Txt Directive Md: Could not fetch markdown for any of 10 pages; 10 had no markdown version
- [markdown-availability] Markdown Url Support: No sampled pages support .md URLs (0/10 tested)
- [markdown-availability] Content Negotiation: Server ignores Accept: text/markdown header (0/10 sampled pages return markdown); 3 rate-limited (HTTP 429)
- [page-size] Content Start Position: 3 of 10 sampled pages have content starting past 50% (worst 66%)
- [observability] Llms Txt Coverage: llms.txt covers 448/872 sitemap doc pages (51%); 424 missing; 24 llms.txt links not in sitemap (may indicate stale links or incomplete sitemap)

## Warnings (1)
- [content-discoverability] Llms Txt Valid: llms.txt contains parseable links but doesn't fully follow the proposed structure: https://developer.squareup.com/llms.txt: No H1 heading found, No blockquote summary found

## Fix Instructions

For each issue above, please:
1. Analyze the documentation site at https://developer.squareup.com/docs
2. Implement the specific fix
3. Verify the fix would cause the check to pass

### Common fixes:
- **No llms.txt**: Create /llms.txt following https://llmstxt.org — list all doc pages in markdown format
- **No .md URL support**: Configure your docs platform to serve pages at equivalent .md URLs (e.g. /docs/quickstart.md)
- **No content negotiation**: Return markdown when request includes Accept: text/markdown header
- **Large page size**: Reduce nav boilerplate, inline scripts, and repetitive markup
- **No sitemap**: Generate /sitemap.xml listing all documentation URLs
- **Auth walls**: Ensure docs pages return 200 without requiring login cookies or tokens
- **No Last-Modified header**: Configure your server/CDN to include Last-Modified response headers
- **Tab content hidden**: Ensure tabbed content is rendered in the HTML (not JS-only) so agents can read all variants

## Run afdocs Locally for More Detail

To get deeper visibility into what's failing, run afdocs against your docs:

  npx afdocs check https://developer.squareup.com/docs --fixes --verbose

- **--fixes**: Adds "Fix:" lines to the output for each warn/fail check with actionable remediation steps
- **-v, --verbose**: Shows per-page details (specific URLs, character counts, error codes) for checks with issues — useful for per-URL visibility into what's failing
CHECK RESULTS

How your docs scored

markdown-url-supportNo sampled pages support .md URLs (0/10 tested)Learn more
content-negotiationServer ignores Accept: text/markdown header (0/10 sampled pages return markdown); 3 rate-limited (HTTP 429)Learn more
llms-txt-sizellms.txt is 104,117 characters (exceeds 100,000 threshold; will be truncated by most agents)Learn more
llms-txt-links-resolveOnly 0/10 same-origin sampled links resolve (0%); 10 brokenLearn more
llms-txt-links-markdownSame-origin links point to HTML and no markdown alternatives detected; 3 rate-limited (HTTP 429)Learn more
llms-txt-directive-htmlNo llms.txt directive found in HTML of any of 5 sampled pages; 5 failed to fetchLearn more
llms-txt-directive-mdCould not fetch markdown for any of 10 pages; 10 had no markdown versionLearn more
llms-txt-validllms.txt contains parseable links but doesn't fully follow the proposed structure: https://developer.squareup.com/llms.txt: No H1 heading found, No blockquote summary foundLearn more
llms-txt-existsllms.txt found at https://developer.squareup.com/llms.txtLearn more
llms-txt-coveragellms.txt covers 448/872 sitemap doc pages (51%); 424 missing; 24 llms.txt links not in sitemap (may indicate stale links or incomplete sitemap)Learn more
cache-header-hygieneAll 11 endpoints have appropriate cache headersLearn more
markdown-content-paritySkipped: dependency check did not passLearn more
content-start-position3 of 10 sampled pages have content starting past 50% (worst 66%)Learn more
rendering-strategyAll 10 sampled pages contain server-rendered contentLearn more
page-size-htmlAll 10 sampled pages under 50K chars (median 241K HTML → 16K markdown (74% boilerplate))Learn more
page-size-markdownSkipped: dependency check did not passLearn more
auth-gate-detectionAll 10 sampled pages are publicly accessibleLearn more
auth-alternative-accessAll docs pages are publicly accessible; no alternative access paths neededLearn more
tabbed-content-serialization7 tab group(s) across 2 of 10 sampled pages; all serialize under 50K charsLearn more
markdown-code-fence-validityAll 0 code fences properly closed across 1 pagesLearn more
section-header-quality2 page(s) with tabs found, but no section headers inside tab panels to evaluateLearn more
http-status-codesAll 10 sampled pages return proper error codes for bad URLsLearn more
redirect-behaviorNo redirects detected across 10 sampled pagesLearn more

Built by Fern

Fern-powered docs are agent-ready by default.

Trusted by