Skip to main content
Glama
aiterm-mcp
by kitepon

agent_models

Fetch a harness's official model and reasoning-effort candidates without sending prompts or consuming inference; returned IDs and efforts can be passed directly to launch or configure agents.

Instructions

harnessが今返すmodelとreasoning effortの候補を、そのharnessの公式の一覧から取得する。promptもturnも送らず推論を消費しない。Codexはapp-server model/list、Claude Codeはstream-json initializeのmodels、Grokはagent stdio initializeのmodelState、Cursorはcursor-agent modelsを素のmodel IDとeffortへ分けたもの。Antigravityはagy modelsのeffortを含むIDをそのまま返す。返るidとeffortsはagent_launch/agent_configureへそのまま渡せる。modelごとのfastは、そのmodelでfastへ切り替えられるか(harnessが返す値)。fast_unavailableは、アカウントの都合でどのmodelでも使えない時の訳。取得不能はMODEL_CATALOG_UNAVAILABLE、形式異常はMODEL_CATALOG_INVALIDのエラーで返し、別の一覧へfallbackしない。remoteを付けると別端末のharnessの候補を返す。

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": {
      "harness": "<harness>"
    },
    "name": "agent_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoCLIを実行する作業ディレクトリ(絶対パス・任意)。project設定で候補が変わるharness向け
remoteNo別端末のAitermで実行する時のSSH接続情報。hostだけならssh_configの接続名として使う。Aitermは接続情報を保存・管理しない。passphraseは会話記録に残るため、ssh-agentかpassphrase_env(環境変数名)を推奨する。
harnessYes候補を取得するharness
claude_loginNoclaude-code harnessだけ。一覧を読むlogin(slot名、例 1st)。AITERM_CLAUDE_CONFIG_ROOTSの下の<slot>/oauth-tokenを、席の起動と同じCLAUDE_CODE_OAUTH_TOKENとして使う。tokenはAitermの外へ出さない。読めない時はCLAUDE_LOGIN_UNAVAILABLE。省略はこのAitermのenvのlogin
include_hiddenNoCodexが一覧で隠すmodelも返す(既定false)。他のharnessには隠すmodelが無い
configuration_rootNoclaude-code harnessだけ。一覧を読むアカウントの設定root(CLAUDE_CONFIG_DIR)。受ける範囲はagent_launchと同じ(既定のroot、またはAITERM_CLAUDE_CONFIG_ROOTSに並べた親の直下)。他はAGENT_CONFIGURATION_ROOT_REJECTED。省略は既定のroot

Output Schema

