Skip to main content
Glama

Random game

random_game
Read-only

One random eligible game for 'surprise me' flows; pass seed for a deterministic pick. Never returns Mature games. Zero eligible games gives game: null with code NO_MATCHES and relaxations.

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": "random_game"
  }
}

Input Schema

NameRequiredDescriptionDefault
moodNo
seedNoDeterministic pick.
genreNo
playsNohere: only games that play embedded (on ArcadeIndex and in the in-chat player); developer_site: only games that play on the developer's own site (implies include_listing_only).
inputsNo
playersNo
difficultyNo
min_qualityNo
exclude_genresNo
content_rating_maxNoteen
session_length_maxNo
include_listing_onlyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "applied_filters": {
      -        "type": "object"
      -      },
      -      "attribution": {
      -        "description": "Attribution block (agent-api §1.1). Render 'via {source}' with a link.",
      -        "type": "object"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "game": {
      -        "anyOf": [
      -          {
      -            "properties": {
      -              "accessibility_notes": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "content_rating": {
      -                "enum": [
      -                  "everyone",
      -                  "everyone_10",
      -                  "teen",
      -                  "mature"
      -                ],
      -                "type": "string"
      -              },
      -              "controls_summary": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "description": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "developer": {
      -                "anyOf": [
      -                  {
      -                    "properties": {
      -                      "claimed": {
      -                        "type": "boolean"
      -                      },
      -                      "name": {
      -                        "type": "string"
      -                      },
      -                      "url": {
      -                        "type": "string"
      -                      }
      -                    },
      -                    "type": "object"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "Null when the developer is unknown."
      -              },
      -              "difficulty": {
      -                "anyOf": [
      -                  {
      -                    "enum": [
      -                      "easy",
      -                      "medium",
      -                      "hard",
      -                      "brutal"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "embed_status": {
      -                "enum": [
      -                  "playable",
      -                  "listing_only"
      -                ],
      -                "type": "string"
      -              },
      -              "external_play_url": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "field_sources": {
      -                "additionalProperties": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "source",
      -                        "ai",
      -                        "ai+verified",
      -                        "behavioral",
      -                        "developer",
      -                        "moderator"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "type": "object"
      -              },
      -              "game_id": {
      -                "type": "string"
      -              },
      -              "genres": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "hook": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "how_to_play": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "inputs": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "enum": [
      -                        "mouse",
      -                        "keyboard",
      -                        "touch",
      -                        "gamepad"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "languages": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "last_verified_at": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "match_reasons": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "mechanics": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "multiplayer_mode": {
      -                "anyOf": [
      -                  {
      -                    "enum": [
      -                      "none",
      -                      "local",
      -                      "online",
      -                      "both"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "play_ready": {
      -                "description": "Only present play_url as instantly playable when true (agent-api §4.4).",
      -                "type": "boolean"
      -              },
      -              "play_url": {
      -                "description": "Our own stable game page with ?ref=agent. Never the raw embed URL.",
      -                "type": "string"
      -              },
      -              "player_counts": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "enum": [
      -                        "1",
      -                        "2",
      -                        "2plus",
      -                        "massive"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "published_at": {
      -                "type": "string"
      -              },
      -              "quality_score": {
      -                "type": "integer"
      -              },
      -              "requested_id": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "screenshots": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "session_length_minutes": {
      -                "anyOf": [
      -                  {
      -                    "type": "integer"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "session_length_range": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "type": "integer"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "similarity_reasons": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "source_url": {
      -                "type": "string"
      -              },
      -              "thumbnail": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "title": {
      -                "type": "string"
      -              },
      -              "url": {
      -                "description": "Canonical game page, no query string.",
      -                "type": "string"
      -              },
      -              "verification_state": {
      -                "enum": [
      -                  "ok",
      -                  "suspect"
      -                ],
      -                "type": "string"
      -              },
      -              "vibe_tags": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              }
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "meta": {
      -        "type": "object"
      -      },
      -      "relaxations": {
      -        "items": {
      -          "properties": {
      -            "args": {
      -              "additionalProperties": {},
      -              "description": "Complete tool arguments to call again (search_games args carry interpret: false).",
      -              "type": "object"
      -            },
      -            "changes": {
      -              "items": {
      -                "properties": {
      -                  "from": {
      -                    "anyOf": [
      -                      {
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      },
      -                      {
      -                        "type": "boolean"
      -                      },
      -                      {
      -                        "items": {
      -                          "type": "string"
      -                        },
      -                        "type": "array"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "param": {
      -                    "type": "string"
      -                  },
      -                  "to": {
      -                    "anyOf": [
      -                      {
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      },
      -                      {
      -                        "type": "boolean"
      -                      },
      -                      {
      -                        "items": {
      -                          "type": "string"
      -                        },
      -                        "type": "array"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "result_count": {
      -              "type": "integer"
      -            },
      -            "step": {
      -              "type": "string"
      -            },
      -            "tool": {
      -              "const": "games_like",
      -              "description": "Call this tool with args instead of the tool that returned the relaxation; absent means the same tool.",
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "game",
      -      "code",
      -      "relaxations",
      -      "applied_filters",
      -      "attribution",
      -      "meta"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "attribution": {
      -        "description": "Attribution block (agent-api §1.1). Render 'via {source}' with a link.",
      -        "type": "object"
      -      },
      -      "error": {
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "details": {
      -            "anyOf": [
      -              {
      -                "additionalProperties": {},
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "retry_after_seconds": {
      -            "anyOf": [
      -              {
      -                "type": "integer"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "meta": {
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "error",
      -      "attribution",
      -      "meta"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "applied_filters": {
      +        "type": "object"
      +      },
      +      "attribution": {
      +        "description": "Attribution block (agent-api §1.1). Render 'via {source}' with a link.",
      +        "type": "object"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "game": {
      +        "anyOf": [
      +          {
      +            "properties": {
      +              "accessibility_notes": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "content_rating": {
      +                "enum": [
      +                  "everyone",
      +                  "everyone_10",
      +                  "teen",
      +                  "mature"
      +                ],
      +                "type": "string"
      +              },
      +              "controls_summary": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "description": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "developer": {
      +                "anyOf": [
      +                  {
      +                    "properties": {
      +                      "claimed": {
      +                        "type": "boolean"
      +                      },
      +                      "name": {
      +                        "type": "string"
      +                      },
      +                      "url": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Null when the developer is unknown."
      +              },
      +              "difficulty": {
      +                "anyOf": [
      +                  {
      +                    "enum": [
      +                      "easy",
      +                      "medium",
      +                      "hard",
      +                      "brutal"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "embed_status": {
      +                "enum": [
      +                  "playable",
      +                  "listing_only"
      +                ],
      +                "type": "string"
      +              },
      +              "external_play_url": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "field_sources": {
      +                "additionalProperties": {
      +                  "anyOf": [
      +                    {
      +                      "description": "Where a visible field's value comes from, one of: source, ai, ai+verified, ai+source, behavioral, developer, moderator (ai+verified: input listeners corroborated an AI value; ai+source: the game's source page names it).",
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "type": "object"
      +              },
      +              "game_id": {
      +                "type": "string"
      +              },
      +              "genres": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "hook": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "how_to_play": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "inputs": {
      +                "anyOf": [
      +                  {
      +                    "items": {
      +                      "enum": [
      +                        "mouse",
      +                        "keyboard",
      +                        "touch",
      +                        "gamepad"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "languages": {
      +                "anyOf": [
      +                  {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "last_verified_at": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "match_reasons": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "mechanics": {
      +                "anyOf": [
      +                  {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "multiplayer_mode": {
      +                "anyOf": [
      +                  {
      +                    "enum": [
      +                      "none",
      +                      "local",
      +                      "online",
      +                      "both"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "play_ready": {
      +                "description": "Only present play_url as instantly playable when true (agent-api §4.4).",
      +                "type": "boolean"
      +              },
      +              "play_url": {
      +                "description": "Our own stable game page with ?ref=agent. Never the raw embed URL.",
      +                "type": "string"
      +              },
      +              "player_counts": {
      +                "anyOf": [
      +                  {
      +                    "items": {
      +                      "enum": [
      +                        "1",
      +                        "2",
      +                        "2plus",
      +                        "massive"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "published_at": {
      +                "type": "string"
      +              },
      +              "quality_score": {
      +                "type": "integer"
      +              },
      +              "requested_id": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "screenshots": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "session_length_minutes": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "session_length_range": {
      +                "anyOf": [
      +                  {
      +                    "items": {
      +                      "type": "integer"
      +                    },
      +                    "type": "array"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "similarity_reasons": {
      +                "anyOf": [
      +                  {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "source_url": {
      +                "type": "string"
      +              },
      +              "thumbnail": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "title": {
      +                "type": "string"
      +              },
      +              "url": {
      +                "description": "Canonical game page, no query string.",
      +                "type": "string"
      +              },
      +              "verification_state": {
      +                "enum": [
      +                  "ok",
      +                  "suspect"
      +                ],
      +                "type": "string"
      +              },
      +              "vibe_tags": {
      +                "anyOf": [
      +                  {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "meta": {
      +        "type": "object"
      +      },
      +      "relaxations": {
      +        "items": {
      +          "properties": {
      +            "args": {
      +              "additionalProperties": {},
      +              "description": "Complete tool arguments to call again (search_games args carry interpret: false).",
      +              "type": "object"
      +            },
      +            "changes": {
      +              "items": {
      +                "properties": {
      +                  "from": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "boolean"
      +                      },
      +                      {
      +                        "items": {
      +                          "type": "string"
      +                        },
      +                        "type": "array"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "param": {
      +                    "type": "string"
      +                  },
      +                  "to": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "boolean"
      +                      },
      +                      {
      +                        "items": {
      +                          "type": "string"
      +                        },
      +                        "type": "array"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "result_count": {
      +              "type": "integer"
      +            },
      +            "step": {
      +              "type": "string"
      +            },
      +            "tool": {
      +              "const": "games_like",
      +              "description": "Call this tool with args instead of the tool that returned the relaxation; absent means the same tool.",
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "game",
      +      "code",
      +      "relaxations",
      +      "applied_filters",
      +      "attribution",
      +      "meta"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "attribution": {
      +        "description": "Attribution block (agent-api §1.1). Render 'via {source}' with a link.",
      +        "type": "object"
      +      },
      +      "error": {
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "details": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": {},
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "retry_after_seconds": {
      +            "anyOf": [
      +              {
      +                "type": "integer"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "meta": {
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "error",
      +      "attribution",
      +      "meta"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / content_rating_max / enum
      Previous value: -[
      -  "everyone",
      -  "everyone_10",
      -  "teen",
      -  "mature"
      -]New value: +[
      +  "everyone",
      +  "everyone_10",
      +  "teen"
      +]
  3. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), so credit goes to what's added: a hard content guarantee ('never returns Mature games') and a precise empty-result contract (game: null, code NO_MATCHES, relaxations). The only gap is whether relaxations loosen filters silently — worth spelling out.

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 dense sentences with no filler, front-loaded with the core behavior and followed by the seed rule and the failure contract. Nothing repeats the schema.

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

Completeness2/5

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

For a 12-parameter discovery tool at 17% schema coverage, the description leaves most filters unexplained, including how min_quality and the mood/genre exclusions interact with the NO_MATCHES relaxation path. The output schema covers return shape, but the filtering model an agent needs to call this well is missing.

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

Parameters2/5

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

Schema coverage is only 17% across 12 parameters, so the description is expected to compensate heavily. It explains only seed (deterministic pick); mood, genre, plays, inputs, players, difficulty, min_quality, exclude_genres, session_length_max and include_listing_only get nothing beyond their bare enums.

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 concrete verb+resource: returns exactly one random eligible game, scoped to 'surprise me' discovery flows. This is clearly distinct from list/filter siblings like search_games and trending, though it never names them explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The 'surprise me' framing implies when the tool fits, and the seed instruction covers the reproducibility case. It stops short of saying when to prefer search_games or games_like instead, so the agent has to infer the boundary.

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.

Resources