Skip to main content
Glama

get_api_doc

Retrieve and rank COPT API documentation by name or natural language description to find usage details for Python interfaces.

Instructions

根据查询指令召回并排序最相似的API文档,在你不清楚COPT的相关API用法时,可以调用此工具

Args: instructions: 查询指令,支持自然语言描述与代码片段的查询,参考的查询指令如下: - "name": 查询API名称,如"Model.addConstr()"/"Envr()" - "description": 查询需求描述,如"使用矩阵建模添加一组线性约束" language: API接口语言,目前支持的语言如下: - "Python": Python接口 domain: 查询指令对应的字段,目前支持的领域如下: - "name": 查询API名称 - "description": 查询API描述 recall_num: 查询召回数量,默认为10,最大为25 return_num: 重排序后最终返回数量,默认为3,最大为8

Hints: - 在能够明确API名称时,优先选择"name"字段 - 在希望精准查询特定API时,推荐选择"name"字段 - 在希望根据需求描述模糊查询时,推荐选择"description"字段

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYes查询指令对应的字段
languageYesAPI接口语言
recall_numYes查询召回数量
return_numYes重排序后最终返回数量
instructionsYes查询指令,支持自然语言描述与代码片段的查询

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It explains the retrieval and re-ranking behavior, the distinction between recall_num and return_num (with max values), and supported input types (natural language and code snippets). It doesn't state read-only behavior explicitly, but the search/ranking nature and absence of side effects is implied. It doesn't cover error cases or response format, but the output schema covers return structure.

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?

The description is well-structured with a front-loaded purpose sentence, a clear 'Args:' section with bullet-point examples, and a concise 'Hints:' section. Each part adds value; no filler or redundancy. The formatting aids readability and quick comprehension.

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?

The tool is a search/retrieval operation with 5 parameters, all covered in the description. The description provides use cases, parameter details, and hints. Since an output schema is present, not explaining return values is acceptable. The only minor gap is the lack of explicit mention about read-only nature or potential limitations, but overall it is complete for its complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds significant meaning beyond the schema. It provides defaults for recall_num (10) and return_num (3), enumerates valid values for language ('Python') and domain ('name'/'description'), and gives illustrative query examples for instructions ('Model.addConstr()' and a description query). Schema descriptions are generic, so the description compensates effectively with concrete usage details.

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 tool's purpose: to recall and rank the most similar API docs based on query instructions, specifically for COPT API usage. It distinguishes from sibling tools (get_citation, get_reference) by focusing on API documentation search, and uses a specific verb ('召回并排序') that conveys the retrieval and ranking behavior.

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 description explicitly states when to use the tool ('when you are unclear about COPT's relevant API usage') and provides hints on selecting 'name' vs 'description' fields for different query scenarios. It doesn't explicitly mention when not to use it or name alternatives, but the context and field-level recommendations offer clear guidance.

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/ChengJiale150/COPT-MCP'

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