Skip to main content
Glama

openspec_ai_analyze_context

Analyzes project context using AI to generate suggestions for updating project.md, focusing on overview, architecture, improvements, or conventions.

Instructions

使用 AI 深度分析项目上下文并给出 project.md 更新建议。 利用 MCP Client 的 AI 能力进行分析。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
focusNo分析重点:overview(总览), architecture(架构), improvements(改进建议), conventions(约定规范)
Behavior2/5

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

No annotations are provided, so the description carries the full burden of disclosing behavioral traits. It mentions 'AI analysis' and 'update suggestions' but does not clarify whether the tool performs read-only operations, requires specific permissions, or has side effects on the project context. The description lacks depth on what the AI analysis entails or any constraints.

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?

The description is concise with two sentences that front-load the main action. However, the second sentence ('利用 MCP Client 的 AI 能力进行分析') is somewhat redundant with the first, and could be removed or integrated without losing meaning.

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?

The description is adequate for a simple tool with one parameter and no output schema, but it fails to mention the expected output format (e.g., whether it returns a list of suggestions or modifies project.md directly). Additionally, it does not differentiate from the sibling 'openspec_analyze_context', leaving ambiguity in context.

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?

The input schema provides full description coverage for the 'focus' parameter via enum values and their Chinese explanations, so the schema already conveys the parameter's meaning. The description adds no additional parameter semantics beyond what the schema provides, earning a baseline score of 3.

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 clearly states it uses AI to analyze project context and provide update suggestions for project.md, indicating a specific verb and resource. However, there is a sibling tool 'openspec_analyze_context' without the 'ai' prefix, and the description does not differentiate this tool from that one, missing an opportunity to clarify the unique value of the AI-powered version.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'openspec_analyze_context' or 'openspec_get_project_context'. It does not specify prerequisites, exclusions, or contexts where this AI analysis is preferred or should be avoided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Lumiaqian/openspec-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server