Skip to main content
Glama

Check code for blank-render bugs

check_snippet
Read-onlyIdempotent

Scans React Native TSX that uses these components for the mistakes that render a blank screen with no error: animated opacity on glass, the flex: 1 collapse, a clipped lens, a conditionally mounted surface. A read-only text scan, not a guarantee; verify_app checks a whole emitted project.

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": {
      "code": "<code>"
    },
    "name": "check_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesthe TSX to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / code / description
      Previous value: -"the TSX snippet to check"New value: +"the TSX to check"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real value by disclosing the key limitation — 'a read-only text scan, not a guarantee' — which tells the agent results are heuristic and may miss bugs, and by naming the four concrete failure modes it detects.

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 sentences, no filler. The bug-class enumeration is front-loaded and the scope/limitation caveat plus sibling routing come after, which is the right order for an agent skimming for fit.

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 one-parameter read-only scanner with no output schema, the description covers purpose, scope, limitation, and alternative. The only gap is that it never hints at the shape of the result (a list of findings? per-line diagnostics?), which the agent must discover by calling it.

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?

Schema coverage is 100% and the single parameter is documented as 'the TSX to check', so the baseline is 3. The description adds meaning by constraining the input to React Native TSX that uses the specific components, which tells the agent what kind of code is in scope rather than any string.

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 (scans) and resource (React Native TSX using these components), then enumerates the exact bug classes it targets: animated opacity on glass, flex:1 collapse, clipped lens, conditionally mounted surface. It also explicitly distinguishes itself from verify_app, so an agent can pick between them without opening either schema.

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?

The closing clause routes the agent: this tool for a snippet, verify_app for a whole emitted project. That is a clear usage boundary, though it stops short of stating when in the workflow to call it (e.g., before emit_app) or any exclusions beyond the verify_app contrast.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.