Skip to main content
Glama

get_project_invariants

Read-onlyIdempotent

Retrieves project architectural invariants, tech stack rules, and dependency policies before structural changes to prevent drift.

Instructions

Reads the project's architectural invariants, tech stack rules, and dependency policies. Call this BEFORE making any structural changes, adding dependencies, or creating new components.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description's real addition is the sequencing requirement (consult before mutating), which is genuinely useful context. However, with no output schema it does not describe the shape, size, or structure of the returned invariant set, leaving a meaningful gap.

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?

Two sentences, both front-loaded and each doing distinct work: first what is read, then when to read it. There is no redundant restatement of the title or annotations.

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 zero-parameter, read-only, closed-world tool with a full annotation set, the description covers purpose and timing adequately. The only shortfall is that 'architectural invariants' remains abstract — with no output schema, a sentence on what form the rules take would close the gap.

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 parameterless tool applies. Nothing in the text misdescribes the input surface.

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 gives a specific verb ('Reads') and enumerates the resource contents: architectural invariants, tech stack rules, and dependency policies. That is enough for an agent to distinguish it from verification siblings like verify_code_pattern or verify_dependency_addition, though it never names an alternative explicitly.

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 triggering condition — call before structural changes, dependency additions, or new component creation — which is actionable and concrete. It stops short of explicit exclusions (e.g., 'do not call for read-only inspection') or naming the verification tools to use afterward, so it falls just below the top band.

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