Skip to main content
Glama

The saddest and happiest classic novels, ranked by measured sentiment

saddest_and_happiest_novels
Read-onlyIdempotent

Classic novels ranked by the sentiment of their full text: overall mood, mood of the ending, or how far the mood moves from first page to last. Optional year range. 339 novels scored, 1678-1928.

Example questions:

  • "What is the saddest classic novel?"

  • "Which Victorian novels have the happiest endings?"

  • "Novels that get darker as they go"

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "saddest_and_happiest_novels"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 10
measureNooverall = whole text (default), ending = last 10%, change = end minus start
to_yearNo
directionNoDefault both
from_yearNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description still adds real context: the fixed corpus size and date span, plus a definition of what "ending" and "change" actually measure (last 10%, end minus start). It does not say how ties or insufficient data are handled, but that is a minor gap against already-rich annotations.

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 lead sentence is front-loaded with the capability and its three modes, and the corpus bound follows immediately; the example questions earn their space by illustrating distinct query shapes. Minor redundancy exists where the measure definitions repeat the schema's enum description, but there is no filler prose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description carries the burden of describing results — it implies an ordered ranking but never states what an entry contains (title, author, year, a sentiment score and its scale) or the sort order under direction=both. Combined with the bare year parameters, an agent can invoke it correctly but cannot predict the shape of the response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 60%: limit, measure, and direction carry inline descriptions, while from_year and to_year are bare integers. The description compensates for exactly that gap by telling the agent there is an "Optional year range" and that the corpus runs 1678-1928, which gives the year bounds meaning. The measure definitions in the description largely duplicate the enum description, which limits the added value modestly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — ".classic novels ranked by the sentiment of their full text" — and enumerates the three ranking axes (overall mood, ending mood, first-to-last movement), which lets an agent distinguish this from a single-book mood tool. It also bounds the corpus ("339 novels scored, 1678-1928"). It does not explicitly name the sibling that handles per-book arcs, so routing is inferential rather than stated.

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 three example questions all translate directly into parameter combinations (saddest overall, happiest ending + Victorian/year filter, change direction), which is genuine when-to-use guidance embedded as exemplars. There are no explicit exclusions or "use X instead" notes, so an agent must infer when a sibling is the better fit.

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.