Skip to main content
Glama

X-ray an ad or landing page

sightglass_xray

Start an X-ray: a graded teardown of one ad (with its landing page, as a funnel) or one landing page, scored against what works in its category. Pass exactly one of adId or sitePageId. Only call it when the user asked for a grade. It returns a request; poll sightglass_get_xray with its id every few seconds until it finishes, then read the grade with the same target. Returns data only, shown to no one. Once you know the answer, call sightglass_show once with this resultId to show it as cards; it doesn't search again. For multi-step competitor research, call skills with name "replo".

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": {
      "projectId": "<projectId>"
    },
    "name": "sightglass_xray"
  }
}

Input Schema

NameRequiredDescriptionDefault
adIdNoGrade this ad together with its landing page, as a funnel.
projectIdYesReplo project id, from list_projects. Its workspace decides which Sightglass fields and history come back. Only tools that say they save something (an asset or a Canvas file) write to this project.
sitePageIdNoGrade this landing page alone.
workspaceIdNoReplo workspace id, from list_workspaces. Decides which workspace's Sightglass fields and history come back; required when the user has more than one workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / projectId / description
      Previous value: -"Replo project id, from list_projects: where a saved asset or new file lands. Its workspace's access applies."New value: +"Replo project id, from list_projects. Its workspace decides which Sightglass fields and history come back. Only tools that say they save something (an asset or a Canvas file) write to this project."
    • changedInput schema / properties / workspaceId / description
      Previous value: -"Replo workspace id, from list_workspaces. Sets which workspace's access applies; required when the user has more than one workspace."New value: +"Replo workspace id, from list_workspaces. Decides which workspace's Sightglass fields and history come back; required when the user has more than one workspace."
  2. Changed2 schema fields changed
    • changedInput schema / properties / projectId / description
      Previous value: -"Replo project id, from list_projects: where the charge or the asset lands. Its workspace's plan applies."New value: +"Replo project id, from list_projects: where a saved asset or new file lands. Its workspace's access applies."
    • changedInput schema / properties / workspaceId / description
      Previous value: -"Replo workspace id, from list_workspaces. Sets which workspace's plan applies; required when the user has more than one workspace."New value: +"Replo workspace id, from list_workspaces. Sets which workspace's access applies; required when the user has more than one workspace."
  3. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / adId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / projectId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / sitePageId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / workspaceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  4. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnly false, destructive false, non-idempotent), the description discloses the asynchronous job model: it returns a request, must be polled via sightglass_get_xray every few seconds, and the grade read with the same target. It also warns that results are not user-visible until sightglass_show is called with the resultId, which is essential behavioral knowledge not encoded anywhere else.

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?

Front-loaded with the purpose, then the argument constraint, then the call sequence, then the display step. Every sentence carries operational information (when to call, how to poll, how to surface results) with no filler.

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?

For a multi-step async tool with no output schema, the description covers the full lifecycle: start, poll, read, show. The only soft spot is the reference to "this resultId" without explaining exactly where it appears in the start response, leaving a small inference for the agent.

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 the baseline is 3; the description earns above baseline by stating the mutual-exclusivity rule for adId/sitePageId, a constraint the schema itself does not express (only projectId is required). It does not clarify the workspaceId fallback behavior beyond what the schema description already says.

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?

"Start an X-ray: a graded teardown of one ad (with its landing page, as a funnel) or one landing page, scored against what works in its category" gives a concrete verb, resource, scope, and grading basis. It is clearly distinguishable from sibling readers like sightglass_get_ad or sightglass_find_ads, which retrieve rather than grade.

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?

It sets an explicit precondition ("Only call it when the user asked for a grade") and an explicit argument constraint ("Pass exactly one of adId or sitePageId"). It also routes away to an alternative for a different need case ("For multi-step competitor research, call skills with name 'replo'").

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