Skip to main content
Glama

query

Search and filter code findings by ID, status, severity, file, source, tag, commit, or metadata, returning structured, paginated results with optional grouping.

Instructions

Search and filter findings. Returns structured results.

Supports lookup by ID via id= (single) or ids= (batch). Missing IDs are silently absent from the result so the caller can diff. For a strict single-ID fetch that errors on miss, use get instead.

Args:

  • id: Fetch a single finding by exact ID (e.g. CB-1383)

  • ids: Fetch multiple findings by ID list; missing IDs are skipped

  • status: Filter by status (open, in_progress, fixed, not_a_bug, wont_fix, stale, deferred). Aliases accepted. Use 'deferred' to find items with active blockers.

  • severity: Filter by severity (critical, high, medium, low)

  • category: Filter by exact category

  • file: Filter by file path (substring match)

  • source: Filter by source (claude, ruff, human, etc.). Compares the FIRST reporter — the column is frozen at first report (BT-4); later observations' sources live only in the occurrence ring (meta.occurrences[*].source), and an imported observation's ring source can be a peer tracker's.

  • tag: Filter by tag (finds findings containing this tag)

  • meta_key: Filter by metadata key existence. Reads the row's AUTHORED top-level meta (the column), never the occurrence ring.

  • meta_value: Filter by metadata value (requires meta_key; same authored top-level meta as meta_key — ring meta is not consulted)

  • commit: Matches the first-report column OR any occurrence in the ring (prefix match, hex validated) — "what was observed on this commit" (CB-128). staleness_check uses the NEWEST ring entry instead: a different question.

  • ref: Filter by reported_at_ref (exact match, never prefix) — matches the first-observed or manually assigned release ref (BT-4); per-occurrence refs in the ring are not consulted.

  • fingerprint: Filter by identity fingerprint (exact match)

  • group_by: Group results by: severity, category, status, file, source, tag, meta: (source groups count FIRST reporters — the column is frozen at first report). tag and meta:<key> do NOT partition the population: a card with two tags is counted under both, and a card carrying no value on the axis is in no group at all. The response therefore always carries population, ungrouped_rows, multi_group_rows and nonscalar_value_rows beside groups; the counts sum to the population only while the last three are 0. meta:<key> reads the AUTHORED top-level meta, like meta_key does, and a key holding ., [, ] or " is REFUSED — SQLite cannot tell such a name from a path (CB-167). A key that is absent, JSON null, or holds an object/array is ungrouped rather than invented. OVERLAPS grouping_tags DELIBERATELY and differently: that tool is a tag census with pair co-occurrence over status/category only; this is a distribution that composes with every filter on this tool.

  • limit: Max results. A limit you PASS is always honoured: 0 means NO results, and it means that with id/ids too (CB-158 — an id list used to raise any smaller limit to fit itself, so limit=0 came back full). A negative value is an error (it used to mean "no limit"). Omit it and the page size is 100, widened to fit an ids list so a batch lookup returns every id it asked for.

  • offset: Pagination offset

  • resolve_anchors: Resolve each result's location anchor against the repository HEAD, so a card whose code moved reports its new path. OFF by default because it costs 2-4 git calls per ANCHORED row and this is the primary read path; the cheap half — whether a card carries an anchor at all, and the refusal token when capture found nothing to grab — is in every result either way. get resolves one card by default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
idsNo
refNo
tagNo
fileNo
limitNo
commitNo
offsetNo
sourceNo
statusNo
categoryNo
group_byNo
meta_keyNo
severityNo
meta_valueNo
fingerprintNo
resolve_anchorsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.2.2

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and exceeds it. It discloses silent omission of missing IDs, the honored `limit=0` semantics, non-partitioning behavior of tag/meta grouping, first-reporter source semantics, meta/ring consultation boundaries, and the real git-call cost of `resolve_anchors`.

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

Conciseness4/5

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

The definition is dense and long, but it is organized as a clear bulleted Args list with the core purpose and ID behavior front-loaded. It earns most of its length given 17 parameters and zero schema descriptions, though a few historical bug notes could be trimmed without much loss.

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?

Given 17 parameters, no annotations, and no schema-level parameter descriptions, the description is unusually complete: every parameter is documented, subtle response guarantees are called out, and sibling comparisons fill selection context. An output schema exists, so not re-specifying return shapes is appropriate.

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?

Schema description coverage is 0%, so every parameter's meaning must come from the tool description. Each of the 17 parameters receives substantive semantics: enum values, matching modes, required companion params, prefix vs exact matching, and edge-case behavior for limit and offset.

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?

Opens with 'Search and filter findings' and 'Returns structured results', giving a specific verb and resource. It differentiates itself from siblings by explicitly contrasting with `get` for strict single-ID fetches, and later with `staleness_check` and `grouping_tags`.

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

Usage Guidelines5/5

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

Provides explicit routing: use `get` for a strict single-ID fetch that errors on miss, use `staleness_check` when asking about the newest ring entry, and contrasts its `group_by` distribution with the `grouping_tags` census. It tells the agent not only what the tool does but when a sibling is the better choice.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/faxik/codebugs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server