Skip to main content
Glama

Search the works

search_works
Read-onlyIdempotent

Locate IMSLP works by title, composer, or page text; retrieve page names, snippets, and pagination to find scores and recordings.

Instructions

Search the works of IMSLP by title, by composer, or by words printed on their pages. Each row names the page of a work, which is how get_work and list_work_files address it: a title is written 'Work (Composer)', and the row splits it into the work and the person it names. IMSLP publishes no count of what a search matched, so 'total' is always null; 'has_more' and 'next_offset' say whether the library held more rows and where to read on from. A snippet is words taken from the page around the match. The library writes its pages in wikitext, so a snippet sometimes shows the name of a file rather than a sentence, and some rows carry none at all. The library titles a work in the language its composer used, so 'Die Zauberflöte' and not 'The Magic Flute', 'Sinfonia' and not 'Symphony'. A title translated into another language finds nothing, or finds only the works written about it: rows that look thin for a famous work are a sign the work sits under its original title, not that the library lacks it. Searching for a person by name finds the works naming them; search_people finds the person. When you show a result to a user, credit IMSLP and link the page.

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

Input Schema

NameRequiredDescriptionDefault
limitNoRows to serve, from 1 to 50.
queryYesWhat to look for in the works of the library. Words are matched across the page, not only titles.
offsetNoRows to skip, using the 'next_offset' a previous answer named.

Output Schema

NameRequiredDescriptionDefault
limitYes
notesYes
queryYesThe search as it reached the library.
totalYesAlways null: IMSLP publishes no count of what a search matched.
offsetYes
sourceYes
licenseYes
resultsYes
has_moreYesTrue when the library named an offset to continue from.
returnedYes
next_offsetYesThe offset to read on from, as the library named it. Null when it named none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.1.0
    • removedOutput schema / properties / results / items / properties / composer / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / results / items / properties / composer / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / results / items / properties / last_edited / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / results / items / properties / last_edited / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / results / items / properties / snippet / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / results / items / properties / snippet / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv1.0.0

TDQS

A4.3/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, non-destructive, so the safety bar is met; the description adds real behavioral context beyond that: 'total' is always null because IMSLP publishes no counts, pagination is expressed via has_more/next_offset, and snippets are wikitext fragments that may show filenames or be absent. The only gap is no guidance on rate limits or result-size expectations beyond the 1–50 limit.

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

Conciseness3/5

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

Purpose and the key sibling contrast are front-loaded, but the body sprawls across many sentences, several of which re-explain output fields (total, has_more, next_offset) that the output schema already covers. The original-language title caveat earns its space; the snippet and null-total explanations are padding given the output schema.

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?

Everything an agent needs to call and interpret this tool correctly is present: what matches, what a row addresses, how to page, why results can look thin, and the attribution requirement. Return-value detail is partly redundant with the output schema, but nothing material is missing.

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% and every parameter is already documented in the schema, including offset's 'next_offset' convention and limit's 1–50 range. The description reinforces the query semantics ('words printed on their pages', matching across the whole page) and the pagination loop, but adds little the schema does not already say, so the baseline 3 applies.

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?

States a specific verb and resource plus the three match modes (title, composer, words printed on pages), and explicitly contrasts with search_people ('Searching for a person by name finds the works naming them; search_people finds the person'). An agent can distinguish it from every sibling without opening a schema.

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?

Names the alternative tool and the condition that selects it (person lookup → search_people), and explains when to use get_work/list_work_files instead by tying rows to page names. It also gives a diagnostic rule for misleading thin results (translated titles), which is genuine when-to-use guidance rather than restated purpose.

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