Skip to main content
Glama

Check SEO Report Purchase Status (lightweight poll)

get_purchase_status
Read-onlyIdempotent

Lightweight poll for whether a scan's paid remediation report is ready, WITHOUT downloading the full plan. Use this in the wait loop after purchase_report: call about every 15 seconds until both paid and runbook_ready are true, then call get_remediation_plan ONCE to fetch and execute the plan. paid=false => the user hasn't completed checkout yet; paid=true, runbook_ready=false => payment landed and the plan is still being generated (retry shortly).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scan_idYesScan ID from submit_scan / purchase_report.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint. Description adds behavioral context: lightweight (doesn't download plan), polling interval, state transitions. No contradiction.

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?

Single paragraph, front-loaded with purpose. Every sentence adds value: purpose, usage pattern, state machine explanation. No fluff.

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?

Given simple parameter set, no output schema, and sufficient annotations, the description covers all needed context: polling flow, state transitions, and next steps. Complete for agent usage.

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 coverage is 100% with `scan_id` description already present. Description does not add additional meaning beyond the schema for the parameter, but implicitly notes source of scan ID. Baseline 3 is appropriate.

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?

The description clearly states the tool is a lightweight poll to check if a paid remediation report is ready, explicitly distinguishing it from downloading the full plan. It specifies the verb and resource (check status of scan's paid report).

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?

Provides explicit guidance: use after `purchase_report`, poll every 15 seconds until both `paid` and `runbook_ready` are true, then call `get_remediation_plan` once. Also explains the meaning of status fields (`paid`, `runbook_ready`).

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