Skip to main content
Glama

idt__Createauthorization

Create authorization records for data entities and instances by defining the principal and permitted operation codes in Huawei Cloud IDT.

Instructions

[IDT] 根据对象入参创建数据实体授权记录

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": {
      "appName": "<appName>",
      "entityId": "<entityId>",
      "instanceId": "<instanceId>",
      "operationCodes": "<operationCodes>",
      "principalId": "<principalId>",
      "principalType": "<principalType>"
    },
    "name": "idt__Createauthorization"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNameYesappName
entityIdYes数据实体ID
instanceIdYes数据实例ID
principalIdYes参与者ID
principalTypeYes参与者类型
operationCodesYes操作类型编码

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it only says a record is created. It does not state required permissions, idempotency or duplicate-handling behavior, whether an existing authorization is overwritten, or what a successful response contains — significant gaps for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no redundancy, which is good, but the brevity comes at the cost of under-specification rather than economy — the opening clause is filler and no substantive information follows it.

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?

With six required parameters, no annotations, and no output schema, the description should explain at minimum what is created, what the effect is, and what is returned. None of that is present, leaving the definition inadequate for a six-parameter mutation tool.

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 description coverage is 100%, so all six parameters (appName, entityId, instanceId, principalId, principalType, operationCodes) are already documented in the schema. The description adds no meaning beyond 'object parameters', so the baseline of 3 applies.

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?

States a specific verb and resource: creating a data-entity authorization record (创建数据实体授权记录). An agent can tell it is a create operation on authorization records, though the lead-in phrase '根据对象入参' (based on object parameters) adds nothing and there is no differentiation from the many sibling IDT tools.

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?

The description gives no when-to-use guidance, no prerequisites, and no indication of how it relates to alternatives such as CheckHasAccessAccessService or other IDT authorization tools. The agent must infer everything about call context from the name alone.

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