Skip to main content
Glama

Get Author Works

openlibrary_get_author_works
Read-only

List works by an author. Returns titles, cover IDs, and work OLIDs for drilling into editions or details. For the author's works ranked by edition count, call openlibrary_search_books with query "author_key:<author_id>" and sort "editions". Use openlibrary_get_author for author bio and details, or openlibrary_get_editions to explore specific printings.

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": {
      "author_id": "<author_id>"
    },
    "name": "openlibrary_get_author_works"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax works to return; values above 1000 apply 1000 when limit clamping is enabled.
offsetNoZero-based offset for pagination.
author_idYesOpen Library Author ID (OL…A, e.g., "OL24638A"), in any case. A leading "/authors/" prefix is stripped if provided.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
totalNoTotal works Open Library reports for this author; the count can exceed the works it serves.
worksNoWorks by this author, up to limit.
noticeNoGuidance for an empty page past the last served work, a requested limit above the page ceiling, or a merged author ID.
offsetNoZero-based offset of the first returned result — echoes the requested offset, so an empty page still records the offset that produced it.
author_idNoOpen Library Author ID.
totalCountNoTotal works Open Library reports for this author across all pages; the count can exceed the works it serves.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / author_id / description
      Previous value: -"Open Library Author ID (OL…A). A leading \"/authors/\" prefix is stripped if provided."New value: +"Open Library Author ID (OL…A, e.g., \"OL24638A\"), in any case. A leading \"/authors/\" prefix is stripped if provided."
    • changedInput schema / properties / limit / description
      Previous value: -"Max works to return; values above 100 apply 100 when limit clamping is enabled."New value: +"Max works to return; values above 1000 apply 1000 when limit clamping is enabled."
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance for a merged author ID or a requested limit above the page ceiling."New value: +"Guidance for an empty page past the last served work, a requested limit above the page ceiling, or a merged author ID."
    • changedOutput schema / properties / total / description
      Previous value: -"Total works by this author."New value: +"Total works Open Library reports for this author; the count can exceed the works it serves."
    • changedOutput schema / properties / totalCount / description
      Previous value: -"Total works by this author across all pages."New value: +"Total works Open Library reports for this author across all pages; the count can exceed the works it serves."
  2. Changed3 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Max works to return."New value: +"Max works to return; values above 100 apply 100 when limit clamping is enabled."
    • changedInput schema / properties / limit / maximum
      Previous value: -100New value: +9007199254740991
    • changedOutput schema / properties / notice / description
      Previous value: -"Set when the requested author ID was merged into a different canonical ID."New value: +"Guidance for a merged author ID or a requested limit above the page ceiling."
  3. Changed3 schema fields changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "total",
      -      "author_id",
      -      "works"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "total",
      +      "offset",
      +      "author_id",
      +      "works"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `not_found`: Author ID does not exist on Open Library. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: Author ID does not exist on Open Library, names a record that is not an author (a work or edition OLID), or redirects to no reachable author. Other values are possible when a failure originates below the handler."
    • addedOutput schema / properties / offset
      Added value: +{
      +  "description": "Zero-based offset of the first returned result — echoes the requested offset, so an empty page still records the offset that produced it.",
      +  "type": "number"
      +}
  4. 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": [
      +      "total",
      +      "author_id",
      +      "works"
      +    ]
      +  },
      +  {
      +    "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: `not_found`: Author ID does not exist on Open Library. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "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: -[
      -  "total",
      -  "author_id",
      -  "works"
      -]
  5. Changed1 schema field changed
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Set when the requested author ID was merged into a different canonical ID.",
      +  "type": "string"
      +}
  6. Changed1 schema field changed
    • addedOutput schema / properties / totalCount
      Added value: +{
      +  "description": "Total works by this author across all pages.",
      +  "type": "number"
      +}
  7. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description adds that results carry work OLIDs intended for drilling into editions or details, which is useful planning context beyond the annotations. It does not discuss pagination behavior or result-size characteristics, but the schema's limit/offset parameters and output schema partially cover that ground.

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?

Three sentences, front-loaded with purpose and payload before any routing detail, with no filler or repetition. Every sentence carries distinct information: what it does, what it returns, and when to pick an alternative.

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?

With an output schema present, the description need not enumerate return fields, and with full schema coverage the parameters are self-explanatory. Combined with annotations and the explicit sibling routing, nothing an agent needs in order to call this tool correctly 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 description coverage is 100%, so author_id format, limit, and offset are fully documented in the schema. The description only references author_id indirectly through the sibling query syntax and adds no new semantics for limit or offset, so the baseline of 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 ("List works by an author") and immediately defines the payload ("titles, cover IDs, and work OLIDs"), so the agent knows exactly what comes back. It also distinguishes itself from three named siblings, leaving no ambiguity about its role.

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?

Gives explicit routing rules: use openlibrary_search_books with query "author_key:<author_id>" and sort "editions" when ranking by edition count, openlibrary_get_author for bio/details, and openlibrary_get_editions for specific printings. The alternative is named along with the exact parameters that select it.

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.