Skip to main content
Glama

Flecs Get World Info

flecs_get_world_info
Read-onlyIdempotent

Describe a connected FLECS world by returning its REST URL, build details, and live entity/table/query stats. Use it first to verify the server link.

Instructions

[READ] Describe the connected FLECS world; call it first to test the link.

Returns:

  • rest_url: the FLECS REST API this server talks to.

  • build_info: FLECS version, compiler, enabled addons and build flags (flecs.core.BuildInfo), or null if unavailable.

  • world_summary: live counters such as entity, table, component and query counts, frame count, fps, target fps, time scale and uptime (flecs.stats.WorldSummary), or null if the stats module is not imported.

  • notes: why a section is null, if any.

Fails if the FLECS REST API cannot be reached.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesYes
rest_urlYes
build_infoYes
world_summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context beyond the structured fields: the tool fails outright if the REST API is unreachable, and any return section can be null with a 'notes' field explaining why (e.g. stats module not imported).

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?

Front-loaded with the [READ] tag and the primary action before any detail, which is exactly the right ordering. The bulleted return list is scannable, though it partially restates structure that an output schema already provides, so it earns slightly less than full marks for economy.

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 a zero-parameter tool with annotation coverage and an output schema, this is complete: it explains the failure mode, the nullability of each section, and the diagnostic 'notes' field, while leaving return-value shape to the output schema. An agent has everything needed to call it correctly and interpret a degraded 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?

The tool takes zero parameters, so there is no parameter semantics for the description to carry; the 4 baseline applies. Nothing about the empty schema is misrepresented.

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 ('Describe the connected FLECS world') and immediately disambiguates it from siblings by scoping it to the world rather than an entity, component, query, or stats subset. It also fixes its ordinal role ('call it first'), so an agent can place it relative to the other ten tools 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 a clear when-to-use rule: call it first, as a connectivity/link test. It does not, however, address overlap with the close sibling flecs_get_world_stats, which appears to surface a subset of the same world_summary counters, and there are no explicit when-not conditions.

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