Skip to main content
Glama

omp_get_model

Retrieves the local omp default and per-role model configuration, presets, and thinking depth, and optionally lists or filters available models to verify which model is in use.

Instructions

查询本机 omp 当前默认配置的模型、各角色模型(default/smol/slow/plan)、预设与思考深度,也可按需列出或搜索本机可用模型列表。重要提示:调用本工具及向用户汇报结果时,必须明确告知用户当前通过 omp 调用的模型名称(以返回结果中的模型提示行为准)。

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

Input Schema

NameRequiredDescriptionDefault
filterNo当 list_available 为 true 时,按 provider/id/name 子串过滤模型。
list_availableNo是否同时查询 `omp models --json` 返回本机可用模型列表(默认 false)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations present, the description still discloses what the tool actually returns (default model, per-role models, presets, thinking depth) and reveals the underlying mechanism for the optional path (`omp models --json`). It also carries an explicit reporting obligation about the model name, which is real behavioral context, though it does not state cost/latency or explicitly confirm read-only, non-mutating behavior.

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?

Purpose and scope are front-loaded in a single well-packed clause, with the optional mode appended immediately after. The closing 重要提示 block is operational guidance rather than tool description, which makes the text slightly longer than strictly needed, but it is short and does not bury the core purpose.

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 two-parameter, no-required-input, read-only query tool with no output schema, the description covers what is examined and what categories of data come back, which is enough for correct invocation. What is missing is minor: what is returned when no model is configured, and any note on the cost of the list_available branch.

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 both filter and list_available are already fully documented in the schema, making 3 the baseline. The description corroborates the parameter semantics by describing list/search of available models, but adds no syntax, matching rules, or edge cases 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?

The description names a specific verb (query) and an enumerated set of resources: the default configured model, the role models (default/smol/slow/plan), presets, thinking depth, and the optional local model catalog. It is clearly a configuration-inspection tool, which cleanly separates it from the task-execution siblings such as omp_run_task and omp_ask.

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

Usage Guidelines3/5

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

It implies usage by saying the available-model listing/search is done "as needed" (按需) when list_available is set, but it never states when to prefer this tool over a sibling or when not to call it. The agent can infer the context (config introspection) but gets no explicit routing rules or exclusions.

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