Skip to main content
Glama
flutter-devtools-mcp

flutter-devtools-mcp

by draganbajic

save_snapshot

Save a named memory snapshot before code changes, then capture another after to compare and measure the impact.

Instructions

Save a named memory snapshot for later comparison. Take a snapshot before making a code change, then take another after to see the impact. Use compare_snapshots to see the diff.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "save_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesA name for this snapshot (e.g., "before-fix", "after-optimization")
forceGCNoForce garbage collection before snapshot (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that snapshots are retained for later comparison and fits into a before/after workflow, but says nothing about cost or pause behavior, whether an existing name is overwritten, or what the call returns. These are meaningful gaps for a tool that captures heap state.

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?

Three short sentences, front-loaded with what the tool does, followed by the workflow and the sibling handoff. Every sentence earns its place with no repetition of schema details.

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

Completeness3/5

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

For a simple two-parameter tool with no annotations and no output schema, the description covers purpose and workflow adequately. It stops short of explaining the return value (an agent must guess whether it gets a name or identifier to pass to compare_snapshots) and of stating whether reusing a name replaces an existing snapshot.

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 both parameters (name, forceGC) are already documented in the schema, including examples and the default. The description only echoes the 'named' aspect and adds no syntax or guidance about forceGC; baseline 3 applies when the schema does the heavy lifting.

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 ('Save a named memory snapshot') plus the reason it exists ('for later comparison'). It is distinguishable from siblings like compare_snapshots, get_memory_snapshot, and list_snapshots without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit workflow: snapshot before a code change, snapshot again after, then use compare_snapshots to see the diff. The alternative tool is named along with the condition that selects it, leaving nothing to inference.

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