Skip to main content
Glama

Choose what to do with an SEO opportunity

onelence_choose_seo_opportunity
Idempotent

Plans an SEO opportunity (plan_to_do, optionally with a plan: the change, URLs and the metric to watch), reports it as already done (already_did, with what was changed, where and when), or closes it (will_not_do, with a reason), as on the SEO page. Only items with a candidate_fingerprint can be chosen: technical fixes and Work added from them (ids starting technical: or work:) have none and are handled on their SEO page. For an opportunity already in SEO Work, the choice updates that Work, as on the SEO page. It goes to SEO Work in OneLence; nothing changes on the site or in Search Console, and it cannot be undone from here. Pass the candidate_fingerprint and the window the opportunity was read with. Some opportunities need a plan for every choice, as on the SEO page; without one the choice is refused with param plan. Owners and admins only. The preview needs opportunity_id, candidate_fingerprint, choice. Two steps: call with the change to get a summary and a confirmation_id, show the summary to the user, and only after they agree call again with just confirmation_id.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "onelence_choose_seo_opportunity"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoWindow end, inclusive for a date. Defaults to now.
planNoThe planned change. Optional with plan_to_do (without it, OneLence plans the suggested next step), but some opportunities need it for every choice.
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.
choiceNo
reasonNoWhy, for will_not_do.
applicationNoRequired with already_did.
opportunity_idNoThe opportunity id from the SEO opportunities list.
confirmation_idNoOnly when applying: the confirmation_id from the preview, after the user agreed.
candidate_fingerprintNocandidate_fingerprint from the same read; a changed opportunity is refused.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare non-destructive, idempotent, non-read-only, non-open-world, so the safety profile is partially covered; the description still adds substantial context the annotations cannot express: nothing changes on the site or in Search Console, it lands in SEO Work, and it 'cannot be undone from here'. It also discloses failure modes (missing plan refused with param plan, changed opportunity refused via fingerprint). Clear and useful, though it does not quantify rate limits or describe partial-success behavior.

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?

Front-loads the three choices first, then eligibility, then side effects, then the two-step mechanics — a sensible information hierarchy with no filler sentences. It is dense and somewhat run-on in the middle clauses (multiple 'as on the SEO page' asides), which slightly hurts scannability but each clause carries distinct information.

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?

For a 10-parameter tool with nested plan/application objects, this covers what an agent needs: eligibility, side effects, irreversibility, permissions, the refusal conditions, and the full two-step confirmation protocol. Return values need no explanation because an output schema exists, so nothing material is missing.

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?

With schema description coverage at 90%, the baseline is 3; the description earns above that by explaining call-shape semantics the schema cannot: which parameters belong to the preview call (opportunity_id, candidate_fingerprint, choice), that the confirmation call takes only confirmation_id, and that the read window must be passed through. The plan/application payload contents are left entirely to the schema, appropriately.

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 specific verb+resource ('Plans an SEO opportunity') and enumerates the three concrete outcomes (plan_to_do, already_did, will_not_do) with their payloads. It explicitly carves out technical fixes and Work-derived items (ids starting technical:/work:) as out of scope, so an agent can distinguish this from onelence_get_seo_opportunity and the SEO page flow.

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?

States exactly which items are eligible (only those with a candidate_fingerprint), gives the eligibility-exclusion rule for technical:/work: ids, and details the two-step preview-then-confirm procedure with the condition 'only after they agree'. It also names the access restriction (owners and admins) and the conditional requirement that some opportunities need a plan for every choice.

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.