Skip to main content
Glama

Mark a provider or model unavailable

mark_unavailable
Idempotent

Marks a provider instance or model unavailable when a child cannot start due to usage limits or plan restrictions, optionally until a reset time, so routing can avoid it.

Instructions

Call when a child cannot start, or stops at once, because of a usage limit or its plan (for example "not included in your weekly usage"). Until until (by default the quotaWindow of the provider's subscription profile, 5h, weekly or monthly, else 24 h from now), recommend_model moves that provider instance, or only that model, after every other candidate except models that cost extra on their plan (those go after it), and gives the reason. Not for poor results: those are log_outcome failure. clear: true removes marks instead.

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": {
      "providerInstanceId": "<providerInstanceId>"
    },
    "name": "mark_unavailable"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNoThe host you run in: t3 (T3 Code), herdr, orca. Default: the host of this server's last recommend_model call, else t3.
clearNoRemove the marks of this provider instance (only this model's when model is given).
modelNoModel id, or a prefix ending in * for every model id that starts with it (e.g. "opencode-go/*" for one plan's models inside a provider instance). Omit it when the whole provider instance is unavailable.
untilNoISO date when it should work again (for example the resetsAt of the usage window). Default: the quotaWindow of the provider's subscription profile (or of its quotaPool), else 24 h from now.
reasonNoWhat failed, briefly (kept to 200 characters). Required unless clear is true.
providerInstanceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • addedInput schema / properties / host
      Added value: +{
      +  "description": "The host you run in: t3 (T3 Code), herdr, orca. Default: the host of this server's last recommend_model call, else t3.",
      +  "enum": [
      +    "t3",
      +    "herdr",
      +    "orca"
      +  ],
      +  "type": "string"
      +}
  2. Addedv0.1.3

TDQS

A4/5.0
Behavior4/5

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

Annotations establish non-read-only, idempotent, non-destructive, so the bar is lower, and the description still adds real behavior: the default expiry derived from the subscription's quotaWindow or 24h, the resulting ordering in recommend_model, and the fact that clear removes marks. It does not say whether marks persist across server restarts or how the tool responds when a provider is already marked.

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 trigger is front-loaded and every sentence carries information, but the middle sentence is a long, hard-to-parse run-on ('recommend_model moves that provider instance, or only that model, after every other candidate except models that cost extra on their plan...'), and the `until` default is duplicated between description and schema.

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?

For a six-parameter mutation with no output schema and no annotations beyond safety hints, the description covers the trigger, the default expiry, the downstream effect on selection, and how to undo. Missing only persistence and error/idempotency response behavior, which are minor here.

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 coverage is 83%, so the baseline is 3 and the schema already documents host, clear, model, until, and reason. The description reinforces the semantics of `until` (quotaWindow default, 5h/weekly/monthly profiles, else 24h), `clear` (removes marks for the instance or just the model), and the reason-required-unless-clear rule, but largely restates what the schema fields already say rather than adding new meaning.

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 frames the tool by its trigger (a child that cannot start or stops at once due to a usage limit or plan) and by its effect on recommend_model ordering, which lets an agent distinguish it from log_outcome. It never plainly states 'marks the provider instance or model unavailable', leaving the core verb to be inferred from the name/title and the later 'clear: true removes marks' clause.

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 when-to-use ('a child cannot start, or stops at once, because of a usage limit or its plan'), explicit example of the error text, explicit when-not ('Not for poor results: those are log_outcome failure'), and an in-tool alternative (clear: true) for undoing the action.

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