Skip to main content
Glama

Inspect editors

inspect_editor
Read-only

Reports which editor types exist on the page (Monaco API/DOM, React fibers, CodeMirror, Ace) to diagnose why code-writing operations fail.

Instructions

Diagnostics: report which editors exist on the page (Monaco global API, Monaco DOM nodes, React fibers, CodeMirror, Ace). Use this when set_code fails.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description adds that this is a pure diagnostic that enumerates multiple detection mechanisms rather than returning editor content. It does not describe the shape of the report (framework names vs. selectors vs. counts), which leaves a modest gap for a tool with no output schema.

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?

Two tight sentences, front-loaded with the purpose and followed by the trigger condition. The parenthetical enumeration is dense but earns its place by telling the agent exactly what evidence the diagnostic gathers, which affects how the result should be interpreted.

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 zero-parameter, read-only diagnostic with no output schema, the definition covers what is inspected and when to reach for it. The remaining gap is the return value: an agent is not told whether the report lists framework names, node references, or actionable selectors for repairing a failed set_code.

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?

The tool takes zero parameters, so the schema baseline of 4 applies; there is nothing about arguments the description needs to explain. It also correctly implies no scoping input is required, since the diagnostic runs against the current page.

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 ('report which editors exist on the page') and then enumerates the detection surfaces (Monaco global API, Monaco DOM nodes, React fibers, CodeMirror, Ace), which makes it immediately distinguishable from content/code tools like get_code or get_content.

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

Usage Guidelines4/5

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

'Use this when set_code fails' gives an explicit, concrete trigger tied to a named sibling, which is stronger than most definitions. It stops short of stating when NOT to use it (e.g. as a general page probe) or what to do with the diagnostic result, so it is clear rather than complete.

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