Skip to main content
Glama
google-seo-mcp
by Akxan

Check AI answer citations (Perplexity)

ai_citation_check
Read-onlyIdempotent

Checks whether AI search cites your domain for a customer question by querying Perplexity's Agent API, then reports cited sources and the answer text.

Instructions

Ask Perplexity's Agent API a question a customer might ask and report which sources it cites, whether your domain is among them, and the answer text. Useful to see if the site is being cited by AI search for target queries. Requires PERPLEXITY_API_KEY (paid, cents per call). ChatGPT and Google AI Overviews have no such API.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "question": "<question>",
      "domain": "<domain>"
    },
    "name": "ai_citation_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesYour domain to look for in the citations, e.g. 'example.com'.
effortNoSearch effort: fast is the cheapest and closest to a plain AI answer; medium researches over several steps.fast
countryNoOptional 2-letter country code for localized search, e.g. 'ES', 'US'.
questionYesA natural question, e.g. 'What is the best guided walking tour in Seville?'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. Changed2 schema fields changedv0.10.0
    • addedInput schema / properties / effort
      Added value: +{
      +  "default": "fast",
      +  "description": "Search effort: fast is the cheapest and closest to a plain AI answer; medium researches over several steps.",
      +  "enum": [
      +    "fast",
      +    "low",
      +    "medium"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / model
      Removed value: -{
      -  "default": "sonar",
      -  "enum": [
      -    "sonar",
      -    "sonar-pro"
      -  ],
      -  "type": "string"
      -}
  3. Changed1 schema field changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observedv0.3.0

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, open-world, idempotent, non-destructive behavior, so the safety profile is covered. The description adds genuinely non-structured facts: a PERPLEXITY_API_KEY is required and each call costs real money (cents per call) against a live external API. It does not mention latency or rate limits, but cost and credential requirements are the operationally important disclosures here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core action, then the use case, then the access/cost caveat. Every sentence is functional. Minor redundancy between "whether your domain is among them" and "see if the site is being cited" keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description properly explains what comes back (sources cited, domain presence, answer text), and it covers credentials and cost. For a 4-parameter external-API tool this is close to complete; the main omission is how citations are returned (URLs only? ranked?) and whether the answer text is raw or truncated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with enum values and defaults documented for effort, so the schema carries parameter meaning on its own. The description contributes only the framing that the question should be phrased as a customer would ask it, and does not otherwise elaborate on domain matching semantics (subdomain handling, URL vs. bare domain).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete action (ask Perplexity's Agent API a customer-style question) and states exactly what is returned: cited sources, whether the caller's domain appears among them, and the answer text. That is well beyond restating the name. It does not, however, distinguish itself from catalog neighbors such as geo_answer_coverage or ai_search_sources, so an agent comparing those options gets no disambiguation from this text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Useful to see if the site is being cited by AI search for target queries" gives a clear triggering scenario, and the note that ChatGPT and Google AI Overviews have no such API implicitly scopes the tool to Perplexity-based checks. There is no explicit when-not or named in-catalog alternative (e.g., geo_answer_coverage), so the agent must infer the routing itself.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.