Skip to main content
Glama

check_badge

Read or assert a Chrome extension's action icon badge text and background color, including per-tab checks, to verify badge state during automated extension testing.

Instructions

Read or assert the extension icon badge text and background color from chrome.action.

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": {
      "action": "<action>"
    },
    "name": "check_badge"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesget: return current badge text and color; assert_text: check badge text equals expected; assert_color: check badge background color matches expected RGBA
tab_idNoTab ID to scope the badge check (optional, defaults to global badge)
expected_textNoExpected badge text (for assert_text)
expected_colorNoExpected RGBA color array e.g. [255, 0, 0, 255] (for assert_color)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure, and it does not say whether the tool is read-only, what permissions or extension context are required, or what happens on a failed assertion (throw, return false, error). For an assertion-style tool, failure semantics are exactly what an agent needs and they are absent.

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?

A single compact sentence, front-loaded with the verb and resource, with no filler. It is efficient, though its brevity contributes to the missing behavioral and usage context.

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?

For a four-parameter tool with no annotations and no output schema, the description covers the core purpose but omits return shape for the get mode and failure/result semantics for the assert modes. It is adequate to start an invocation but leaves meaningful gaps.

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 description coverage is 100%, so the enum modes, tab scoping, expected_text and expected_color are all already documented in the schema. The description adds only the high-level notion that the text and color are read or compared, which is baseline-appropriate but adds no new semantics.

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?

The description names a specific verb pair (read or assert) and a specific resource (extension icon badge text and background color) via chrome.action, which is concrete enough for an agent to identify the tool. It stops short of differentiating itself from siblings such as run_assertion or interact_with_popup, which an agent might reasonably confuse it with.

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

Usage Guidelines2/5

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

The description gives no guidance on when to choose this tool over alternatives like run_assertion or interact_with_popup, and no conditions for when not to use it. The action enum in the schema implies the three modes, but the description itself offers no usage framing.

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