AgentEarth Skill
This connector exposes 5 MCP tools backed by the AgentEarth platform. AgentEarth gives access to 1400+ external API tools across categories including AI generation, web search, maps, weather, finance, media metadata, developer APIs, and news. Use these MCP tools directly — do not call any HTTP endpoint yourself; the connector already handles authentication.
Available Tools
GetAccountOverview
Returns the authenticated user's account info. Takes no arguments.
Response fields: user_id, user_name, key_name, credit (remaining balance), error_no (0 = success).
Call this directly — without RecommendTools first — whenever the user asks
about their AgentEarth account, user ID, API key name, or credit balance.
RecommendTools - discover tools for a task
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| query | string | 是 | 面向任务的自然语言描述 |
| limit | integer | - | 返回工具数量上限 (1-50),默认 5 |
Returns a list of candidate tools, each with:
tool_name— the tool's identifiertool_url— opaque URL to pass toExecuteTool; never modify itdescription,when_to_use— what the tool does and when to pick itcredit— cost of one call, use this plus task fit to choose among candidatesinput_schema— JSON Schema forExecuteTool'sparamsassociated_tools— optional companion tools (e.g. a geocoding/ID lookup tool) that may need to be called first if a required field can't be filled directly from user input
Call this before ExecuteTool for any external-tool task. Read every
candidate's input_schema and associated_tools before picking one — some
fields require an ID or code obtained from a companion lookup tool rather
than free text (e.g. a weather tool that needs a location ID resolved by a
geocoding tool first).
ListTools - browse tools without semantic search
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| page | integer | - | 页码,从 1 开始,默认 1 |
| page_size | integer | - | 每页数量 (1-100),默认 20 |
| keyword | string | - | 按名称/描述关键词过滤 |
| sort | string | - | 排序方式 |
Use when the user wants to browse or search tools by name/category rather than describe a task.
GetToolDetail - inspect one tool by exact name
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| tool_name | string | 是 | 精确工具名 |
Returns the same shape as one entry from RecommendTools/ListTools
(tool_url, description, input_schema, etc). Use when you already know
the exact tool_name (e.g. from associated_tools, or the user named a
specific tool) and don't need semantic search.
ExecuteTool - run a tool
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| tool_url | string | 是 | 从 RecommendTools/GetToolDetail 原样取得的 URL,禁止修改、拼接或重排 |
| params | object | - | 按所选工具 input_schema 构造的入参 |
Must be called after RecommendTools or GetToolDetail. tool_url must be
passed through byte-for-byte as returned — do not edit, re-encode, or
reconstruct it. Build params strictly from the selected tool's
input_schema.properties; validate required, type, enum, and
additionalProperties before calling.
Examples
- "What's my AgentEarth credit balance?" → call
GetAccountOverview()directly (noRecommendTools). - "Use AgentEarth to check today's weather in Shanghai" →
RecommendTools({"query": "current weather in Shanghai"})→ pick a weather tool from the candidates → if itsinput_schemaneeds a location ID/adcode rather than a free-text city name, call the companion lookup tool named inassociated_toolsfirst →ExecuteTool({"tool_url": <candidate's tool_url>, "params": {...}}). - "Use AgentEarth to check the current Bitcoin price" →
RecommendTools({"query": "current bitcoin price"})→ExecuteToolwith the chosen finance tool'stool_urland schema-derivedparams. - "List the AgentEarth tools related to maps" →
ListTools({"keyword": "map"})to browse by name instead of describing a task. - User names a specific tool exactly (e.g. "run ae_qweather_geo_top_city") →
GetToolDetail({"tool_name": "ae_qweather_geo_top_city"})instead ofRecommendTools.
Workflow
- Account questions (user ID, user name, key name, credit balance) → call
GetAccountOverviewdirectly. SkipRecommendToolsfor these. - External-tool tasks → call
RecommendToolswith a natural-language description of the task, orListTools/GetToolDetailwhen the user wants to browse or inspect tools by name. - Review the candidates'
tool_url,description,when_to_use, andinput_schema. Pick the best fit by task relevance, schema clarity, andcreditcost; keep a fallback candidate when one exists. - If a required param needs an ID/code from a companion tool (see
associated_tools), call that tool first. - Call
ExecuteToolwith the exacttool_urlandparamsbuilt frominput_schema. - Never invent a required value (URL, ID, token, code snippet, or other concrete input) that the user hasn't provided — ask the user instead.
Reading the Result
ExecuteTool's MCP result has an isError field — that is the reliable
success/failure signal, not a fixed field inside the payload:
isErrorabsent/false — the call succeeded. The content is the raw response of the underlying third-party API, in that API's own format (it may or may not contain something resemblingerror_no/status fields of its own — don't assume a single universal shape across tools).isError: true— the call failed. The error detail comes back wrapped as<tool_output>...</tool_output>, often followed by a<platform_annotation>with a suggestion (e.g. "revise your request parameters based on the upstream provider's error message"). Use that detail to correctparamsand retry, or fall back to another candidate fromRecommendToolsif the issue isn't fixable from user-provided input.
GetAccountOverview and GetToolDetail/RecommendTools/ListTools (the
AgentEarth-native lookups, as opposed to ExecuteTool passthrough results)
do use error_no == 0 as their own success signal.
Credentials
The AgentEarth API key is injected by WorkBuddy from the connector's Token
form (token-schema.json) directly into the MCP connection — this skill
never sees or handles it. Do not ask the user to paste an API key in chat.
If the connector shows as disconnected or a call fails with an auth error,
tell the user to (re)connect AgentEarth from the WorkBuddy Connector page.
If the user needs a new or replacement AgentEarth API key (lost, revoked, or
first-time setup), point them to https://agentearth.ai/r/8oo9zmDn — sign in, then open the
avatar menu in the top-right corner and go to API Keys — then have them
paste it into the WorkBuddy Connector's Token form, never into the chat.
Incorrect Flow
- Calling
ExecuteToolbeforeRecommendTools/GetToolDetail. - Modifying, re-encoding, or reconstructing
tool_url. - Inventing required params instead of asking the user.
- Treating
error_no == 0as the success signal forExecuteToolresults — useisErrorinstead. - Making raw HTTP requests to AgentEarth endpoints yourself, or asking the user for their API key — this connector only ever talks to AgentEarth through the 5 MCP tools above.


