Skip to main content
Glama

proj_get_compile_freshness

Check cached netlist age and unsaved editor documents before discussing connectivity, so you know if the netlist reflects the user's current view.

Instructions

Report the age of the cached netlist and which docs are dirty.

Use this when you're about to disagree with the user about connectivity, first check how stale the netlist you're reading actually is, and whether any open editor docs haven't been saved yet. A dirty doc means the netlist does NOT reflect what the user is looking at.

Returns: Dict with compile_age_ms, compile_cached (bool), ttl_ms, open_doc_count, dirty_doc_count, dirty_docs[], project.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden, and it does well: it explains that a dirty doc means the netlist does NOT reflect what the user is looking at, and that compile_age_ms/ttl_ms/cached describe cache state. It never explicitly states that the call is read-only and has no side effects, which is the main remaining gap.

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?

It is front-loaded with the one-line purpose, then the usage trigger, then the return shape. The Returns block partly duplicates the output schema, but naming the fields (compile_age_ms, dirty_docs[], ttl_ms) is a modest aid and does not bloat the text excessively.

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?

For a trivial zero-arg, read-only probe with an output schema already defined, the description covers purpose, trigger, and interpretation of the key fields. Only the explicit read-only/no-side-effect statement is missing, and the output schema covers the return contract.

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 nothing for the description to disambiguate; the baseline for a 0-param tool applies. The description correctly implies no inputs are needed.

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 first sentence states a specific verb and resource: reporting the age of the cached netlist and which docs are dirty. This is clearly distinguishable from siblings like proj_compile, proj_force_recompile, or proj_get_connectivity, since it is purely a staleness probe rather than a compile or query of connectivity.

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 gives a concrete trigger condition: use it when you are about to disagree with the user about connectivity, to check whether the netlist is stale or editors have unsaved changes. There is no explicit 'when not to use' or named alternative (e.g. proj_force_recompile), which keeps it short of a 5.

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

Deploy Server

Other Tools