Skip to main content
Glama

random_entity

Retrieve a random historical polity with optional filters like type, year, continent, or status. Use for exploration, trivia generation, or context-aware historical suggestions.

Instructions

Restituisce una entita' storica casuale, opzionalmente filtrata per tipo, anno, continente o status. Pensato per esplorazione, suggerimenti, generazione di curiosita' storiche o per permettere all'agente di proporre 'lo sapevi che...' contestuali. Esempio: random_entity(type='khanate', continent='Asia') ritorna un khanato asiatico a caso.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoTipo di entita' geopolitica. Esempi: empire, kingdom, republic, city-state, sultanate, caliphate, khanate, dynasty, principality, confederation, federation, duchy, colony, disputed_territory, city.
yearNoAnno (intero). Anni negativi rappresentano date a.C. Esempi: -300 = 300 a.C., 476 = 476 d.C.
statusNoLivello di certezza storica del record. 'disputed' indica voci con confidence_score basso o controverse fra storici.
continentNoContinente o macro-regione. Valori comuni: Europe, Asia, Africa, Americas, Middle East, Oceania.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It accurately describes the tool as returning a random entity and hints at optional filtering. The behavior is straightforward and unlikely to have side effects, so the description is sufficiently transparent.

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?

The description is concise, front-loaded with the main action, and includes an example in a single paragraph. Every sentence contributes useful information without redundancy.

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?

Given the tool's simplicity and the absence of an output schema, the description covers the essentials: what it does, when to use it, and an example. It could be considered complete for a random retrieval tool, though it does not detail return format.

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 100%, so the schema itself documents parameters well. The description adds value by providing a concrete example (type='khanate', continent='Asia') and contextualizes usage, which compensates for any lack of additional detail.

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?

The description clearly states it returns a random historical entity with optional filters by type, year, continent, or status. It provides specific use cases like exploration, suggestions, and generating curiosity, distinguishing it from sibling tools that are deterministic or focused on specific queries.

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 description explicitly mentions when to use the tool (exploration, suggestions, contextual trivia) and provides an example. However, it does not explicitly state when not to use it or list alternative tools, though the random nature inherently differentiates it from siblings.

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

Install Server

Other Tools

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/Soil911/AtlasPI'

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