Skip to main content
Glama

iam__CreateAgencyCustomPolicy

Creates an IAM custom policy for agency delegation, enabling administrators to specify allowed or denied actions and resource URIs for delegated access.

Instructions

[IAM] 该接口可以用于管理员创建委托自定义策略。

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": {
      "role": "<role>"
    },
    "name": "iam__CreateAgencyCustomPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYes自定义策略信息。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does disclose the administrator permission requirement, which is worth something, but it says nothing about irreversibility, quota/rate limits, what a successful response contains, or how the created policy must subsequently be attached to an agency.

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?

One front-loaded sentence with no filler, and the actor and action come first. It is efficiently written, but the brevity reflects under-specification rather than tight editing of a complete definition.

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 a deeply nested policy schema, no output schema, and no annotations, a single sentence leaves important behavior unexplained. The schema is self-documenting enough that an agent could still construct the call, which keeps this from being a 1–2, but the definition does not fully prepare an agent for correct use.

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?

The schema describes the single 'role' parameter and its deeply nested fields at 100% coverage, so the schema already does the explanatory work. The description adds no meaning about the field structure, the enumerated Action values, or the required Version='1.1', so it sits at the baseline.

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?

It gives a specific verb and resource ('创建委托自定义策略' - create an agency custom policy) and names the actor ('管理员' / administrator). The 'agency' qualifier implicitly separates it from iam__CreateCloudServiceCustomPolicy, but the description never states the distinction explicitly.

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 only usage signal is that it is for administrators. There is no guidance on when to create an agency custom policy rather than a cloud-service custom policy, no prerequisites (e.g., that the agency must already exist or that the policy must be attached afterward), and no named alternatives despite several sibling create/update tools.

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