Skip to main content
Glama
theSharque
by theSharque

Set Project Architecture

set-project-architecture

Define or update a project's vertical module structure and data flow. Merges new modules and data flow by name unless replace flags are set.

Instructions

Creates or updates vertical module structure (components and dataFlow)—not horizontal facts. By default merges modules and dataFlow by name; omit dataFlow to keep existing flow. Use replaceModules or replaceDataFlow for full replace. For one module use set-module-details or set-module-data-flow. For bulk flow rebuild use rebuild-data-flow. Each new module still needs entries—use set-module-details with facts[] or set-entries after bulk structure. For APIs, domain terms, scripts use set-entry + get-slice—not this tool. If projectId is wrong, call list-projects first. Do not duplicate entry text in module descriptions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdNoProject ID (defaults to normalized workdir)
descriptionYesOverall project description
modulesYesList of modules in the project
dataFlowNoData flow between modules; omit to preserve existing
replaceModulesNoReplace entire modules list (default false = merge by name)
replaceDataFlowNoReplace entire dataFlow (default false = merge by module name)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYes
messageYes
Behavior4/5

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

No annotations provided, so description carries full burden. It explains merge vs replace behavior, that dataFlow can be omitted to preserve existing, and warns that new modules still need entries. Could be more explicit about destructiveness and permissions, but covers key behavioral traits.

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?

Description is appropriately sized for the complex tool, front-loading purpose and usage, then covering parameter behavior. Some redundancy but well-structured overall.

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?

Given the tool's complexity (6 params, nested schema, output schema exists), the description covers main use cases, parameter interactions, and provides context about projectId validation and subsequent steps. Minor gaps in return value description but compensated by output schema.

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?

Schema coverage is 100%, baseline 3. Description adds meaning by clarifying the merge/replace semantics for modules and dataFlow parameters, and the purpose of each parameter beyond schema descriptions.

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 description clearly states the tool creates or updates vertical module structure (components and dataFlow), distinguishing it from horizontal facts. It uses specific verb+resource and differentiates from sibling tools like set-module-details and set-entry.

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 guidance on when to use this tool vs alternatives: 'For one module use set-module-details or set-module-data-flow. For bulk flow rebuild use rebuild-data-flow.' Also advises against using for APIs/scripts and provides fallback for wrong projectId.

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/theSharque/mcp-architect'

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