Skip to main content
Glama

Save a provider's subscription profile

set_subscription
Idempotent

Save a provider instance's plan, quota, role, and usage rules so recommendations can rank and filter providers by subscription limits; remove the profile when needed.

Instructions

Save what the user told you about the plan behind a provider instance, usually after recommend_model returned setupNeeded. Replaces that provider's whole profile (pass every field to keep; get_subscriptions shows it); remove: true deletes it. recommend_model then ranks and filters with it: a tight quota or the experimental role keeps a provider for families the user has nowhere else and for tasks that are neither large nor highly critical; models billed apart (paidFamilies, or not in includedFamilies) and anything outside onlyFamilies, avoidFamilies or onlyTaskTypes are used only when nothing else can run; providers with the same quotaPool share usage limits.

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": "set_subscription"
  }
}

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.
planNoThe plan in the user's words, e.g. "Claude Max", "OpenCode Go". Required unless remove.
roleNoprimary (any task; the default), secondary (after primary ones), experimental (only what its rules allow, like a tight quota) or lastResort (after every other candidate).
quotaNogenerous (rarely hits the limit), standard, or tight (runs out quickly). Required unless remove.
removeNoDelete this provider's profile instead (takes no other field).
purposeNoWhat the user wants it for, in their words (300 characters at most).
quotaPoolNoSame name on every provider instance that shares one quota (one plan for several apps).
quotaWindowNoHow often the plan's limit resets: 5h, weekly or monthly. Sets how long mark_unavailable lasts.
onlyFamiliesNoUse this provider only for these policy families.
paidFamiliesNoPolicy families billed apart from the plan (API prices, prepaid credit).
avoidFamiliesNoNever use these policy families on this provider.
onlyTaskTypesNoUse this provider only for these task types.
includedFamiliesNoPolicy families the plan covers; every other family is billed apart.
providerInstanceIdYesProvider instance id, as in orchestrator_capabilities.

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

A3.7/5.0
Behavior1/5

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

The description says remove: true deletes the profile and that saving replaces the provider's whole profile, while annotations declare destructiveHint=false. That is an annotation contradiction. Aside from the contradiction, it does disclose useful downstream ranking and filtering effects.

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 purpose is front-loaded and there is little repetition. The final sentence is dense and semicolon-heavy, but each clause carries useful policy or ranking information.

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 14-parameter mutation tool with no output schema, the description covers the main save/replace/delete behavior and the downstream effects on recommend_model. It does not explain permissions or the response shape, but the core invocation context is present.

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 the baseline is 3, but the description adds cross-parameter semantics beyond the schema: paidFamilies and not-in-includedFamilies are billed apart, onlyFamilies/avoidFamilies/onlyTaskTypes gate usage, and quotaPool shares limits. It does not individually explain every field, but it adds meaningful interaction rules.

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?

States a specific verb and resource: save a provider's subscription profile. It also distinguishes the read path (get_subscriptions shows it) and the delete mode (remove: true deletes it), so an agent can tell what this tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear timing cue: usually after recommend_model returned setupNeeded. It also names get_subscriptions as the way to inspect the profile, but it does not explicitly state when not to use this tool or name alternative mutation paths.

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