Skip to main content
Glama

dataartsstudio__AuthorizeApiToInstance

Authorize a DataArts Studio API to one or more apps in a cluster instance, enabling those apps to access the API during a specified validity period.

Instructions

[DATAARTSSTUDIO] APP创建成功后,还不能访问API,如果想要访问某个API,需要将该API授权给APP。API主动授权成功后,在有效期内,APP即可访问该API。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "api_id": "<api_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "dataartsstudio__AuthorizeApiToInstance"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeNo截止时间
api_idYesapi编号。
app_idsNoapp编号列表
project_idYes项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。
instance_idYes集群编号。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the core effect (the APP gains access for the authorization validity period implied by the time field), which is useful, but says nothing about required permissions, whether re-authorization is idempotent, whether authorization can be revoked, or what happens to apps omitted from app_ids.

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?

It is short, front-loaded with the motivating situation, and free of boilerplate. It does repeat the same idea twice (the APP cannot access the API until it is authorized, then can access it after authorization), which is mild redundancy rather than filler.

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

Completeness3/5

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

For a mutation tool with no annotations and no output schema, the description covers the purpose and the post-condition but omits permissions, failure modes, and the meaning of the optional expiry and app-list parameters. Adequate to select the tool, thin for invoking it confidently.

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 api_id, instance_id, project_id, app_ids and time are all documented structurally; the baseline of 3 applies. The description never mentions the app_ids list or the time expiry, so it adds no meaning beyond the schema.

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 states a specific verb and resource: authorize an API to an APP so the APP can call it, and notes that this is needed after APP creation. It is clear on its own but does not differentiate itself from close siblings such as AuthorizeActionApiToInstance or ExecuteApiToInstance, which an agent could easily confuse with it.

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?

It gives a clear precondition and trigger: an APP exists but cannot call the API yet, so the API must be granted to it, and access works within the validity period afterward. It stops short of naming when to pick a sibling tool instead (for example action-API authorization vs. execution), so no exclusions are offered.

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

Deploy Server

Other Tools