Skip to main content
Glama

Get opportunity group items

get_opportunity_group_items
Read-onlyIdempotent

Read the affected URLs and evidence for one Planning opportunity group. Pass the category and subcategory from get_opportunity_groups with the same dates.

Use this after choosing a Planning group to identify which pages to audit or update. The response includes matching rows, total and nextOffset for the same group and date range.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 10,
      "endDate": "2026-01-31",
      "category": "boost_content_visibility",
      "startDate": "2026-01-01",
      "subcategory": "LOW_AI_SEARCH_VISIBILITY"
    },
    "name": "get_opportunity_group_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size for the matching records. Omit for 20 records per page.
offsetNoSet to the previous page’s nextOffset and keep the filters fixed.
contextNoUser task for usage analytics. Omit private details.
endDateYesInclusive upper bound of the reporting window.
categoryYesChoose content visibility opportunities or technical SEO findings in the Planning view.
llm_modelNoExact model ID from the calling runtime. Send on every call when known. Omit if unavailable.
projectIdNoProject ID from list_projects. Omit to use the configured or sole accessible project.
startDateYesInclusive lower bound of the reporting window.
subcategoryYesOpportunity group subcategory returned by get_opportunity_groups.

Output Schema

NameRequiredDescriptionDefault
dataNoPage of opportunities in the selected group. Continue with nextOffset.
successYesTrue when the tool returns normally.
executionTimeNoElapsed time, e.g. 0.12s.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedOutput schema / then / properties / category / description
      Removed value: -"Failure class."
    • removedOutput schema / then / properties / error / description
      Removed value: -"Why the call failed."
    • removedOutput schema / then / properties / errorCode / description
      Removed value: -"Stable failure code."
    • removedOutput schema / then / properties / expected / description
      Removed value: -"Known failure."
    • removedOutput schema / then / properties / statusCode / description
      Removed value: -"HTTP error status."
  2. Changed3 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Non-sensitive task summary for usage analytics."New value: +"User task for usage analytics. Omit private details."
    • changedInput schema / properties / llm_model / description
      Previous value: -"Exact model ID from the calling runtime for usage attribution. Send on every call when known."New value: +"Exact model ID from the calling runtime. Send on every call when known. Omit if unavailable."
    • changedInput schema / properties / offset / description
      Previous value: -"For subsequent pages, pass the previous result’s nextOffset and keep the filters fixed."New value: +"Set to the previous page’s nextOffset and keep the filters fixed."
  3. Changed23 schema fields changed
    • changedInput schema / properties / category / description
      Previous value: -"Planning opportunity category."New value: +"Choose content visibility opportunities or technical SEO findings in the Planning view."
    • changedInput schema / properties / context / description
      Previous value: -"Task label for usage analytics. Omit private details."New value: +"Non-sensitive task summary for usage analytics."
    • changedInput schema / properties / endDate / description
      Previous value: -"Last included day of the reporting period."New value: +"Inclusive upper bound of the reporting window."
    • changedInput schema / properties / limit / description
      Previous value: -"Number of matching rows per response. Defaults to 20."New value: +"Page size for the matching records. Omit for 20 records per page."
    • changedInput schema / properties / offset / description
      Previous value: -"Page offset. Omit for the first page, then supply nextOffset from the previous response with the same filters."New value: +"For subsequent pages, pass the previous result’s nextOffset and keep the filters fixed."
    • changedInput schema / properties / startDate / description
      Previous value: -"First included day of the reporting period."New value: +"Inclusive lower bound of the reporting window."
    • changedOutput schema / properties / data / properties / data / description
      Previous value: -"Items or result for this call."New value: +"Evidence and recommended action for each matching Planning item."
    • addedOutput schema / properties / data / properties / data / items / properties / auditId / description
      Added value: +"SEO audit run ID for the technical finding."
    • changedOutput schema / properties / data / properties / data / items / properties / category / description
      Previous value: -"Classification of this resource or observation."New value: +"Content visibility or technical SEO category of the finding."
    • addedOutput schema / properties / data / properties / data / items / properties / impact / description
      Added value: +"Low, medium or high priority assigned by Planning."
    • changedOutput schema / properties / data / properties / data / items / properties / issueReference / description
      Previous value: -"Operation-specific object."New value: +"SEO audit issue definition, including name, severity and remediation guidance when supplied."
    • addedOutput schema / properties / data / properties / data / items / properties / issueReference / properties
      Added value: +{
      +  "createdAt": {
      +    "description": "Creation time.",
      +    "format": "date-time",
      +    "type": "string"
      +  },
      +  "description": {
      +    "description": "Saved resource description.",
      +    "type": "string"
      +  },
      +  "howToFix": {
      +    "type": "string"
      +  },
      +  "id": {
      +    "description": "Record ID.",
      +    "type": "number"
      +  },
      +  "issues": {
      +    "items": {
      +      "description": "Nested operation-specific JSON value."
      +    },
      +    "type": "array"
      +  },
      +  "name": {
      +    "description": "Display name.",
      +    "type": "string"
      +  },
      +  "projectAuditCategoryReference": {
      +    "type": "object"
      +  },
      +  "projectSeoAuditCategoryReferenceId": {
      +    "type": "number"
      +  },
      +  "severity": {
      +    "enum": [
      +      "ERROR",
      +      "WARNING",
      +      "NOTICE"
      +    ],
      +    "type": "string"
      +  },
      +  "updatedAt": {
      +    "description": "Last update time.",
      +    "format": "date-time",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / data / properties / data / items / properties / issueReference / required
      Added value: +[
      +  "projectAuditCategoryReference",
      +  "projectSeoAuditCategoryReferenceId",
      +  "issues",
      +  "name",
      +  "description",
      +  "howToFix",
      +  "severity",
      +  "createdAt",
      +  "updatedAt"
      +]
    • addedOutput schema / properties / data / properties / data / items / properties / issueReferenceId / description
      Added value: +"Technical SEO issue type ID when the item came from an SEO audit."
    • addedOutput schema / properties / data / properties / data / items / properties / keywords / description
      Added value: +"Search queries or tracked prompts tied to the finding, when available."
    • addedOutput schema / properties / data / properties / data / items / properties / lastCheckedAt / description
      Added value: +"When the evidence for this item was checked."
    • changedOutput schema / properties / data / properties / data / items / properties / metrics / description
      Previous value: -"Operation-specific object."New value: +"Search Console evidence for the page or query. Some findings use zeros where no Search Console evidence applies."
    • addedOutput schema / properties / data / properties / data / items / properties / metrics / properties
      Added value: +{
      +  "clicks": {
      +    "type": "number"
      +  },
      +  "ctr": {
      +    "type": "number"
      +  },
      +  "impressions": {
      +    "type": "number"
      +  },
      +  "position": {
      +    "description": "Saved order or editor position.",
      +    "type": "number"
      +  }
      +}
    • addedOutput schema / properties / data / properties / data / items / properties / metrics / required
      Added value: +[
      +  "impressions",
      +  "clicks",
      +  "ctr",
      +  "position"
      +]
    • addedOutput schema / properties / data / properties / data / items / properties / opportunity / description
      Added value: +"Human-readable observation, often with a suggested action."
    • changedOutput schema / properties / data / properties / data / items / properties / status / description
      Previous value: -"Current operation or record state."New value: +"Saved resolution status when the finding supports tracking."
    • addedOutput schema / properties / data / properties / data / items / properties / subcategory / description
      Added value: +"Specific issue or opportunity type within the category."
    • changedOutput schema / properties / data / properties / data / items / properties / url / description
      Previous value: -"URL for this resource or operation."New value: +"Affected page or cited source. May be empty for prompt-level opportunities."
  4. Changed20 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "category": "boost_content_visibility",
      +    "endDate": "2026-01-31",
      +    "limit": 10,
      +    "startDate": "2026-01-01",
      +    "subcategory": "LOW_AI_SEARCH_VISIBILITY"
      +  }
      +]
    • changedInput schema / properties / context / description
      Previous value: -"Call purpose for analytics. Omit private details."New value: +"Task label for usage analytics. Omit private details."
    • addedInput schema / properties / context / examples
      Added value: +[
      +  "compare landing pages"
      +]
    • addedInput schema / properties / llm_model / examples
      Added value: +[
      +  "openai/gpt-5.4-mini"
      +]
    • removedOutput schema / description
      Removed value: -"Tool result. On failure, read error and any recovery message."
    • removedOutput schema / properties / action
      Removed value: -{
      -  "description": "Client response to the project chooser.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / category
      Removed value: -{
      -  "description": "Failure class.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / details
      Removed value: -{
      -  "description": "Error-specific diagnostics.",
      -  "type": "object"
      -}
    • removedOutput schema / properties / error
      Removed value: -{
      -  "description": "Reason the tool call failed.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / errorCode
      Removed value: -{
      -  "description": "Stable failure code, when available.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / executionTime / description
      Previous value: -"Duration in seconds with an s suffix."New value: +"Elapsed time, e.g. 0.12s."
    • removedOutput schema / properties / expected
      Removed value: -{
      -  "description": "Known failure condition.",
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / message
      Removed value: -{
      -  "description": "Outcome, required input, or recovery instructions.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / projects
      Removed value: -{
      -  "description": "Choose a projectId and retry.",
      -  "items": {
      -    "properties": {
      -      "id": {
      -        "description": "Project ID to pass as projectId.",
      -        "type": "number"
      -      },
      -      "name": {
      -        "description": "Project name to show in the chooser.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / retryable
      Removed value: -{
      -  "description": "Safe to retry unchanged.",
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / statusCode
      Removed value: -{
      -  "description": "HTTP status of the failure, if set.",
      -  "type": "integer"
      -}
    • changedOutput schema / properties / success / description
      Previous value: -"True when the tool ran successfully."New value: +"True when the tool returns normally."
    • removedOutput schema / properties / upgrade
      Removed value: -{
      -  "description": "Plan upgrade options.",
      -  "type": "object"
      -}
    • removedOutput schema / properties / url
      Removed value: -{
      -  "description": "Recovery or completion link.",
      -  "type": "string"
      -}
    • addedOutput schema / then / properties
      Added value: +{
      +  "action": {
      +    "description": "Project chooser action.",
      +    "type": "string"
      +  },
      +  "category": {
      +    "description": "Failure class.",
      +    "type": "string"
      +  },
      +  "details": {
      +    "description": "Error-specific diagnostics.",
      +    "type": "object"
      +  },
      +  "error": {
      +    "description": "Why the call failed.",
      +    "type": "string"
      +  },
      +  "errorCode": {
      +    "description": "Stable failure code.",
      +    "type": "string"
      +  },
      +  "expected": {
      +    "description": "Known failure.",
      +    "type": "boolean"
      +  },
      +  "message": {
      +    "description": "Recovery instructions.",
      +    "type": "string"
      +  },
      +  "projects": {
      +    "description": "Choose a projectId and retry.",
      +    "items": {
      +      "properties": {
      +        "id": {
      +          "description": "Pass as projectId.",
      +          "type": "number"
      +        },
      +        "name": {
      +          "description": "Project name to show in the chooser.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "retryable": {
      +    "description": "Safe to retry unchanged.",
      +    "type": "boolean"
      +  },
      +  "statusCode": {
      +    "description": "HTTP error status.",
      +    "type": "integer"
      +  },
      +  "upgrade": {
      +    "description": "Plan upgrade options.",
      +    "type": "object"
      +  },
      +  "url": {
      +    "description": "Recovery or completion link.",
      +    "type": "string"
      +  }
      +}
  5. Changed8 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Short reason for this call in the activity log, e.g. \"check landing page traffic\". Leave out private data."New value: +"Call purpose for analytics. Omit private details."
    • changedInput schema / properties / limit / description
      Previous value: -"Rows to inspect per page. The default page size is 20."New value: +"Number of matching rows per response. Defaults to 20."
    • changedInput schema / properties / llm_model / description
      Previous value: -"Exact model ID from the calling runtime for usage attribution. Include it on every call when known."New value: +"Exact model ID from the calling runtime for usage attribution. Send on every call when known."
    • changedInput schema / properties / offset / description
      Previous value: -"Use nextOffset from the preceding page to continue with the same filters. Start without a cursor."New value: +"Page offset. Omit for the first page, then supply nextOffset from the previous response with the same filters."
    • changedInput schema / properties / projectId / description
      Previous value: -"Atomic project ID from list_projects. Omit to use the configured project. If asked to choose, retry with an accessible ID."New value: +"Project ID from list_projects. Omit to use the configured or sole accessible project."
    • addedInput schema / properties / projectId / examples
      Added value: +[
      +  42
      +]
    • changedOutput schema / description
      Previous value: -"Read data for the tool result. On failure, read error and any recovery message."New value: +"Tool result. On failure, read error and any recovery message."
    • addedOutput schema / properties / data / description
      Added value: +"Page of opportunities in the selected group. Continue with nextOffset."
  6. Changed23 schema fields changed
    • changedOutput schema / description
      Previous value: -"On success read data. On failure read error and errorCode."New value: +"Read data for the tool result. On failure, read error and any recovery message."
    • addedOutput schema / else
      Added value: +{
      +  "required": [
      +    "data"
      +  ]
      +}
    • addedOutput schema / if
      Added value: +{
      +  "properties": {
      +    "success": {
      +      "const": false
      +    }
      +  }
      +}
    • addedOutput schema / properties / action
      Added value: +{
      +  "description": "Client response to the project chooser.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / data / properties / data / description
      Previous value: -"Result items or operation data inside this returned payload. Pagination fields describe only this result page."New value: +"Items or result for this call."
    • changedOutput schema / properties / data / properties / data / items / properties / issueReference / description
      Previous value: -"Nested operation-specific fields."New value: +"Operation-specific object."
    • changedOutput schema / properties / data / properties / data / items / properties / metrics / description
      Previous value: -"Nested operation-specific fields."New value: +"Operation-specific object."
    • changedOutput schema / properties / data / properties / data / items / properties / status / description
      Previous value: -"Current saved or execution state reported by the operation."New value: +"Current operation or record state."
    • changedOutput schema / properties / data / properties / data / items / properties / url / description
      Previous value: -"URL returned for this resource or operation."New value: +"URL for this resource or operation."
    • removedOutput schema / properties / data / properties / nextOffset / anyOf
      Removed value: -[
      -  {
      -    "type": "null"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • changedOutput schema / properties / data / properties / nextOffset / description
      Previous value: -"Offset for the next result page; null means this listing is complete."New value: +"Next offset, or null at the end."
    • addedOutput schema / properties / data / properties / nextOffset / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / total / description
      Previous value: -"Total number of matching items across all result pages."New value: +"Matching items across all pages."
    • changedOutput schema / properties / details / description
      Previous value: -"Additional diagnostics for the reported failure code."New value: +"Error-specific diagnostics."
    • changedOutput schema / properties / errorCode / description
      Previous value: -"Machine-readable failure code for choosing a recovery action."New value: +"Stable failure code, when available."
    • changedOutput schema / properties / executionTime / description
      Previous value: -"Elapsed seconds with s suffix."New value: +"Duration in seconds with an s suffix."
    • changedOutput schema / properties / projects / items / properties / id / description
      Previous value: -"Project ID for projectId."New value: +"Project ID to pass as projectId."
    • changedOutput schema / properties / projects / items / properties / name / description
      Previous value: -"Project name to show when asking the user to choose."New value: +"Project name to show in the chooser."
    • addedOutput schema / properties / projects / items / required
      Added value: +[
      +  "id",
      +  "name"
      +]
    • changedOutput schema / properties / statusCode / description
      Previous value: -"HTTP-style status."New value: +"HTTP status of the failure, if set."
    • changedOutput schema / properties / statusCode / type
      Previous value: -"number"New value: +"integer"
    • changedOutput schema / properties / success / description
      Previous value: -"Whether the call succeeded."New value: +"True when the tool ran successfully."
    • addedOutput schema / then
      Added value: +{
      +  "required": [
      +    "error"
      +  ]
      +}
  7. Changed4 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Purpose for the activity log, for example \"check landing page traffic\". Exclude private content and personal data."New value: +"Short reason for this call in the activity log, e.g. \"check landing page traffic\". Leave out private data."
    • changedInput schema / properties / limit / description
      Previous value: -"Records per page. Omit for 20 records."New value: +"Rows to inspect per page. The default page size is 20."
    • changedInput schema / properties / llm_model / description
      Previous value: -"Exact model ID from the calling runtime for usage attribution. Report it on every call when known. Omit it if unavailable; never guess or ask the user."New value: +"Exact model ID from the calling runtime for usage attribution. Include it on every call when known."
    • changedInput schema / properties / offset / description
      Previous value: -"Start of the requested slice. Use nextOffset from the previous result."New value: +"Use nextOffset from the preceding page to continue with the same filters. Start without a cursor."
  8. Changed9 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Purpose for the activity log. Exclude private content and personal data."New value: +"Purpose for the activity log, for example \"check landing page traffic\". Exclude private content and personal data."
    • changedInput schema / properties / llm_model / description
      Previous value: -"Exact runtime model ID for usage attribution. Report on every call when known; never guess or ask."New value: +"Exact model ID from the calling runtime for usage attribution. Report it on every call when known. Omit it if unavailable; never guess or ask the user."
    • changedInput schema / properties / projectId / description
      Previous value: -"Accessible Atomic project ID from list_projects. Defaults to the configured project."New value: +"Atomic project ID from list_projects. Omit to use the configured project. If asked to choose, retry with an accessible ID."
    • addedOutput schema / properties / details / description
      Added value: +"Additional diagnostics for the reported failure code."
    • addedOutput schema / properties / error / description
      Added value: +"Reason the tool call failed."
    • addedOutput schema / properties / errorCode / description
      Added value: +"Machine-readable failure code for choosing a recovery action."
    • addedOutput schema / properties / message / description
      Added value: +"Outcome, required input, or recovery instructions."
    • addedOutput schema / properties / projects / items / properties / name / description
      Added value: +"Project name to show when asking the user to choose."
    • addedOutput schema / properties / success / description
      Added value: +"Whether the call succeeded."
  9. Changed4 schema fields changed
    • changedInput schema / properties / endDate / description
      Previous value: -"Last date to include, in YYYY-MM-DD format."New value: +"Last included day of the reporting period."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of records to return. Defaults to 20."New value: +"Records per page. Omit for 20 records."
    • changedInput schema / properties / offset / description
      Previous value: -"Zero-based offset. Use nextOffset from the previous result."New value: +"Start of the requested slice. Use nextOffset from the previous result."
    • changedInput schema / properties / startDate / description
      Previous value: -"First date to include, in YYYY-MM-DD format."New value: +"First included day of the reporting period."
  10. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the safety bar is met without prose. The description adds genuine context beyond that: the response shape (matching rows, total, nextOffset) and the constraint that the group and date range must stay fixed while paging.

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 short sentences, front-loaded with purpose then sequencing then response shape; nothing extraneous. The final sentence mildly restates 'same group and date range' already implied by the opening, a small redundancy.

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 an output schema present the description needn't enumerate return fields, and it still flags rows/total/nextOffset for pagination. Annotations cover the safety profile and all 9 parameters are documented in the schema, so the only modest gap is the absence of explicit guidance on the analytics-only parameters (context, llm_model).

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 coverage is 100%, so baseline is 3, but the description adds a cross-tool semantic constraint not encoded in the schema: category and subcategory must be passed 'with the same dates' as the originating get_opportunity_groups call. That consistency requirement is real guidance beyond the field descriptions.

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?

States a specific verb and resource: 'Read the affected URLs and evidence for one Planning opportunity group.' It explicitly scopes the call to a single group and distinguishes itself from get_opportunity_groups, which supplies the category/subcategory it requires.

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?

'Use this after choosing a Planning group to identify which pages to audit or update' gives explicit sequencing and the downstream intent, and the first sentence names the prerequisite call. There are no explicit when-not-to-use conditions or named alternatives beyond the prerequisite, so it stops short of a 5.

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