MCP toolsRivals and marketsUpdated

Worked examples

mttr_examplesYour claimed sites

This page as Markdown

What does mttr_examples do?

How other sites pass a rule a page fails: pages on sites in the same market, or the nearest sites, that pass it and are closest to the page in meaning, each with the passage that comes closest. A key may make this call on the sites it has claimed.

When to use it

  • You know what a rule asks and want to see it done well.

What you ask

You say“Show me how other sites answer first on a page like /guides/drain-cleaning.”

Your assistant calls
mttr_examples({
  site: "example.com",
  path: "/pricing",
  rule: "answer-first"
})
ArgumentTypeNeededWhat it is
siteTextYesThe site, as a domain such as example.com.
pathTextYesThe page, as a path such as /guides/gravel.
ruleTextYesA page rule id, as mttr_rules gives it.
limitNumberNoHow many to return.

What comes back

  • Pages elsewhere that pass the rule, closest first.
  • The passage on each that comes closest, marked as quoted.
What it answersSample
  • rival.example/guides/blocked-drains

    Answers in the first line under the question

    86% alike
  • north.example/help/slow-drains

    A short answer, then the steps

    78% alike

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}/examples, with your key as a bearer token:

HTTP
curl "https://mttr.si/api/v1/sites/example.com/examples?path=%2Fpricing&rule=answer-first" \
  -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 not claimed the site404Claim it with mttr_claim, then mttr_claim_check.

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

Goes with

Sources