Skip to main content
Glama

Compute classes

get_compute_classes
Read-only

The performance classes available to your account (price relative to your plan, availability) and your default class. Call it before choosing compute_class for a sandbox or a job; without compute_class the default is used.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
noteNoHow the default is applied.
classesNoClasses with their relative price and availability.
global_defaultNoThe platform's default class.
optimize_for_optionsNoValues accepted by optimize_for.
default_compute_classNoYour saved default class (empty = the global default).
effective_compute_classNoThe class used when compute_class is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior: that account-level defaults exist and are applied implicitly when compute_class is omitted, which is not derivable from the annotations or the empty schema. Output schema exists, so no credit is needed for return values.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact clauses, front-loaded with what is returned and followed by the call-condition. Every phrase carries information: the parenthetical on price/availability and the default-fallback rule both matter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a no-parameter, read-only discovery tool with an output schema, this is everything needed: what data comes back, when to call it, and the downstream consequence. Nothing an agent requires to invoke it correctly is missing.

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?

The tool takes zero parameters, so parameter semantics baseline is 4. The description does reference compute_class, but that is a parameter of other tools, not of this one, so it adds no param meaning beyond the schema.

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?

Names a specific resource (compute classes) and enumerates the payload's content: price relative to plan, availability, and the account default class. That enumeration makes the tool unmistakable among the sibling read tools like get_budget or get_job_summary.

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?

States explicitly when to call it ('before choosing compute_class for a sandbox or a job') and what happens if it is skipped ('without compute_class the default is used'). That is a when-to-use rule plus the consequence of omission, leaving no inference to the agent.

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