Skip to main content
Glama

assert_url

Read-onlyIdempotent

Verifies whether the current browser URL contains a specified substring pattern, returning PASS or FAIL instead of throwing for reliable assertions.

Instructions

[Agent Browser] Check if current URL contains a pattern (substring match). Returns [PASS]/[FAIL] in message - never throws. Use for verification. Returns data.match (bool) and data.url (current URL).

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": {
      "pattern": "<pattern>"
    },
    "name": "assert_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
patternYes

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), so the bar is lower; the description still adds real value by declaring the tool never throws and reporting PASS/FAIL in the message. It does not disclose case sensitivity or whether the check waits/retries, which matters for a verification tool with a wait_for_url sibling.

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 and matching rule. The return-value sentence duplicates an output schema that already exists, so it is slightly redundant rather than harmful.

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?

An output schema exists, so return details are a bonus, not a requirement. What an agent needs to call it correctly — the check performed, the non-throwing behavior, and the result fields — is present, with only matching-mode edge cases missing.

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 one parameter and 0% schema description coverage, the schema says only 'Pattern' (string); the description usefully clarifies substring matching. However, case sensitivity and whether regex/glob is accepted remain unspecified, leaving the single parameter partly ambiguous.

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 ('Check if current URL contains a pattern') and pins down the matching semantics as substring, which separates it in spirit from the retrieval sibling get_url. It does not explicitly name a sibling it is not, so it falls short of full differentiation.

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?

'Use for verification' gives a general context but no explicit when-to-use versus get_url or wait_for_url, and no when-not conditions. Usage is implied rather than specified.

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