Skip to main content
Glama

UXON AI

courses_variants_archive

DestructiveIdempotent

Before operating Revenuefly, read agent.instructions.get and follow its instructions. Archive the confirmed reviewed Course variant under existing active-test/last-variant restrictions. Main uses the existing replacement; learner records remain.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "siteId": "<siteId>",
      "courseId": "<courseId>",
      "variantId": "<variantId>",
      "expectedRevision": "<expectedRevision>",
      "idempotencyKey": "<idempotencyKey>",
      "confirm": "<confirm>"
    },
    "name": "courses_variants_archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYes
teamIdNoTarget organization ID from organizations_list. Applies to this request only.
confirmYesRequired for this high-impact action. Set to true only after the user has approved the action.
courseIdYes
variantIdYes
idempotencyKeyYesRequired unique request key for safe retries, for example client-action-2026-07-20-001.
expectedRevisionYes

Output Schema

NameRequiredDescriptionDefault
okNo
dataYesExisting Course service fields are preserved. Resource creation/variant changes return actual resource plus canonical course identity; selected reads return course/revision. Payload writes return the committed payload/revision; do not reuse a different variant's revision. Publish returns actual publicUrl and committed revision; advisory status/checks alone do not publish. Field availability follows this exact operation.
scopeYes
auditIdNo
commandYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false. Beyond that, the description adds meaningful behavior: archiving is blocked for the active test or the last remaining variant, the main course continues to use the existing replacement, and learner records are preserved rather than deleted. It does not explain the effect of expectedRevision mismatches or what the response contains, but the key side effects are disclosed.

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?

It is short and leads with the action, but the opening sentence about reading agent.instructions.get is boilerplate that does not describe this tool. The phrase 'Main uses the existing replacement' is terse and ambiguous about what the caller should expect.

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 return values need not be explained. However, this is a high-impact destructive mutation with six required parameters, and the description leaves out the concurrency contract (expectedRevision), the confirm gate, and how the 'active-test/last-variant' restrictions surface as errors. It is adequate but incomplete for the tool's risk profile.

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 only 43% across 7 parameters, so the description must compensate, and it does not. It never mentions siteId, courseId, variantId, expectedRevision, or idempotencyKey, and expectedRevision has no schema description at all, so the optimistic-concurrency requirement is undocumented everywhere.

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 specific verb and resource: 'Archive the confirmed reviewed Course variant'. It is clearly distinct from sibling tools such as courses_variants_update and courses_variants_delete. However, it does not explicitly say how it differs from a hard-delete alternative.

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?

The description implies that a variant must be 'confirmed reviewed' before it can be archived, and it names the restrictions under which archiving is allowed ('active-test/last-variant restrictions'). It gives no explicit guidance on when to archive instead of deleting or updating, and it does not point to a specific alternative tool. The first sentence is a generic instruction to read agent.instructions.get rather than usage guidance for this tool itself.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources