Skip to main content
Glama

Search Bugzilla bugs

search_bugs
Read-onlyIdempotent

Find bugs in Mozilla's Bugzilla using quicksearch and structured filters for product, component, status, keywords, and dates. Returns matching bug lists or counts.

Instructions

Search bugzilla.mozilla.org for bugs. Combine free-text quicksearch with structured filters.

Quicksearch syntax highlights (https://bugzilla.mozilla.org/page.cgi?id=quicksearch.html):

  • Plain words search summary/comments/whiteboard; a leading ALL includes closed bugs, otherwise only open bugs are matched.

  • Prefix shortcuts: product:Firefox, component:"Address Bar", status:NEW, assignee:someone@mozilla.com, keyword:crash, whiteboard:[foo], flag:needinfo?, P1, S2, regression.

  • A bare bug number returns that bug.

Structured filters (product/component/status/...) apply to all bugs regardless of open/closed unless status is given. status accepts real statuses (UNCONFIRMED, NEW, ASSIGNED, REOPENED, RESOLVED, VERIFIED, CLOSED) or the pseudo-values __open__ / __closed__ / __all__. Time filters accept ISO timestamps (2024-01-01T00:00:00Z), dates (2024-01-01) or relative values like -7d, -2w, -1m, -1y. Use advanced_filters for anything not covered (e.g. {field: "cf_crash_signature", operator: "substring", value: "nsThread"}, {field: "flagtypes.name", operator: "substring", value: "needinfo?"}, {field: "delta_ts", operator: "changedafter", value: "-7d"}). Full-text comment searches (longdesc) are slow on bugzilla.mozilla.org; always narrow them with product/status filters. Set count_only to get just the number of matching bugs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoBug type(s)
limitNoMaximum bugs to return (default 25)
orderNoSort order, comma-separated field names with optional DESC, e.g. 'changeddate DESC' or 'priority,bug_id'. Bugzilla defaults to relevance/id.
offsetNoSkip this many results (for paging)
op_sysNo
statusNoStatus value(s) or __open__ / __closed__ / __all__
creatorNoReporter email/login
productNoProduct name(s), e.g. ['Firefox', 'Core', 'Toolkit', 'DevTools', 'Fenix']
summaryNoSubstring that must appear in the summary (case-insensitive)
versionNo
keywordsNoKeyword(s) the bug must have, e.g. ['regression', 'crash', 'good-first-bug']
platformNo
priorityNoPriority value(s): P1..P5 or '--'
severityNoSeverity value(s): S1..S4, N/A, or '--'
componentNoComponent name(s), e.g. ['Address Bar']
count_onlyNoReturn only the count of matching bugs
resolutionNoResolution(s), e.g. ['FIXED'], ['---'] for unresolved
whiteboardNoSubstring that must appear in the status whiteboard
assigned_toNoAssignee email/login; use 'nobody@mozilla.org' for unassigned
quicksearchNoFree-text quicksearch query, e.g. 'ALL crash on startup product:Firefox'
creation_timeNoOnly bugs created at/after this time (ISO date/time or relative like -30d)
include_fieldsNoBug fields to return. Defaults to a compact summary set. Use ['_default'] for Bugzilla's default field set or ['_all'] for everything.
advanced_filtersNoBugzilla boolean-chart filters (f1/o1/v1). All filters are AND-ed.
last_change_timeNoOnly bugs changed at/after this time (ISO date/time or relative like -7d)
target_milestoneNo
additional_paramsNoEscape hatch: raw query parameters passed straight to /rest/bug (e.g. {"cf_fx_points": "3"})

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Despite strong annotations (readOnlyHint, openWorldHint, idempotentHint, destructiveHint), the description adds substantial behavioral details: quicksearch matches only open bugs unless 'ALL' is prefixed, structured filters ignore open/closed status unless status is provided, full-text comment searches are slow and should be narrowed, and count_only returns just the number of matches. These go well beyond the annotations and materially help the agent predict tool behavior.

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?

The description is long but every section earns its place: quicksearch syntax, structured filter semantics, time formats, advanced filters, performance warning, and count_only. It is well-structured with line breaks and bullet-driven examples, and it fronts the core purpose before diving into syntax. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 26-parameter tool with no output schema, the description covers the critical usage nuances: searching open vs closed bugs, status pseudo-values, time formats, advanced filter construction, and the slow-longdesc warning. It also mentions count_only and additional_params escape hatch behavior. Combined with the schema, it is complete enough for correct invocation without missing key scenarios.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With igh schema coverage (85%), the baseline is 3, but the description significantly enriches parameter semantics. It explains quicksearch syntax, status pseudo-values (__open__/__closed__/__all__), time filter formats (ISO timestamps, dates, relative like -7d), and gives concrete advanced_filter examples. This goes far beyond the schema descriptions and directly improves invocation correctness.

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?

The description opens with 'Search bugzilla.mozilla.org for bugs,' clearly identifying the specific verb and resource, and it goes further to explain that free-text quicksearch can be combined with structured filters. This distinguishes it from sibling tools like get_bug (which retrieves a specific bug) and get_bug_comments, since search_bugs is explicitly the discovery/search tool. The scope and action are unambiguous.

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 description gives clear context that this tool is for searching bugs, and the sibling list reinforces that it is the search/query tool versus retrieval tools like get_bug. However, it does not explicitly state when NOT to use it (e.g., 'if you already have a bug ID, use get_bug instead') or name an alternative tool. The context is clear but exclusions are left implicit.

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