Skip to main content
Glama
MAL MCP Server

MAL MCP Server

Get a random manga

get_random_manga
Read-only

Return one random manga for discovery or suggestions, with optional filters to exclude adult-rated entries and Ecchi-tagged titles.

Instructions

Return one random manga (core details: no relations/external — call get_manga with the returned mal_id for those). Good for discovery / suggestions. No official-API fallback exists for this tool — it always needs Tenrai itself to be reachable.

Input Schema

NameRequiredDescriptionDefault
sfwNoIf true, exclude adult/explicit-rated entries (R+ Mild Nudity and up). Defaults to false (no filtering). Note: this alone still allows mainstream, safely-rated shows tagged with the Ecchi genre (fanservice) through — use `sfw_strict` to also exclude those.
sfw_strictNoIf true, exclude adult/explicit-rated entries AND anything tagged with the Ecchi genre, even otherwise-mainstream/safely-rated shows. Stricter than `sfw` alone. Defaults to false.

Output Schema

NameRequiredDescriptionDefault
urlNo
rankNo
typeNo
scoreNo
titleNo
genresNo
mal_idYes
statusNo
themesNo
authorsNo
membersNo
volumesNo
chaptersNo
externalNo
moreinfoNo
synopsisNo
favoritesNo
image_urlNo
publishedNo
relationsNo
scored_byNo
backgroundNo
popularityNo
publishingNo
demographicsNo
title_englishNo
serializationsNo
title_japaneseNo
title_synonymsNo
explicit_genresNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.10.0
    • addedOutput schema / properties / moreinfo
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / relations / items / properties / entries / items / additionalProperties
      Added value: +false
    • addedOutput schema / properties / relations / items / properties / entries / items / properties
      Added value: +{
      +  "mal_id": {
      +    "exclusiveMinimum": 0,
      +    "maximum": 9007199254740991,
      +    "type": "integer"
      +  },
      +  "media_type": {
      +    "type": "string"
      +  },
      +  "name": {
      +    "type": "string"
      +  },
      +  "type": {
      +    "type": "string"
      +  },
      +  "url": {
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / relations / items / properties / entries / items / required
      Added value: +[
      +  "mal_id"
      +]
    • changedOutput schema / properties / relations / items / properties / entries / items / type
      Previous value: -"string"New value: +"object"
  2. Changed29 schema fields changedv0.9.0
    • addedInput schema / properties / sfw
      Added value: +{
      +  "description": "If true, exclude adult/explicit-rated entries (R+ Mild Nudity and up). Defaults to false (no filtering). Note: this alone still allows mainstream, safely-rated shows tagged with the Ecchi genre (fanservice) through — use `sfw_strict` to also exclude those.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / sfw_strict
      Added value: +{
      +  "description": "If true, exclude adult/explicit-rated entries AND anything tagged with the Ecchi genre, even otherwise-mainstream/safely-rated shows. Stricter than `sfw` alone. Defaults to false.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / chapters / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / chapters / minimum
      Added value: +0
    • changedOutput schema / properties / chapters / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / explicit_genres
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / external
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / favorites / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / favorites / minimum
      Added value: +0
    • changedOutput schema / properties / favorites / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / mal_id / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / mal_id / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / mal_id / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / members / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / members / minimum
      Added value: +0
    • changedOutput schema / properties / members / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / popularity / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / popularity / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / popularity / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / rank / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / rank / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / rank / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / scored_by / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / scored_by / minimum
      Added value: +0
    • changedOutput schema / properties / scored_by / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / title_synonyms
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / volumes / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / volumes / minimum
      Added value: +0
    • changedOutput schema / properties / volumes / type
      Previous value: -"number"New value: +"integer"
  3. Changed1 schema field changedv0.8.0
    • addedInput schema / additionalProperties
      Added value: +false
  4. Changed2 schema fields changedv0.7.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "authors": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "background": {
      +      "type": "string"
      +    },
      +    "chapters": {
      +      "type": "number"
      +    },
      +    "demographics": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "favorites": {
      +      "type": "number"
      +    },
      +    "genres": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "image_url": {
      +      "type": "string"
      +    },
      +    "mal_id": {
      +      "type": "number"
      +    },
      +    "members": {
      +      "type": "number"
      +    },
      +    "popularity": {
      +      "type": "number"
      +    },
      +    "published": {
      +      "type": "string"
      +    },
      +    "publishing": {
      +      "type": "boolean"
      +    },
      +    "rank": {
      +      "type": "number"
      +    },
      +    "relations": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "entries": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "relation": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "score": {
      +      "type": "number"
      +    },
      +    "scored_by": {
      +      "type": "number"
      +    },
      +    "serializations": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "synopsis": {
      +      "type": "string"
      +    },
      +    "themes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "title": {
      +      "type": "string"
      +    },
      +    "title_english": {
      +      "type": "string"
      +    },
      +    "title_japanese": {
      +      "type": "string"
      +    },
      +    "type": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    },
      +    "volumes": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "mal_id"
      +  ],
      +  "type": "object"
      +}
  5. Addedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds genuinely new behavioral facts: the response is a partial object requiring a second call for full details, and there is no official-API fallback, so the tool fails when Tenrai is unreachable. That availability dependency is exactly the kind of context annotations cannot convey.

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 short sentences, front-loaded with what is returned, then the follow-up path, then the availability constraint. No sentence is redundant and nothing is buried.

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?

An output schema exists, so return values need not be explained; the description covers the key operational caveats (partial payload, reachability requirement). It leaves the filter parameters entirely to the schema, which is acceptable given full coverage, but it could note the source pool the random pick is drawn from.

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% and the sfw vs sfw_strict distinction is fully explained in the schema, including defaults and the exact rating/genre thresholds. The description adds nothing about the two filter parameters, 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 ('Return one random manga') plus a scope qualifier (core details only, no relations/external). It also names the sibling to use for the missing data (get_manga), so an agent can distinguish it from get_manga, search_manga, and get_random_anime 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit use case ('Good for discovery / suggestions') and a concrete follow-up path: call get_manga with the returned mal_id for relations/external. It does not spell out a when-not condition (e.g. when a curated list or top list is preferable), so it stops short of full routing guidance.

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