Skip to main content
Glama

analyze_project

Read-onlyIdempotent

Inspect an entire RPG Maker project read-only, with views for validation, metrics, balance, graphs, and search to find bugs, dead content, and copied events.

Instructions

Read-only project intelligence over an in-memory model of the whole project, cached until data files change. Nothing is written. view selects the lens: "overview" (default) title, counts, a health summary with the top issues, and maps unreachable from the start map; "index" maps with event counts, common events, named switches/variables; "validate" every consistency check (transfers to missing maps, missing map files, references to missing common events/items/weapons/armors/troops/animations, duplicate IDs, unused named switches/variables, bad start position, unreachable maps, autotiles the engine cannot draw) as {issueCount, bySeverity, issues[]}, filter with severity; "graph" the map transfer network and reachability; "usage" every event, common event and troop that uses kind (switch/variable/common_event/item/weapon/armor/troop/animation/actor/state/map) id, with read/write roles; "explain" target "switch"/"variable" + id: whether it is set, read, gated, a dead write or never set (why a door never opens); target "map" + id: incoming transfers and what becomes unreachable without it; "ast" one event page (mapId, eventId, page?) or common event (commonEventId) as a logical tree with an outline; "plugins" js/plugins.js merged with each plugin's header (@plugindesc/@param/@command/@help), flagging missing files; "critique" a designer's review of one map (mapId) with suggestions and a rough score; "metrics" measurements of one map (mapId): reachability from the real entry (unreachable tiles and events are softlocks), dead space against expected (interior/dungeon/exterior), walkable skeleton (loops, critical path, linearity), tile entropy, and steps to a shop/inn/save when the map has encounters; "balance" each skill/weapon/armor/enemy against its peers (damage per MP, gold per stat point, HP per EXP), leaving each out of its own statistics; category, thresholdSd (default 2); formulas are parsed, never executed, and unreadable ones are listed; "refactor" command sequences copy-pasted across events, to extract into a common event; "search" ranks names, dialogue, descriptions and notes against a free-text query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoviews "usage"/"explain": numeric id of the switch/variable/map/entity to inspect
kindNoview "usage": what kind of entity `id` refers to
pageNoview "ast": which page of the event (0-based, default 0)
viewNoWhich lens to apply (default "overview")
limitNoview "search": max results (default 20)
mapIdNoview "ast": the map holding the event to parse
queryNoview "search": free-text query, e.g. "the blacksmith", "dark forest"
minLenNoview "refactor": minimum shared command-run length to report (default 4)
targetNoview "explain": what `id` refers to (default "switch")
eventIdNoview "ast": the event on `mapId` to parse
categoryNoview "balance": analyse one category instead of all four (default "all")
expectedNoview "metrics": what kind of space this map is meant to be, which sets the dead-space band (default "exterior")
severityNoview "validate": keep only issues of this severity
thresholdSdNoview "balance": how many standard deviations from its peers an entry must sit before it is flagged (default 2; raise to see only the worst)
commonEventIdNoview "ast": parse this common event instead of a map event

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv5.19.0
    • addedInput schema / properties / category
      Added value: +{
      +  "description": "view \"balance\": analyse one category instead of all four (default \"all\")",
      +  "enum": [
      +    "skills",
      +    "weapons",
      +    "armors",
      +    "enemies",
      +    "all"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / expected
      Added value: +{
      +  "description": "view \"metrics\": what kind of space this map is meant to be, which sets the dead-space band (default \"exterior\")",
      +  "enum": [
      +    "interior",
      +    "dungeon",
      +    "exterior"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / thresholdSd
      Added value: +{
      +  "description": "view \"balance\": how many standard deviations from its peers an entry must sit before it is flagged (default 2; raise to see only the worst)",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • changedInput schema / properties / view / enum
      Previous value: -[
      -  "overview",
      -  "index",
      -  "validate",
      -  "graph",
      -  "usage",
      -  "explain",
      -  "ast",
      -  "plugins",
      -  "critique",
      -  "refactor",
      -  "search"
      -]New value: +[
      +  "overview",
      +  "index",
      +  "validate",
      +  "graph",
      +  "usage",
      +  "explain",
      +  "ast",
      +  "plugins",
      +  "critique",
      +  "metrics",
      +  "balance",
      +  "refactor",
      +  "search"
      +]
  2. Addedv5.12.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, covering the safety profile. The description adds useful behavioral context beyond that: it operates over an in-memory model cached until data files change, formulas are parsed but never executed, and unreadable formulas are listed. This is meaningful extra detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose, but it then becomes a dense, semicolon-chained wall of text enumerating thirteen views in a single run-on sentence. While each view entry carries information, the lack of formatting or paragraph breaks makes it difficult to scan and violates conciseness and structure expectations.

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 complex tool with 15 parameters, 13 views, no output schema, and annotations already covering safety, the description is remarkably complete. It explains what each view does and even sketches output shapes (e.g., validate as {issueCount, bySeverity, issues[]}, ast as a logical tree with outline), leaving little that an agent would need to infer.

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 description coverage is 100%, so the per-parameter descriptions already carry the baseline. The description goes further by explaining how parameters combine with views—for example, `severity` filters the validate view, `expected` sets the dead-space band for metrics, and `thresholdSd` controls balance flagging. It adds contextual meaning beyond the schema's field-level notes.

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 opening sentence states a specific read-only analysis capability over the whole project model, and 'Nothing is written' distinguishes it from write-oriented siblings. However, it does not explicitly differentiate itself from other read-only query tools such as query_database, query_map, or get_project_context.

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 description provides extensive guidance for the `view` parameter, effectively telling the agent which lens to use for each analysis task. It does not, however, say when to use analyze_project instead of sibling tools or when not to use it, leaving tool-level selection implied rather than explicit.

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