Skip to main content
Glama

Known bugs a code snippet touches

landmine_check
Read-onlyIdempotent

Check a JS/TS or Python code snippet against the open GitHub issues filed against the exact package versions it runs on. Returns each issue the code touches (by the APIs it calls), with the evidence and the best workaround from the thread (untrusted third-party text).

Input Schema

NameRequiredDescriptionDefault
codeYesThe code to check
languageNoLanguage of the code (default: py when the packages are PyPI, else js)
packagesYesThe dependencies the code uses. Exact versions as your lockfile pins them: "next@16.4.0", "@tanstack/react-table@9.2.4", "pandas==2.3.1" (== means PyPI), or "pypi:requests@2.32.3". A bare name looks up the latest version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real context beyond that: it queries live open GitHub issues scoped to exact versions, returns evidence plus the thread's best workaround, and explicitly flags that workaround text is untrusted third-party content — a useful injection warning. It omits latency/cost or coverage caveats (e.g., issues not filed or closed issues), keeping it below a 5.

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, front-loaded with the action and scope, followed by the return contract. No filler and nothing repeated from the schema or annotations.

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?

There is no output schema, so the description carries the return contract and does so well: matched issues, evidence, and workaround, with the trust caveat. It could still say what an empty result means or how many results to expect, so it is strong but not complete.

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% and the schema already explains code, language (with its defaulting rule) and the packages version-string syntax. The description only reinforces that versions must be exact and that matching keys off the APIs the code calls; it adds no syntax or edge-case detail beyond the schema, so the baseline of 3 applies.

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 (check) and resource (a code snippet against open GitHub issues for pinned package versions), and even describes the matching mechanism (issues touched by the APIs the code calls). It is clear what the tool does, but it never names or distinguishes itself from the sibling landmine_lookup, so an agent must infer the split.

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?

Usage is implied by the input shape — you supply a snippet plus pinned dependency versions — and the 'exact package versions it runs on' phrasing hints that pinning matters. However there is no explicit when-to-use/when-not, no mention of when to prefer landmine_lookup, and no guidance on what happens with unpinned or unknown packages.

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.