Skip to main content
Glama

analyze_canvas

Read-only

Analyzes the state of the canvas and automatically detects problems: missing positions, overlaps, invalid references, orphan blocks, broken dependencies. Serves when the user reports a visual problem or asks for a diagnostic. Returns a structured report with the problems detected and fix recommendations. Also returns cardsOverBudget: the PERMANENT list of the cards {cellId, cellName, used, budget} whose cumulated content, all content blocks combined, exceeds the cap of 12 entries per card — including an old overflow, not touched by the current turn (unlike the 'content.card-truncated' finding, which only flags what a turn has just introduced). Also returns duplicatedActionsEntries: the native tasks (create_tasks) of the WHOLE project whose normalized title matches an entry of an 'actions' content block of THE SAME block — a possible duplicate between the trackable register (task) and the documentary register (content block), which no creation finding can see if it was born before this turn (migration, another session, import). A FINDING, not a refusal: nothing is touched in the 'actions' content block. Also returns sharesOnNoCapitalNature: the assignments {cellId, cellName, personId, shares, cellType} that declare a numeric capital share on a block nature that has none (division, externe, infrastructure) — PERMANENT state, a legacy the tool never deletes. Fields absent = nothing to report, which does not mean "I did not look".

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

Input Schema

NameRequiredDescriptionDefault
includeAllDepsNoInclude the full list of all the dependencies in the JSON (`allDependencies`, default: true). No effect on `formattedReport`: that text report has never listed all the dependencies — only those with problems appear in it
includeAllCellsNoInclude the full list of all the blocks — in the JSON (`allCells`) AND in `formattedReport` (section "ALL BLOCKS"). false: both are limited to the blocks with problems, with a note saying how many were omitted (default: true)
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed3 schema fields changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / includeAllCells / description
      Previous value: -"Inclure la liste complète de toutes les cells — dans le JSON (`allCells`) ET dans `formattedReport` (section « TOUTES LES CELLS »). false : les deux se limitent aux cells en problème, avec une note qui dit combien ont été omises (défaut: true)"New value: +"Include the full list of all the blocks — in the JSON (`allCells`) AND in `formattedReport` (section \"ALL BLOCKS\"). false: both are limited to the blocks with problems, with a note saying how many were omitted (default: true)"
    • changedInput schema / properties / includeAllDeps / description
      Previous value: -"Inclure la liste complète de toutes les dépendances dans le JSON (`allDependencies`, défaut: true). Sans effet sur `formattedReport` : ce rapport texte n'a jamais listé toutes les dépendances — seules celles en problème y figurent"New value: +"Include the full list of all the dependencies in the JSON (`allDependencies`, default: true). No effect on `formattedReport`: that text report has never listed all the dependencies — only those with problems appear in it"
  4. First observed

TDQS

A4/5.0
Behavior5/5

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

Although annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, the description adds substantive behavior: it is 'A FINDING, not a refusal', nothing is touched in the 'actions' block, and legacy states are 'PERMANENT' and never deleted by the tool. It also pre-empts a real ambiguity by explaining that absent fields mean nothing to report, not 'I did not look'. This goes well beyond the annotation surface.

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

Conciseness3/5

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

Purpose and usage are correctly front-loaded in the first two sentences, but the remainder is a long, run-on exposition of individual return fields with heavy emphasis and parenthetical asides. The information is relevant (no output schema exists), yet it is repetitive and hard to scan, so several sentences do not earn their place in their current form.

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?

With no output schema, the description takes on the burden of describing returns, and it does so for the three special fields plus the general problem/recommendation report. The shape of the general report itself is left generic, but an agent has enough to know what it will get and when to call it.

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%, so the three parameters (includeAllDeps, includeAllCells, expectedProjectId) are already fully documented in the schema, including defaults and effect on formattedReport. The description text adds no parameter-level meaning, which matches the baseline 3 when the schema carries the load.

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 opens with a specific verb+resource ('Analyzes the state of the canvas') and enumerates the exact problem classes detected (missing positions, overlaps, invalid references, orphan blocks, broken dependencies). It also distinguishes its own card-overflow finding from the separate 'content.card-truncated' finding. It never contrasts itself with sibling analyzers such as analyze_tasks or analyze_data_model, so sibling differentiation is only partial.

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?

It states a clear activation context: 'Serves when the user reports a visual problem or asks for a diagnostic.' That is an unambiguous trigger. There are no explicit when-not conditions and no named alternatives, so it stops short of full routing guidance.

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.