Skip to main content
Glama

gograph_boundaries

Read-onlyIdempotent

Checks package imports against a boundaries.json configuration to enforce layer separation in CI gates and post-edit reviews.

Instructions

Refresh source analysis and check package imports against a boundaries.json configuration. The required config defaults to .gograph/boundaries.json; explicit paths must remain inside the analyzed project, and every path component plus the final regular file is read through the rooted repository boundary. Create it with gograph_boundaries_create. Read-only; no side effects. WHEN TO USE: In CI gates or post-edit reviews to enforce layer separation. NOT TO USE: For unconstrained dependency exploration (use gograph_deps or gograph_coupling). RETURNS: Structured pass state and boundary violations.

Input Schema

NameRequiredDescriptionDefault
rootNoAbsolute path of the checkout you are working in (your cwd or git worktree). Must be this server's repository or one of its git worktrees; the answer then comes from that checkout's own graph. A path elsewhere is refused. Alias: cwd. Omit only when the configured checkout is the one you mean.
limitNoMaximum rows per page; the byte budget may return fewer.
configNoOptional in-project path to a regular, non-linked boundary config (default .gograph/boundaries.json)
cursorNoOpaque next_cursor for the same graph snapshot and result selection.
intentionNoTechnical rationale, required for analytical calls selecting an active session.
session_idNoCaller selector returned by session_create. Omission means an independent caller; never inherits server environment or another caller's session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.7.18
    • addedInput schema / properties / intention
      Added value: +{
      +  "description": "Technical rationale, required for analytical calls selecting an active session.",
      +  "type": "string"
      +}
    • addedInput schema / properties / root
      Added value: +{
      +  "description": "Absolute path of the checkout you are working in (your cwd or git worktree). Must be this server's repository or one of its git worktrees; the answer then comes from that checkout's own graph. A path elsewhere is refused. Alias: cwd. Omit only when the configured checkout is the one you mean.",
      +  "type": "string"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Caller selector returned by session_create. Omission means an independent caller; never inherits server environment or another caller's session.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv1.7.5
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Opaque next_cursor for the same graph snapshot and result selection.",
      +  "maxLength": 128,
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 100,
      +  "description": "Maximum rows per page; the byte budget may return fewer.",
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. Changed1 schema field changedv1.5.6
    • changedInput schema / properties / config / description
      Previous value: -"Optional file path to boundary constraints configuration (defaults to .gograph/boundaries.json)"New value: +"Optional in-project path to a regular, non-linked boundary config (default .gograph/boundaries.json)"
  4. Addedv1.5.4
  5. Removedv1.5.3
  6. Changed1 schema field changedv1.4.70
    • changedInput schema / properties / config / description
      Previous value: -"Optional path to configuration file (defaults to .gograph/boundaries.json)"New value: +"Optional file path to boundary constraints configuration (defaults to .gograph/boundaries.json)"
  7. First observedv1.0.0

TDQS

A4.3/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, so safety is covered; the description nevertheless adds real context: the config path is confined to the analyzed project, every path component and the final regular file are resolved through the rooted repository boundary, and a missing config should be created via gograph_boundaries_create. It also discloses the return shape ('structured pass state and boundary violations'). It stops short of explaining what 'refresh source analysis' does to the index or whether pagination via limit/cursor matters for violation enumeration.

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?

Front-loaded with the action, then constraints, then WHEN TO USE / NOT TO USE / RETURNS blocks. Nearly every sentence carries decision-relevant information; the boundary-resolution sentence is the densest and slightly over-explains a constraint the schema also encodes, keeping it from a 5.

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 six-parameter, all-optional analytic call with rich schema coverage and no output schema, the description supplies the missing decision layer: purpose, trigger context, alternatives, and a one-line return summary. Only minor gaps remain (what the refresh step costs, how violations relate to pagination), which are unlikely to cause a misinvocation.

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% and each of the six parameters is already documented in depth (root must be this server's repo or a worktree, limit 1-200 with byte budget, config default, cursor semantics, session/intention selectors). The description only reinforces the config parameter's default and boundary constraints, which the schema already states ('in-project', 'regular, non-linked'). 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 pair and resource: 'Refresh source analysis and check package imports against a boundaries.json configuration.' It also names the sibling that creates the config (gograph_boundaries_create) and the siblings for unconstrained exploration (gograph_deps, gograph_coupling), so the agent can place it among ~70 tools without opening a 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?

Explicit WHEN TO USE ('CI gates or post-edit reviews to enforce layer separation') and NOT TO USE with named alternatives ('unconstrained dependency exploration, use gograph_deps or gograph_coupling'). Both the positive trigger and the exclusion are stated, 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.