Skip to main content
Glama

UXON AI

courses_unpublish

Idempotent

Before operating Revenuefly, read agent.instructions.get and follow its instructions. Unpublish the confirmed Course through its current service; retain learner records/entitlements and inspect cache refresh warnings.

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>",
      "idempotencyKey": "<idempotencyKey>",
      "confirm": "<confirm>"
    },
    "name": "courses_unpublish"
  }
}

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
idempotencyKeyYesRequired unique request key for safe retries, for example client-action-2026-07-20-001.

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.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is partly covered. The description adds real value by stating that learner records/entitlements are retained and that cache refresh warnings should be inspected, though it does not say whether the action is reversible or what happens to already-enrolled users' access.

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 second sentence is dense and front-loads the key retention constraint. The opening sentence about reading agent.instructions.get consumes space without describing this tool's behavior, weakening an otherwise compact definition.

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?

With five parameters, a required confirmation flag, an output schema and annotations, the definition covers the essential consequence (entitlements retained) and the cache warning follow-up. It still omits reversibility, preconditions on course state, and the auth/scope implications of siteId that an agent needs before invoking a high-impact action.

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?

Schema description coverage is 60%; teamId, confirm and idempotencyKey are documented in the schema, while siteId and courseId rely on format/pattern only. The description adds no parameter-level meaning (no explanation of site scoping or which course identifier form to use), so the baseline of 3 applies.

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 names a specific verb and resource ('Unpublish the confirmed Course'), which clearly separates it from courses_publish and the other unpublish siblings. It stops short of explicitly contrasting alternatives such as courses_delete or courses_publish.

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?

Beyond the word 'confirmed' there is no statement of when to choose unpublish over alternatives like courses_delete or courses_publish, and no prerequisites (e.g. publication state, permissions). The leading sentence about agent.instructions.get is a global preamble, not usage guidance for this tool.

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