Skip to main content
Glama

subagent_call

Call an external AI model for a subtask using OpenAI or Anthropic APIs with custom endpoint configuration; returns token usage statistics.

Instructions

Call an external AI model to handle a subtask.

Supports OpenAI and Anthropic APIs with custom endpoint configuration. Returns response with token usage statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerYesAI provider - "openai" or "anthropic"
modelYesModel name (e.g., "gpt-4", "claude-3-5-sonnet-20241022", or any custom model)
messagesYesJSON string of message list [{"role": "user", "content": "..."}]
max_tokensNoMaximum tokens to generate (optional, max 32000)
temperatureNoTemperature parameter 0.0-2.0 (default: 0.7)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations provided, and the description lacks details on side effects (e.g., API calls, latency, costs, error handling) that are critical for a tool making external network calls.

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 sentences with efficient front-loading: core purpose first, then supported APIs and return value. No redundant information.

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

Completeness2/5

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

For a complex tool making external API calls, the description is incomplete. It omits details on authentication, endpoints, error handling, rate limits, and cost implications, which are essential for safe and correct usage.

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 coverage is 100%, so baseline is 3. The description adds minimal extra meaning (e.g., supported providers, token usage return) but also introduces an inconsistency by mentioning 'custom endpoint configuration' without a corresponding parameter.

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 clearly states the action ('Call'), the resource ('external AI model'), and the context ('handle a subtask'), distinguishing it from sibling tools like subagent_config_set or subagent_conditional.

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 on when to use this tool versus alternatives (e.g., subagent_parallel, subagent_conditional). It only states the basic purpose, leaving the agent without decision-making support.

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