Skip to main content
Glama

aide_upgrade

Update AIDE methodology infrastructure by comparing project artifacts against canonical versions, identifying differences, and applying updates through a guided, category-by-category process.

Instructions

Compare the AIDE methodology artifacts in this project against the canonical versions and return structured JSON results grouped by category. Use this when the user asks to update AIDE, sync AIDE, refresh AIDE, check for AIDE updates, or bring AIDE up to date. This is NOT for editing user .aide specs — it inspects methodology infrastructure only.

The tool uses a two-call pattern for progressive disclosure:

First call (no category param): Returns a lightweight summary — every category with file names, statuses, and counts, but NO file content. Use this to understand what has drifted and present a summary to the user. Ask which categories they want to apply.

Second call (with category param): The tool writes all differs/missing files directly to disk itself and returns a manifest — file results with filePath, status ("updated", "created", or "matches"), and name, but NO canonicalContent. The agent never sees file content and never uses the Write tool for methodology files.

Repeat the second call for each category the user confirms.

As the calling agent, you must:

  1. Call without category first to get the summary

  2. Present each drifted category (differs/missing) and ask the user which to apply

  3. For each confirmed category, call again with category=X — the tool writes the files and returns a manifest. Report what was updated/created to the user.

  4. For the mcp category, the manifest still includes prescription data — merge the entry into the existing MCP config yourself (read → merge → write). If malformed, tell the user — do not overwrite.

  5. For ide, the manifest may include instructions for VS Code extension install — execute that command for the user. Zed config is written directly by the tool.

IMPORTANT — one-at-a-time wizard pattern using AskUserQuestion: Do NOT present all categories at once. Walk the user through ONE category at a time using AskUserQuestion with Yes/Skip options. Stop after each question and wait for confirmation before calling with that category.

Categories: pointer-stub, methodology-docs, version-metadata, commands, agents, skills, mcp, ide, readme.

Upgrade surface (user code and user .aide specs are never touched):

  • AIDE pointer stub in the agent config file

  • Canonical methodology docs under .aide/docs/

  • versions.json metadata under .aide/docs/

  • Slash commands for all pipeline phases

  • Pipeline agent files, skill templates

  • MCP server entry in the project's MCP config

  • IDE file association config (Zed settings, VS Code extension)

Supports Claude Code, Cursor, Windsurf, and Copilot. Auto-detects the framework or accepts an override.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameworkNoForce a specific framework instead of auto-detecting. Auto-detection checks for framework-specific files/directories and defaults to Claude Code.
pathNoCustom project root path (defaults to server working directory)
categoryNoWrite all differs/missing files for this category to disk and return a manifest. Omit on the first call to get a metadata-only summary of all categories.
Behavior5/5

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

Since no annotations are provided, the description carries the full burden of behavioral disclosure. It thoroughly describes the tool's behavior: the two-call pattern, what each call returns, that the tool writes files directly to disk, that the agent never sees file content, the wizard pattern requirement, specific handling for 'mcp' and 'ide' categories, and the upgrade surface details. This provides comprehensive behavioral context beyond what parameters indicate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately front-loaded with the core purpose, but it's quite lengthy with detailed procedural instructions. While all content is valuable, some sections (like the 5-step agent instructions and IMPORTANT wizard pattern details) could potentially be streamlined. The structure is logical but not maximally concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (two-call pattern, multiple categories, file writing behavior) and absence of both annotations and output schema, the description provides complete contextual information. It explains the return format for both calls, the upgrade surface, category-specific handling, framework support, and the required interaction pattern. This fully compensates for the lack of structured metadata.

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?

With 100% schema description coverage, the baseline is 3. The description adds significant value by explaining the semantic meaning of the category parameter in the two-call pattern: 'Omit on the first call to get a metadata-only summary' and 'with category param: The tool writes all differs/missing files directly to disk.' It also lists all category values and provides context about framework auto-detection, though it doesn't add syntax details beyond the schema.

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's purpose: 'Compare the AIDE methodology artifacts in this project against the canonical versions and return structured JSON results grouped by category.' It specifies the verb ('compare'), resource ('AIDE methodology artifacts'), and scope ('in this project'), and distinguishes it from sibling tools by stating 'This is NOT for editing user .aide specs — it inspects methodology infrastructure only.'

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?

The description provides explicit usage guidelines: 'Use this when the user asks to update AIDE, sync AIDE, refresh AIDE, check for AIDE updates, or bring AIDE up to date.' It also distinguishes from alternatives by stating it's not for editing user specs, and outlines a two-call pattern with clear when/when-not instructions for the category parameter.

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/aidemd-mcp/server'

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