Skip to main content
Glama

subagent_config_set

Configure Subagent providers by saving API key and base URL to a config file for persistent use.

Instructions

设置 Subagent 提供商的 API 配置(持久化保存)

此工具将 API 密钥和基础 URL 保存到配置文件中,下次启动时自动加载。 配置文件位置:~/.subagent_config.json

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerYes提供商名称,支持: "openai", "anthropic"
api_keyYesAPI 密钥
api_baseNoAPI 基础 URL(可选)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description discloses that configuration is saved persistently to a specific file (~/.subagent_config.json) and auto-loaded on restart. This is sufficient behavioral information for a config-set tool, given no annotations are provided. However, it does not mention overwrite behavior or security implications.

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 short sentences in Chinese concisely convey purpose, persistence, and file location. Every word earns its place; no redundancy.

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 tool's simplicity (3 params, no complex behavior) and the existence of an output schema, the description adequately explains the core action and persistence aspect. It could mention return values or error cases, but these are likely covered by the output schema.

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?

The input schema already provides full descriptions for all three parameters (100% coverage). The description confirms that api_key and api_base are saved but adds no new semantic details beyond the schema. Baseline of 3 is appropriate.

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 clearly states the tool sets Subagent provider API configuration and saves it persistently. The verb 'set' and resource 'Subagent provider API configuration' are specific. However, it does not explicitly differentiate from sibling tools like subagent_config_get or subagent_config_list, relying on the name alone.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. There is no mention of prerequisites, when to avoid using it, or comparison to related tools such as subagent_config_get.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/quyansiyuanwang/oh-my-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server