Skip to main content
Glama

Get X-ray

sightglass_get_xray
Read-onlyIdempotent

Read an X-ray. Pass requestId to poll a grade started with sightglass_xray. Pass adId or sitePageId to read the grade itself: scores, findings and fixes, as far as the workspace can see them. A target nobody has graded returns its summary with the grade locked; offer to run sightglass_xray. 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

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": "sightglass_get_xray"
  }
}

Input Schema

NameRequiredDescriptionDefault
adIdNoGrade this ad together with its landing page, as a funnel.
projectIdNoReplo 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.
requestIdNoA request id from sightglass_xray: returns its status. Pass this instead of a target while a grade is running.
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. Changed6 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 / requestId / 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.6/5.0
Behavior4/5

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

Read-only, idempotent and non-destructive annotations are consistent with a 'read' description. Beyond those, it discloses workspace-scoped visibility ('as far as the workspace can see them'), the locked-grade state for ungraded targets, that the call returns data only and shows nothing to users, and that sightglass_show does not re-search. Missing only output shape/pagination detail, which no output schema exists to cover.

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 core action, then ordered by call mode, edge case, return nature, and next step. Every sentence carries operational information; nothing repeats the schema or annotations.

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 5-param, zero-required, no-output-schema tool, the description covers what comes back (scores, findings, fixes, resultId), the locked-grade case, and the handoff to sightglass_show. Only minor gap is not restating workspace/project scoping requirements, which the schema already documents.

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, but the description adds routing semantics the schema does not: requestId is mutually exclusive with a target while a grade is running, and adId reads a funnel versus sitePageId reading a page alone. projectId and workspaceId are left entirely to the schema, which documents them well.

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 an X-ray grade), then immediately concretizes it as scores, findings and fixes for an ad or site page, or status for a running grade. That distinguishes it clearly from sightglass_xray (which starts a grade) and sightglass_show (which renders the result).

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?

Explicit routing: pass requestId to poll a running grade, pass adId or sitePageId to read a finished grade. It also names the fallback when nothing is graded (offer sightglass_xray), the next step after reading (sightglass_show once with resultId), and defers multi-step competitor research to 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