Skip to main content
Glama

musicbrainz-mcp-server: search entities

musicbrainz_search_entities
Read-onlyIdempotent

Full-text Lucene search for artist, release-group, release, recording, work, label or area. Returns matches in MusicBrainz score-descending order, with MBIDs and type-specific metadata. Use area search (e.g. area:seattle) to resolve musicbrainz_browse_entities link.area. Area rows include ISO codes and immediate parents where available. Chain other MBIDs into the matching musicbrainz_get_* tool. Release rows include status and edition metadata where available. Release-groups include secondary types and recordings include first-release dates where available. Supports field scoping (e.g. artist:radiohead AND country:GB). Only the first 500 matches are accessible; narrow the query or browse complete linked sets.

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": {
      "entityType": "<entityType>",
      "query": "<query>"
    },
    "name": "musicbrainz_search_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPositive integer page size (default 25); values above 100 are clamped to 100 with a notice. With MUSICBRAINZ_CLAMP_OVERSIZED_LIMITS=off, maximum 100 is enforced.
queryYesLucene query string; must contain non-whitespace text. Plain text matches names/titles; field scoping (e.g. `artist:`, `country:`, `tag:`) is supported. Sent to MusicBrainz exactly as given.
offsetNoResult offset for pagination (0-based, below 500). A page crossing the 500-match ceiling is reduced to the remaining window.
entityTypeYesWhich entity type to search.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoLimit clamp, pagination and area browse guidance, including zero matches, exhausted pages, and empty-page discrepancies.
offsetNoThe effective zero-based result offset used for this page.
resultsNoRanked matches, in MusicBrainz score-descending order.
entityTypeNoThe entity type that was searched.
totalCountNoTotal matches upstream before the limit/offset window.
effectiveQueryNoThe query string as sent to MusicBrainz.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • changedInput schema / properties / entityType / enum
      Previous value: -[
      -  "artist",
      -  "release-group",
      -  "release",
      -  "recording",
      -  "work",
      -  "label"
      -]New value: +[
      +  "artist",
      +  "release-group",
      +  "release",
      +  "recording",
      +  "work",
      +  "label",
      +  "area"
      +]
    • changedOutput schema / properties / notice / description
      Previous value: -"Limit clamp and pagination guidance, including zero matches, exhausted pages, and empty-page discrepancies."New value: +"Limit clamp, pagination and area browse guidance, including zero matches, exhausted pages, and empty-page discrepancies."
    • addedOutput schema / properties / results / items / properties / barcode
      Added value: +{
      +  "description": "UPC/EAN. Empty means confirmed absent. Omitted when unknown.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / formats
      Added value: +{
      +  "description": "Known media formats in medium order. Omitted when none are known.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / results / items / properties / iso3166_1
      Added value: +{
      +  "description": "ISO 3166-1 codes for an area in upstream order. Omitted when empty.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / results / items / properties / iso3166_2
      Added value: +{
      +  "description": "ISO 3166-2 subdivision codes for an area in upstream order. Omitted when empty.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / results / items / properties / iso3166_3
      Added value: +{
      +  "description": "ISO 3166-3 historical codes for an area in upstream order. Omitted when empty.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / results / items / properties / labelInfo
      Added value: +{
      +  "description": "Known label and catalog-number pairings. Omitted when none are known.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "Label + catalog-number pairing for the release.",
      +    "properties": {
      +      "catalogNumber": {
      +        "description": "Catalog number on this release. Omitted when absent.",
      +        "type": "string"
      +      },
      +      "labelId": {
      +        "description": "Label MBID — chain to musicbrainz_get_label. Omitted when absent.",
      +        "type": "string"
      +      },
      +      "labelName": {
      +        "description": "Label name. Omitted when absent.",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / results / items / properties / mbid / description
      Previous value: -"MusicBrainz identifier (UUID) — chain into the matching musicbrainz_get_* tool."New value: +"MusicBrainz identifier (UUID). Use an area MBID for musicbrainz_browse_entities link.area; otherwise use the matching musicbrainz_get_* tool."
    • changedOutput schema / properties / results / items / properties / name / description
      Previous value: -"Entity name (artist/label) or title (release-group/release/recording/work)."New value: +"Entity name (artist/label/area) or title (release-group/release/recording/work)."
    • addedOutput schema / properties / results / items / properties / packaging
      Added value: +{
      +  "description": "Packaging type. Omitted when unknown.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / partOf
      Added value: +{
      +  "description": "Immediate parent areas reported by MusicBrainz, in upstream order. Omitted when none are available.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "An immediate parent area.",
      +    "properties": {
      +      "mbid": {
      +        "description": "Immediate parent area MBID.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Immediate parent area name.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "mbid",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / results / items / properties / releaseEvents
      Added value: +{
      +  "description": "Release dates and countries in upstream event order. Omitted when none are known.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "One dated or country-specific release event.",
      +    "properties": {
      +      "country": {
      +        "description": "ISO 3166-1 code of the event area. Omitted when unknown.",
      +        "type": "string"
      +      },
      +      "date": {
      +        "description": "Event date, which may be partial. Omitted when unknown.",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / results / items / properties / releaseGroupId
      Added value: +{
      +  "description": "Parent release-group MBID — chain to musicbrainz_get_release_group.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / trackCount
      Added value: +{
      +  "description": "Reported release track count, or sum of all medium counts. Omitted when unknown.",
      +  "type": "number"
      +}
    • changedOutput schema / properties / results / items / properties / type / description
      Previous value: -"Entity subtype (artist type, release-group primary type, work type, label type). Omitted when absent."New value: +"Entity subtype (artist, work, label or area type, or release-group primary type). Omitted when absent."
  2. Changed5 schema fields changed
    • changedInput schema / properties / offset / description
      Previous value: -"Result offset for pagination (0-based)."New value: +"Result offset for pagination (0-based, below 500). A page crossing the 500-match ceiling is reduced to the remaining window."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `blank_query`: The query contains only whitespace (it is blank after trimming). Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `search_window_exceeded`: The offset is at or beyond the 500-match search window. `blank_query`: The query contains only whitespace (it is blank after trimming). Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "blank_query"
      -]New value: +[
      +  "search_window_exceeded",
      +  "blank_query"
      +]
    • addedOutput schema / properties / results / items / properties / firstReleaseDate
      Added value: +{
      +  "description": "Recording first-release date, possibly partial. Omitted when absent.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / properties / secondaryTypes
      Added value: +{
      +  "description": "Release-group secondary classifications, in upstream order. Omitted when empty; absence does not establish a studio album.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Changed5 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum results to return (1–100)."New value: +"Positive integer page size (default 25); values above 100 are clamped to 100 with a notice. With MUSICBRAINZ_CLAMP_OVERSIZED_LIMITS=off, maximum 100 is enforced."
    • changedInput schema / properties / limit / maximum
      Previous value: -100New value: +9007199254740991
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "entityType",
      -      "results",
      -      "effectiveQuery",
      -      "totalCount"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "entityType",
      +      "offset",
      +      "results",
      +      "effectiveQuery",
      +      "totalCount"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when zero results matched — how to broaden or correct the query."New value: +"Limit clamp and pagination guidance, including zero matches, exhausted pages, and empty-page discrepancies."
    • addedOutput schema / properties / offset
      Added value: +{
      +  "description": "The effective zero-based result offset used for this page.",
      +  "type": "number"
      +}
  4. Changed1 schema field changed
    • addedOutput schema / properties / results / items / properties / status
      Added value: +{
      +  "description": "Release status (e.g. Official or Bootleg). Omitted for other entity types or when absent.",
      +  "type": "string"
      +}
  5. Changed3 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"Lucene query string. Plain text matches names/titles; field scoping (e.g. `artist:`, `country:`, `tag:`) is supported."New value: +"Lucene query string; must contain non-whitespace text. Plain text matches names/titles; field scoping (e.g. `artist:`, `country:`, `tag:`) is supported. Sent to MusicBrainz exactly as given."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode."New value: +"Machine-readable failure mode. Declared by this tool: `blank_query`: The query contains only whitespace (it is blank after trimming). Other values are possible when a failure originates below the handler."
    • addedOutput schema / properties / error / properties / data / properties / reason / examples
      Added value: +[
      +  "blank_query"
      +]
  6. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "entityType",
      +      "results",
      +      "effectiveQuery",
      +      "totalCount"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode.",
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "entityType",
      -  "results",
      -  "effectiveQuery",
      -  "totalCount"
      -]
  7. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/open-world, and the description adds real behavioral context beyond them: results are score-descending, only the first 500 matches are reachable, and each entity type returns specific metadata (ISO codes and parents for areas, status/edition for releases, secondary types for release-groups, first-release dates for recordings). It does not mention rate limiting or authentication, which for an open-world public API would be useful.

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?

Purpose is front-loaded in the first sentence and the operational limits and chaining guidance follow logically. It is somewhat long and repetitive in the 'X include Y where available' pattern across area, release, release-group, and recording rows, but no sentence is entirely wasted.

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 4-parameter search tool with an output schema and full schema coverage, the description supplies everything else an agent needs: result ordering, the hard 500-match window, cross-tool chaining, and the area-resolution workflow. Return-value detail is appropriately delegated to the output schema.

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 coverage is 100%, so limit, offset, query, and entityType are already fully documented including the 100 clamp and the 500-match ceiling. The description reinforces query field-scoping syntax (artist:radiohead AND country:GB) and the 500 cap, but that largely duplicates schema text rather than adding new semantics. Baseline 3 is appropriate.

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 a specific verb and resource: 'Full-text Lucene search for artist, release-group, release, recording, work, label or area', which names the entity scope and search mechanism. It further separates itself from siblings by telling the agent to resolve browse link.area via area search and to chain results into the matching musicbrainz_get_* tool.

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?

Gives concrete routing guidance: use area search (e.g. area:seattle) to resolve musicbrainz_browse_entities link.area, and chain returned MBIDs into musicbrainz_get_* lookups. It also contrasts narrowing a query against browsing complete linked sets, though it stops short of an explicit 'do not use this for X' exclusion for browse_entities generally.

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.