Skip to main content
Glama
Grinv

MAL MCP Server

Get a random anime

get_random_anime
Read-only

Picks a random anime and returns its full details. Use the sfw options to exclude adult or ecchi content for safe discovery.

Instructions

Return one random anime (full details). Good for discovery / suggestions. No official-API fallback exists for this tool — it always needs Tenrai itself to be reachable.

Input Schema

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
rankNo
typeNo
yearNo
airedNo
scoreNo
titleNo
airingNo
genresNo
mal_idYes
ratingNo
seasonNo
sourceNo
statusNo
themesNo
membersNo
studiosNo
trailerNo
durationNo
episodesNo
externalNo
moreinfoNo
synopsisNo
broadcastNo
favoritesNo
image_urlNo
licensorsNo
producersNo
relationsNo
scored_byNo
streamingNo
backgroundNo
popularityNo
demographicsNo
ending_themesNo
title_englishNo
opening_themesNo
title_japaneseNo
title_synonymsNo
explicit_genresNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed4 schema fields changedv0.10.0
    • 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. Changed30 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 / episodes / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / episodes / minimum
      Added value: +0
    • changedOutput schema / properties / episodes / 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 / moreinfo
      Added value: +{
      +  "type": "string"
      +}
    • 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 / year / maximum
      Added value: +2100
    • addedOutput schema / properties / year / minimum
      Added value: +1900
    • changedOutput schema / properties / year / 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": {
      +    "aired": {
      +      "type": "string"
      +    },
      +    "airing": {
      +      "type": "boolean"
      +    },
      +    "background": {
      +      "type": "string"
      +    },
      +    "broadcast": {
      +      "type": "string"
      +    },
      +    "demographics": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "duration": {
      +      "type": "string"
      +    },
      +    "ending_themes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "episodes": {
      +      "type": "number"
      +    },
      +    "favorites": {
      +      "type": "number"
      +    },
      +    "genres": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "image_url": {
      +      "type": "string"
      +    },
      +    "licensors": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "mal_id": {
      +      "type": "number"
      +    },
      +    "members": {
      +      "type": "number"
      +    },
      +    "opening_themes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "popularity": {
      +      "type": "number"
      +    },
      +    "producers": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "rank": {
      +      "type": "number"
      +    },
      +    "rating": {
      +      "type": "string"
      +    },
      +    "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"
      +    },
      +    "season": {
      +      "type": "string"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "streaming": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "name": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "studios": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "synopsis": {
      +      "type": "string"
      +    },
      +    "themes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "title": {
      +      "type": "string"
      +    },
      +    "title_english": {
      +      "type": "string"
      +    },
      +    "title_japanese": {
      +      "type": "string"
      +    },
      +    "trailer": {
      +      "type": "string"
      +    },
      +    "type": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    },
      +    "year": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "mal_id"
      +  ],
      +  "type": "object"
      +}
  5. Addedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuine non-obvious context: 'No official-API fallback exists for this tool — it always needs Tenrai itself to be reachable.' This is exactly the kind of operational caveat that helps an agent plan for failure and isn't part of the annotations or schema.

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?

Two short sentences, both meaning-bearing. The first states the core behavior and primary use case; the second is a valuable caveat. No fluff, no repetition of schema materials, and the most important purpose information is front-loaded.

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?

For this tool's simplicity — 2 optional params, full schema coverage, provided output schema, and annotations indicating read-only/open-world — the description is enough. Combined with the systematic annotations and schema, an agent has everything it needs to invoke and interpret the result. The usage context and external dependence caveat round out the picture.

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 input schema already provides rich detail on the sfw vs sfw_strict distinction, including exactly how they differ. The description adds no parameter-level meaning ('full details' refers to the output, not to parameter usage); the baseline of 3 is appropriate.

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?

The description states a clear verb+resource: 'Return one random anime (full details).' The word 'random' plus the entity type 'anime' inherently differentiates it from siblings like get_random_manga, get_random_character, and other anime list tools, though it does not explicitly name a sibling the way the strongest definitions do.

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?

'Good for discovery / suggestions' gives an explicit use case, making it clear when this tool is appropriate. It does not, however, give exclusion cues or name alternatives (e.g., 'use get_anime for a specific title' or 'use get_top_anime for curated rankings'), so slightly less than a 5.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Grinv/mal-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server