Skip to main content
Glama

Compile or re-apply

apply
Read-only

Returns a backup-first write command and plan for reorganizing memory files without touching disk; flags no-op or refused cases and permits forced non-shrinking compiles.

Instructions

Returns the command that writes the plan (backups first) and the operations it performs; this server never touches your disk. No drift: "nothing to apply". Refused on a credential-shaped source (no override over MCP), and on a compile that would not shrink the prefix unless force: true.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoaccept a compile that would not shrink the prefix
budgetNotoken budget (default 60% of the file, at least 2000; a folder computes its own)
formatNodefault text
targetNofolder in the root, "." for itself; none: the recorded memory folder; never guess
contentNoalso return file contents, for a host without a shell

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description usefully reinforces it by saying the server only returns a command and never writes. It adds real behavior beyond the annotations: backups are ordered first, a no-drift run yields 'nothing to apply', and two refusal conditions exist (credential-shaped source, non-shrinking compile) with 'no override over MCP' clarified. Missing only what the returned payload shape is and whether repeated calls are idempotent.

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 key fact (returns a command, no disk writes) is front-loaded and every clause carries distinct information with no filler. The telegraphic style and undefined terms ('shrink the prefix', 'credential-shaped source') cost some readability, but nothing is redundant.

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?

With five optional, fully schema-documented parameters and no output schema, the description covers the decision-relevant behavior: refusal modes, the no-op case, and the force escape hatch. It partially fills the missing output schema by naming what is returned (command plus operations, optionally file contents), leaving only the exact return structure unstated.

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%, so baseline would be 3; the description goes beyond it by explaining that force:true overrides only the non-shrinking-compile refusal and explicitly not the credential-shaped-source refusal. That is genuine semantic coupling between the refusal rules and the force parameter that the schema alone does not convey.

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 states a concrete verb and output: it returns the command that writes the plan (backups first) plus the operations it performs, and explicitly notes the server never touches disk. That is a specific, distinguishable purpose, though it leans on unexplained jargon ('the plan', 'prefix') and never differentiates itself from siblings like doctor or undo.

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?

Use is only implicitly signalled by 'Compile or re-apply' and the 'nothing to apply' no-op outcome; there is no explicit statement of when to call this instead of doctor, init, or undo. The refusal conditions are behavioral constraints, not usage routing, so the agent must infer the workflow step.

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

Deploy Server

Other Tools