MCP toolsCheck any pageUpdated

Test an X card

mttr_x_cardAny key

This page as Markdown

What does mttr_x_card do?

Tests one live link’s X card: its twitter: tags against what X’s card docs list, its image, whether robots.txt keeps X’s crawler out, and for a player card whether the player route’s headers let X frame it. Any key may make this call, on any public site.

When to use it

  • Before you post a link you want to run inside a post on X.
  • A post shows a plain image, a blank frame, or the wrong card.

What you ask

You say“Will https://example.com/in-post work as a player card on X?”

Your assistant calls
mttr_x_card({
  url: "https://example.com/products/linen-shirt"
})
ArgumentTypeNeededWhat it is
urlTextYesThe link to be posted, as a full public address such as https://example.com/in-post.

What comes back

  • Each card tag found, and what is wrong with it in words.
  • For a player card, each host X frames from, let in or refused, with the headers as sent.
  • The curl lines to fetch the link and its player as X’s crawler, since mttr fetches under its own name.
  • A page robots.txt closes to mttr is not fetched.
What it answersSample
CheckStateWhat it means
twitter:cardplayerX may frame the player route
twitter:playerRelativeGive the full https address
x.comMay frame itframe-ancestors lets it in
X-Frame-OptionsDENYSend none on this route

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

Over HTTP

It is GET /api/v1/check/x-card, with your key as a bearer token:

HTTP
curl "https://mttr.si/api/v1/check/x-card?url=https%3A%2F%2Fexample.com%2Fproducts%2Flinen-shirt" \
  -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.
The key has used this hour’s free checks429The answer says x card checks are limited to an hourly allowance. Try again within the hour.

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_x_card in the API reference.

Goes with

Sources