Skip to main content
Glama

get_link_gap

Read-only

Domains that link to a client's competitors and not to the client, from the workspace's STORED gap answer (no new request, no charge), ranked by usefulness: domains AI engines cited in this client's answers first, then those linking to more of the competitors, then DataForSEO Rank — each with why (the facts behind its place). competitors picks a stored gap; omitted, the newest stored gap for the domain. With no stored answer it says so; run_link_lookup with kind "gap" buys one. linkingDomain: one row's links.

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": {
      "clientId": "<clientId>"
    },
    "name": "get_link_gap"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows returned, default 50.
scopeNoeach = linking to any of them (default), all = to every one.
domainNoThe client's domain. Default: the client's own.
clientIdYesClient id (from list_clients).
competitorsNoThe competitor domains of a stored gap. Omit for the newest stored gap.
linkingDomainNoOne row's domain (rows[].domain): instead of the list, its stored links per competitor (linking page and title, the competitor page, anchor, follow / nofollow and rel attributes, link type, first and last seen by DataForSEO, the page's DataForSEO Rank) and its pages AI engines cite in this client's answers (our data, citedByAI's window). The links are a separate paid lookup: with none stored, `buy` names the run_link_lookup call (kind gap_links) that previews its cost.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / linkingDomain
      Added value: +{
      +  "description": "One row's domain (rows[].domain): instead of the list, its stored links per competitor (linking page and title, the competitor page, anchor, follow / nofollow and rel attributes, link type, first and last seen by DataForSEO, the page's DataForSEO Rank) and its pages AI engines cite in this client's answers (our data, citedByAI's window). The links are a separate paid lookup: with none stored, `buy` names the run_link_lookup call (kind gap_links) that previews its cost.",
      +  "maxLength": 253,
      +  "type": "string"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare read-only and non-destructive behavior, and the description adds substantive context beyond them: no new request/no charge, ranking logic, the `why` field, and fallback behavior when no stored answer exists. It also discloses that `linkingDomain` links are a separate paid lookup, so cost and data provenance are clear.

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?

The resource definition and stored-data constraint are front-loaded, and most clauses earn their place. The single dense paragraph still mixes ranking, fallback, and parameter behavior, making it slightly less scannable than ideal.

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

Completeness5/5

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

No output schema exists, so the description carries the return-value burden. It explains ranking, the per-row `why` facts, and the detailed `linkingDomain` expansion, plus the no-stored-answer fallback, which is enough for correct invocation.

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%, and the schema already documents all six parameters, including `competitors`, `linkingDomain`, `scope`, `limit`, `domain`, and `clientId`. The description reinforces stored-gap selection for `competitors` and row mode for `linkingDomain`, but adds little parameter meaning beyond the schema.

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

Purpose5/5

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

Opens with a precise resource definition: domains linking to a client's competitors and not the client, sourced from the stored gap answer. It clearly distinguishes this retrieval tool from the paid `run_link_lookup` sibling named later.

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

Usage Guidelines5/5

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

Explicitly says this uses stored data with no new request or charge, and that when no stored answer exists the agent should use `run_link_lookup` with kind "gap" to buy one. It also explains `competitors` selecting a stored gap and `linkingDomain` switching to one row's links.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources