Skip to main content
Glama
htshongany

Baseline Checker

by htshongany

check_baseline_from_selection

Analyze selected code, active file, or clipboard content for Baseline compatibility without manual copying. Provides browser support and recommendations.

Instructions

AUTOMATIC CODE RETRIEVAL: Analyzes the currently selected code or active file for Baseline compatibility. No need to copy/paste code - this tool automatically gets the code from the editor. Use this to save tokens and avoid manual code copying.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesSource of code to analyze: 'selection' for selected text, 'active_file' for current file, or 'clipboard' for clipboard content

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose one meaningful behavior — that the code is pulled automatically from the editor rather than supplied as an argument — but says nothing about permissions, failure modes when nothing is selected, or what the analysis returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The front-loaded 'AUTOMATIC CODE RETRIEVAL:' label is good structure. However, the last two clauses ('No need to copy/paste code' and 'avoid manual code copying') restate the same point, so a third of the text is redundant.

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 single-parameter read tool with no output schema and no annotations, the description adequately covers the input-source mechanics. The main gap is lack of any contrast with the sibling check_baseline and no hint about the result shape.

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 coverage is 100% and the enum values are fully documented in the schema, so baseline is 3. The description mentions only 'selection' and 'active file', omitting the clipboard enum value entirely, so it neither adds nor fully mirrors the schema.

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+resource ('analyzes ... code ... for Baseline compatibility') and clarifies the input is auto-retrieved rather than pasted. It never names the sibling check_baseline, so the agent must infer the distinction from the 'no copy/paste' framing rather than an explicit contrast.

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 description implies when to use it ('no need to copy/paste code'), which is useful context. But it never states when to prefer the sibling check_baseline or what distinguishes the two, leaving the routing decision to inference.

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

Deploy Server

Other Tools