Skip to main content
Glama

SEO opportunity

onelence_get_seo_opportunity
Read-onlyIdempotent

One item by id from onelence_list_seo_opportunities, with what the SEO page shows when it is opened: what SEO found, why it matters, the next step and its steps, the expected result and how SEO checks it. Pass the same window as the list, if any.

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": {
      "opportunity_id": "<opportunity_id>"
    },
    "name": "onelence_get_seo_opportunity"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoWindow end, inclusive for a date. Defaults to now.
siteNoSite domain (e.g. example.com) or site id. Defaults to the workspace's newest active site.
startNoWindow start: a date (YYYY-MM-DD) or ISO 8601 date-time. Defaults to 30 days before end.
opportunity_idYesThe id from the SEO opportunities list.

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
typeYes
labelYes
scopeYes
titleYes
objectYes
statusYes
detailsYes
summaryYes
work_idYes
shortlistedYes
evidence_limitYes
candidate_fingerprintYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed35 schema fields changed
    • changedInput schema / properties / opportunity_id / description
      Previous value: -"The opportunity id from the SEO opportunities list."New value: +"The id from the SEO opportunities list."
    • removedOutput schema / properties / action_state
      Removed value: -{
      -  "enum": [
      -    "opportunity",
      -    "evaluation",
      -    "work",
      -    "none",
      -    "unavailable"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / brief
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "properties": {
      -        "blockers": {
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        "change": {
      -          "type": "string"
      -        },
      -        "check": {
      -          "type": "string"
      -        },
      -        "do_this": {
      -          "type": "string"
      -        },
      -        "facts": {
      -          "items": {
      -            "properties": {
      -              "as_of": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "basis": {
      -                "type": "string"
      -              },
      -              "label": {
      -                "type": "string"
      -              },
      -              "value": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "label",
      -              "value",
      -              "basis",
      -              "as_of"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "focus_query": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "heading": {
      -          "type": "string"
      -        },
      -        "now": {
      -          "type": "string"
      -        },
      -        "state": {
      -          "enum": [
      -            "ready",
      -            "blocked",
      -            "research_missing"
      -          ],
      -          "type": "string"
      -        },
      -        "target": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "why_now": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "state",
      -        "heading",
      -        "target",
      -        "focus_query",
      -        "do_this",
      -        "now",
      -        "change",
      -        "check",
      -        "why_now",
      -        "facts",
      -        "blockers"
      -      ],
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • addedOutput schema / properties / candidate_fingerprint / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / candidate_fingerprint / description
      Removed value: -"Opaque version token. Choosing the opportunity requires the same value."
    • removedOutput schema / properties / candidate_fingerprint / type
      Removed value: -"string"
    • removedOutput schema / properties / confidence
      Removed value: -{
      -  "enum": [
      -    "high",
      -    "medium",
      -    "low",
      -    "missing"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / conflicts
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / details
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "expected_result": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "found": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "how_it_is_checked": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "next_step": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "steps": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "why_it_matters": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "found",
      +        "why_it_matters",
      +        "next_step",
      +        "expected_result",
      +        "how_it_is_checked",
      +        "steps"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • removedOutput schema / properties / disposition
      Removed value: -{
      -  "enum": [
      -    "ready_to_plan",
      -    "check_first",
      -    "explore_only",
      -    "in_work",
      -    "excluded"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / effort
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • addedOutput schema / properties / evidence_limit
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • removedOutput schema / properties / focus_queries
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / kind
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / label
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / lane
      Removed value: -{
      -  "enum": [
      -    "grow_proven_pages",
      -    "recover_visibility",
      -    "fix_search_leakage",
      -    "create_new_coverage",
      -    "needs_evidence"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / next_step
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / page
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / page_conversions
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / page_value
      Removed value: -{
      -  "enum": [
      -    "high",
      -    "medium",
      -    "low",
      -    "missing"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / page_visitors
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / primary_reason
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / query
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • addedOutput schema / properties / scope
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / search_potential
      Removed value: -{
      -  "enum": [
      -    "high",
      -    "medium",
      -    "low",
      -    "missing"
      -  ],
      -  "type": "string"
      -}
    • addedOutput schema / properties / shortlisted
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / summary
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / topic
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • addedOutput schema / properties / type
      Added value: +{
      +  "enum": [
      +    "technical_fix",
      +    "content_improvement",
      +    "new_coverage",
      +    "pending_page_check",
      +    "evidence_check",
      +    "seo_work"
      +  ],
      +  "type": "string"
      +}
    • removedOutput schema / properties / urgency
      Removed value: -{
      -  "enum": [
      -    "high",
      -    "medium",
      -    "low",
      -    "missing"
      -  ],
      -  "type": "string"
      -}
    • addedOutput schema / properties / url
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • removedOutput schema / properties / why
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • addedOutput schema / properties / work_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "object",
      -  "id",
      -  "kind",
      -  "page",
      -  "query",
      -  "topic",
      -  "lane",
      -  "search_potential",
      -  "page_value",
      -  "confidence",
      -  "urgency",
      -  "effort",
      -  "page_visitors",
      -  "page_conversions",
      -  "title",
      -  "why",
      -  "next_step",
      -  "focus_queries",
      -  "conflicts",
      -  "disposition",
      -  "primary_reason",
      -  "candidate_fingerprint",
      -  "action_state",
      -  "brief"
      -]New value: +[
      +  "object",
      +  "id",
      +  "type",
      +  "label",
      +  "status",
      +  "title",
      +  "summary",
      +  "scope",
      +  "evidence_limit",
      +  "shortlisted",
      +  "work_id",
      +  "url",
      +  "candidate_fingerprint",
      +  "details"
      +]
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real context beyond that: the returned item mirrors the SEO page (findings, rationale, next step and steps, expected result, verification), and the window must match the list's window to line up. It says nothing about error behavior for a stale or unknown id.

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

Conciseness5/5

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

A single tightly packed sentence with the key identification front-loaded ("One item by id from onelence_list_seo_opportunities") followed by the payload inventory and the window rule. Each clause adds either identity or content information; nothing is redundant.

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 a full input schema, an output schema, and rich annotations, the description only needs to explain cross-tool relationships and result meaning, which it does. It leaves minor gaps around what happens for an invalid id or whether the list must be called first in the same session.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, and the description lifts it by explaining that start/end must be the same window used in the list call, giving cross-tool semantic meaning the schema does not. It does not elaborate on site or date parsing, but the schema already does that.

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?

Names a specific verb (get one item), the resource (SEO opportunity), and states exactly where the id comes from: onelence_list_seo_opportunities. It also enumerates the payload the SEO page shows, which sharply separates it from the list sibling.

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

Usage Guidelines3/5

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

The clause "Pass the same window as the list, if any" gives a concrete usage rule for consistency with the list call, implying this tool is invoked after listing. However, it never states when to prefer this over alternatives such as onelence_choose_seo_opportunity, nor what to do if the id is unknown.

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.