NameRequiredDescriptionDefault
modelsYes
schemaYes
sourceYes取得に使ったharnessの公式の入口
effortsYes全modelのeffortの和
harnessYes
default_modelYesmodel省略時にharnessが使うmodel。一覧のIDで表せなければnull
adapter_effortsYesharnessの一覧には無く、Aitermのadapterが足したeffortと理由
harness_versionYes
fast_unavailableNoこのアカウント・この端末では、どのmodelでもfastを使えない時の訳(harnessが先に答えられる時だけ。今はClaude Code)。使える・分からない時はnull

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.70.127
    • changedInput schema / properties / harness / enum
      Previous value: -[
      -  "claude-code",
      -  "claude-machine",
      -  "codex-cli",
      -  "grok-cli",
      -  "cursor-cli",
      -  "antigravity-cli"
      -]New value: +[
      +  "claude-code",
      +  "claude-machine",
      +  "codex-cli",
      +  "codex-machine",
      +  "grok-cli",
      +  "grok-machine",
      +  "cursor-cli",
      +  "cursor-machine",
      +  "antigravity-cli",
      +  "antigravity-machine"
      +]
    • changedOutput schema / properties / harness / enum
      Previous value: -[
      -  "claude-code",
      -  "claude-machine",
      -  "codex-cli",
      -  "grok-cli",
      -  "cursor-cli",
      -  "antigravity-cli"
      -]New value: +[
      +  "claude-code",
      +  "claude-machine",
      +  "codex-cli",
      +  "codex-machine",
      +  "grok-cli",
      +  "grok-machine",
      +  "cursor-cli",
      +  "cursor-machine",
      +  "antigravity-cli",
      +  "antigravity-machine"
      +]
  2. Changed1 schema field changedv0.70.112
    • addedInput schema / properties / remote / properties / ssh
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Pinned ssh: {known_hosts_file, host_key_alias?, identity_agent | identity_file, strict_host_key?: true} (absolute paths). Strict host checking against that file with that one identity, no user ssh config. Not combinable with identity_file, ssh_options, passphrase or passphrase_env. Needs Aiterm 0.70.101 on the other computer.",
      +  "properties": {
      +    "host_key_alias": {
      +      "pattern": "^(?!-)[A-Za-z0-9._%:\\[\\]-]{1,255}$",
      +      "type": "string"
      +    },
      +    "identity_agent": {
      +      "pattern": "^(\\/|[A-Za-z]:[\\\\/])[^\\s\"'`]*$",
      +      "type": "string"
      +    },
      +    "identity_file": {
      +      "pattern": "^(\\/|[A-Za-z]:[\\\\/])[^\\s\"'`]*$",
      +      "type": "string"
      +    },
      +    "known_hosts_file": {
      +      "pattern": "^(\\/|[A-Za-z]:[\\\\/])[^\\s\"'`]*$",
      +      "type": "string"
      +    },
      +    "strict_host_key": {
      +      "const": true,
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "known_hosts_file"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changedv0.70.91
    • changedInput schema / properties / harness / enum
      Previous value: -[
      -  "claude-code",
      -  "codex-cli",
      -  "grok-cli",
      -  "cursor-cli",
      -  "antigravity-cli"
      -]New value: +[
      +  "claude-code",
      +  "claude-machine",
      +  "codex-cli",
      +  "grok-cli",
      +  "cursor-cli",
      +  "antigravity-cli"
      +]
    • changedOutput schema / properties / harness / enum
      Previous value: -[
      -  "claude-code",
      -  "codex-cli",
      -  "grok-cli",
      -  "cursor-cli",
      -  "antigravity-cli"
      -]New value: +[
      +  "claude-code",
      +  "claude-machine",
      +  "codex-cli",
      +  "grok-cli",
      +  "cursor-cli",
      +  "antigravity-cli"
      +]
  4. Changed1 schema field changedv0.70.39
    • addedInput schema / properties / claude_login
      Added value: +{
      +  "description": "claude-code harnessだけ。一覧を読むlogin(slot名、例 1st)。AITERM_CLAUDE_CONFIG_ROOTSの下の<slot>/oauth-tokenを、席の起動と同じCLAUDE_CODE_OAUTH_TOKENとして使う。tokenはAitermの外へ出さない。読めない時はCLAUDE_LOGIN_UNAVAILABLE。省略はこのAitermのenvのlogin",
      +  "minLength": 1,
      +  "type": "string"
      +}
  5. Changed1 schema field changedv0.70.3
    • addedInput schema / properties / configuration_root
      Added value: +{
      +  "description": "claude-code harnessだけ。一覧を読むアカウントの設定root(CLAUDE_CONFIG_DIR)。受ける範囲はagent_launchと同じ(既定のroot、またはAITERM_CLAUDE_CONFIG_ROOTSに並べた親の直下)。他はAGENT_CONFIGURATION_ROOT_REJECTED。省略は既定のroot",
      +  "minLength": 1,
      +  "type": "string"
      +}
  6. Changed2 schema fields changedv0.62.2
    • changedInput schema / properties / harness / enum
      Previous value: -[
      -  "claude-code",
      -  "codex-cli",
      -  "grok-cli",
      -  "cursor-cli"
      -]New value: +[
      +  "claude-code",
      +  "codex-cli",
      +  "grok-cli",
      +  "cursor-cli",
      +  "antigravity-cli"
      +]
    • changedOutput schema / properties / harness / enum
      Previous value: -[
      -  "claude-code",
      -  "codex-cli",
      -  "grok-cli",
      -  "cursor-cli"
      -]New value: +[
      +  "claude-code",
      +  "codex-cli",
      +  "grok-cli",
      +  "cursor-cli",
      +  "antigravity-cli"
      +]
  7. Changed3 schema fields changedv0.60.1
    • addedOutput schema / properties / fast_unavailable
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "enum": [
      +            "FAST_MODE_NOT_SUPPORTED",
      +            "FAST_MODE_UNAVAILABLE",
      +            "FAST_MODE_MODEL_CONFLICT",
      +            "FAST_MODE_UNCONFIRMED"
      +          ],
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "このアカウント・この端末では、どのmodelでもfastを使えない時の訳(harnessが先に答えられる時だけ。今はClaude Code)。使える・分からない時はnull"
      +}
    • addedOutput schema / properties / models / items / properties / fast
      Added value: +{
      +  "description": "このharness・このmodelでfastへ切り替えられるか(agent_launch/agent_configureのfast: true)。fastが別のmodel IDのharness(Cursor・Grok)は、fast版を別のmodelとして並べず、元のmodelのここがtrueになる",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / models / items / required
      Previous value: -[
      -  "id",
      -  "display_name",
      -  "efforts",
      -  "default_effort",
      -  "hidden"
      -]New value: +[
      +  "id",
      +  "display_name",
      +  "efforts",
      +  "default_effort",
      +  "hidden",
      +  "fast"
      +]
  8. Addedv0.45.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well: it discloses that no inference is consumed, maps how each harness sources its list, defines the per-model 'fast' flag and 'fast_unavailable', and specifies the MODEL_CATALOG_UNAVAILABLE / MODEL_CATALOG_INVALID error semantics with a no-fallback guarantee. This is rich behavioral context that goes well beyond any structured field.

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 the main points are dense but ordered sensibly (purpose, sources, return contract, errors, remote). The per-harness implementation detail (app-server model/list, stream-json initialize, etc.) is informative but lengthens the text; minor trimming was possible.

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?

Given the moderate complexity, full schema coverage, and an existing output schema, the description is complete: it explains the return contract (id/efforts mapping, fast semantics) that an output schema alone wouldn't convey in prose, plus error paths. Nothing an agent needs to call it correctly appears missing.

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 100%, so the schema already documents harness, cwd, remote, claude_login, include_hidden, and configuration_root in detail. The description only adds behavioral meaning for 'remote' (returns another device's harness candidates); the rest of the parameter semantics is left to the schema, matching the baseline 3.

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?

The description states a specific verb and resource: it retrieves the model/effort candidates a harness currently returns, from that harness's official list. It also implicitly distinguishes itself from agent_launch/agent_configure by noting the returned ids and efforts can be passed straight into them, so an agent can tell it apart from the sibling tools.

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?

The text makes clear this is a non-inference, non-turn discovery call ('promptもturnも送らず推論を消費しない') whose output feeds agent_launch/agent_configure, giving clear context for when to invoke it. It stops short of an explicit when-not-to-use or a named alternative, so it lands at 4 rather than 5.

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