Skip to main content
Glama

musicbrainz-mcp-server: get work

musicbrainz_get_work
Read-onlyIdempotent

Work (a composition — the song as written, distinct from any specific recording) by MBID: type, language(s), ISWCs (the work-level standard identifier), writer/composer/lyricist relationships (with the credited artist MBID), aliases, tags, and the recordings that perform it. The recording relationships are returned in full (the work lookup does not page them).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mbidYesWork MBID (36-character UUID).
inc_relationshipsNoInclude writer/composer relationships, recording relationships, and external links.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
mbidNoWork MBID.
tagsNoCommunity tags/genres (may be empty).
typeNoWork type (Song, Symphony, …). Omitted when unknown.
errorNoPresent when the call failed. Absent on success.
iswcsNoISWCs assigned to this work (may be empty).
titleNoWork title.
aliasesNoAlternate titles (may be empty).
languagesNoLyrics languages (ISO codes; may be empty).
externalLinksNoExternal resource links (url-rels) (may be empty).
relationshipsNoWriter/composer/lyricist relationships and recording-rels — the complete set (may be empty).
disambiguationNoShort qualifier. Omitted when absent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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": [
      +      "mbid",
      +      "title",
      +      "languages",
      +      "iswcs",
      +      "aliases",
      +      "tags",
      +      "relationships",
      +      "externalLinks"
      +    ]
      +  },
      +  {
      +    "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. Declared by this tool: `invalid_mbid`: The MBID is malformed or the all-zeros sentinel (MusicBrainz returns HTTP 400). `entity_not_found`: The MBID is well-formed but no work exists with it (MusicBrainz returns HTTP 404). Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "invalid_mbid",
      +            "entity_not_found"
      +          ],
      +          "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: -[
      -  "mbid",
      -  "title",
      -  "languages",
      -  "iswcs",
      -  "aliases",
      -  "tags",
      -  "relationships",
      -  "externalLinks"
      -]
  2. Changed5 schema fields changed
    • removedOutput schema / properties / cap
      Removed value: -{
      -  "description": "The one-page cap that was applied. Absent when not truncated.",
      -  "type": "number"
      -}
    • removedOutput schema / properties / notice
      Removed value: -{
      -  "description": "How to fetch the complete list of recordings of this work when truncated.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / relationships / description
      Previous value: -"Writer/composer/lyricist relationships and recording-rels (may be empty; recording-rels capped at one page)."New value: +"Writer/composer/lyricist relationships and recording-rels — the complete set (may be empty)."
    • removedOutput schema / properties / shown
      Removed value: -{
      -  "description": "Number of recording relationships returned. Absent when not truncated.",
      -  "type": "number"
      -}
    • removedOutput schema / properties / truncated
      Removed value: -{
      -  "description": "True when the recording relationships hit the one-page cap. Absent when the full set fit in one page.",
      -  "type": "boolean"
      -}
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint. The description adds a valuable behavioral detail: 'The recording relationships are returned in full (the work lookup does not page them),' which goes beyond the annotations. This helps the agent understand the return behavior.

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 description is a single, dense sentence that front-loads the definition and then lists content. Every phrase adds value, with no filler. The list is long but compact, making it efficient if slightly dense.

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?

Given the presence of an output schema, annotations, and a detailed description, the tool is well-covered. The description covers the main return fields and the non-paging behavior. It could mention error handling or rate limits, but those are not specified and are likely covered elsewhere.

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% with both parameters described. The description repeats the list of included relationships but does not add new parameter-specific semantics. It clarifies the concept of a work but not the syntax or behavior of the parameters beyond the schema.

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 clearly states the tool gets a work by MBID, defining 'work' as a composition distinct from recordings. It lists specific fields returned (type, languages, ISWCs, relationships, aliases, tags, recordings), which distinguishes it from sibling get_* tools for other entity types.

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 for use: fetch a work by its MBID. It does not explicitly mention alternatives or exclusions, but the tool name and definition imply the appropriate use case. A more explicit 'use this instead of X when...' would make it a 5.

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.