Skip to main content
Glama

project_inspect

Read-only

Inspect local Git state read-only to report HEAD, branch, upstream ref, repo, dirty status, and pushed status. Use it to pick a safe revision for build or test tasks without commit, push, or fetch.

Instructions

Read-only local Git inspection: HEAD, branch, upstream remote/ref, GitHub repository, dirty state and whether HEAD is in the upstream tracking ref. Suggests a revision source only for pushed commits. Never commits, pushes or fetches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNoen
projectIdNo
localProjectRootYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-alpha.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description is not solely responsible for the safety profile. It still adds real value beyond them: it enumerates the inspected state, states the pushed-commit precondition for revision-source suggestions, and explicitly excludes commit/push/fetch, which the openWorldHint alone would not clarify.

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?

Two tight sentences with the verb and scope front-loaded, followed by the behavioral caveat. Dense but every clause carries information; no filler.

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?

An output schema exists, so enumerating return values is not strictly necessary, and the read-only nature is covered by annotations. The gap is input-side: with 0% schema coverage, nothing explains what localProjectRoot should point at or how projectId/locale affect behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 3 parameters, so the description carries the full burden — and it says nothing about localProjectRoot (the required path), projectId, or the locale enum. An agent must infer that localProjectRoot is the repo path to inspect with no textual support.

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 and resource ('Read-only local Git inspection') and enumerates exactly what is inspected: HEAD, branch, upstream remote/ref, GitHub repository, dirty state, tracking-ref membership. It is clearly distinct from siblings such as project_bind or codespace_prepare, though it never names an alternative to contrast against.

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

Usage Guidelines3/5

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

Usage is implied by the read-only inspection framing and the note that a revision source is only suggested for pushed commits, but there is no explicit statement of when to reach for this tool versus project_bind or environment_check. The 'never commits, pushes or fetches' line sets a boundary but is a capability disclaimer rather than a when-to-use rule.

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