Skip to main content
Glama

Observe Web Session

observe_web_session
Idempotent

Arms a CDP observation window during live page use and records navigation, redirect, lifecycle, and failure events, with optional origin filtering to retain only relevant traffic.

Instructions

Arm a CDP observation window of the requested duration while the user operates the page. By default it follows the selected target's current origin; an explicit origin list controls which origins may be retained. Records navigation, redirect, lifecycle, and failure events.

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": {
      "cdp_endpoint": "<cdp_endpoint>",
      "target_id": "<target_id>"
    },
    "name": "observe_web_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
target_idYes
cdp_endpointYes
observation_msNo
allowed_originsNo
command_timeout_msNo

Output Schema

NameRequiredDescriptionDefault
subjectYes
providerYes
authorityYes
locationsYes
operationYes
confidenceYes
parametersYes
raw_resultYes
environmentYes
evidence_idYes
limitationsYes
evidence_linksYes
predicate_typeYes
analysis_profileYes
caller_input_pathNo
normalized_resultYes
caller_input_pathsNo
relationship_coverageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

B3.4/5.0
Behavior3/5

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

The description adds real behavior beyond the annotations: origin-retention scoping, the default of following the target's current origin, and the four recorded event families. It omits the single most consequential trait for an agent: whether the call blocks for the full observation window or returns immediately after arming, and how command_timeout_ms interacts with observation_ms. Annotations already cover the safety profile (idempotent, non-destructive, open-world), so this gap is the deciding one.

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 sentences, front-loaded with the action and duration, then default versus explicit origin behavior, then captured events. No filler; only minor loss for not explicitly labeling the blocking/async contract in a short fourth clause.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value explanation is rightly omitted, and the event taxonomy is stated. Still missing: how to obtain cdp_endpoint/target_id, the semantics of command_timeout_ms, and the synchronous-versus-asynchronous nature of the observation window — all material for a 5-parameter open-world tool.

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?

With 0% schema description coverage, the description must carry parameter meaning. It does explain observation_ms ('requested duration'), allowed_origins ('which origins may be retained') and the default behavior tied to target_id, but cdp_endpoint and command_timeout_ms are never mentioned, and no format detail for origins is given.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Arm a CDP observation window of the requested duration') plus the event categories captured, so the agent knows exactly what the call does. It does not differentiate itself from any sibling (e.g. list_browser_targets, which an agent might need first to obtain target_id), but the action itself is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'while the user operates the page' implies the workflow context (arm first, then let the user browse), which is useful implicit guidance. However, there is no explicit when-to-use vs when-not, no stated prerequisite that a valid cdp_endpoint and target_id must already be known, and no mention of an alternative way to capture the same events.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.