MCP toolsInside a siteUpdated

Links

mttr_linksAny key

This page as Markdown

What does mttr_links do?

The links of a site from its latest read: broken ones by default, or all of them, those in page content, or the other sites it links to. Any key may make this call, on any public site.

When to use it

  • You want to fix broken links.
  • You want to see which sites it sends readers to.

What you ask

You say“Find the broken links on example.com.”

Your assistant calls
mttr_links({
  site: "example.com"
})
ArgumentTypeNeededWhat it is
siteTextYesThe site, as a domain such as example.com.
showOne of theseNoWhich links.brokenallcontentoutbound
qTextNoText a path, a site or the link text must contain.
limitNumberNoHow many to return.
offsetNumberNoHow many to skip, for the next part of a long list.

What comes back

  • Each link with where it is, where it goes and what answered.
  • Link text read from the site, marked as quoted.
What it answersSample
FromToAnswered
/guides/septic-care/services/pumping-old404
/abouthttps://old.example/teamNo answer

Made-up sites and figures, to show the shape of the answer. The answer itself is JSON.

Over HTTP

It is GET /api/v1/sites/{site}/links, with your key as a bearer token:

HTTP
curl "https://mttr.si/api/v1/sites/example.com/links" \
  -H "Authorization: Bearer $MTTR_KEY"

When it fails

WhenStatusWhat to do
Your assistant has no key yet401 over MCPSign up with mttr_signup, then connect again with the key it gives.
mttr has no public report of the site yet404Ask for a read with mttr_rescan, then watch it with mttr_job.

Every error’s wording is in the API reference.

The call in full, with its HTTP address, each argument’s type, who may make it and the call in four languages, is mttr_links in the API reference.

Goes with

Sources