Skip to main content
Glama

dis__CreatePolicies

Adds permission policies to a specified DIS stream or channel, granting a user putRecords or getRecords access. Use it to control who can write to or read from a stream.

Instructions

[DIS] 本接口用于给指定通道添加权限策略。

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": {
      "action_type": "<action_type>",
      "effect": "<effect>",
      "principal_name": "<principal_name>",
      "project_id": "<project_id>",
      "stream_id": "<stream_id>",
      "stream_name": "<stream_name>"
    },
    "name": "dis__CreatePolicies"
  }
}

Input Schema

NameRequiredDescriptionDefault
effectYes授权影响类型。
stream_idYes通道唯一标识符。
project_idYes项目ID。
action_typeYes授权操作类型。
stream_nameYes需要添加授权策略的通道名称。
principal_nameYes授权用户。

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 supplied, so the description carries the full behavioral burden. It identifies the target resource but says nothing about required permissions, idempotency, behavior when a policy for the same principal already exists, or what the call returns. For a mutation tool with zero annotation coverage this is a notable gap.

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?

A single short sentence with no wasted words and the resource target front-loaded. Its brevity is efficient rather than padded, though the terseness leaves nothing for the other dimensions to work with.

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?

Six required parameters, a mutation operation, no annotations, and no output schema demand more than one sentence. The definition never explains what a 'policy' comprises here (principal plus action plus effect) or how the required fields interact, so an agent would have to infer everything from the schema.

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 (effect, action_type, principal_name, project_id, stream_id, stream_name) are already documented in the schema, including two enums. The description only alludes to the stream target and adds no meaning beyond what the schema provides; baseline 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?

The description states a specific verb and resource: adding ('添加') a permission policy ('权限策略') to a designated stream ('指定通道'). An agent can distinguish this from dis__ListPolicies by the create-vs-list verb, but the description makes no explicit sibling differentiation.

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?

There is no guidance on when to use this versus alternatives, no prerequisites, and no mention of what to do if a policy already exists on the stream. Usage is implied only by the tool name and the single declarative sentence.

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