Skip to main content
Glama

config__ListPolicyStatesByAssignmentId

Lists all compliance results for a specified policy assignment (rule ID), with pagination and filters for resource ID, resource name, and compliance state.

Instructions

[CONFIG] 根据规则ID查询所有的合规结果

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": {
      "domain_id": "<domain_id>",
      "policy_assignment_id": "<policy_assignment_id>"
    },
    "name": "config__ListPolicyStatesByAssignmentId"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo最大的返回数量
markerNo分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
domain_idYes帐号ID
resource_idNo资源ID
resource_nameNo资源名称
compliance_stateNo合规状态
policy_assignment_idYes规则ID

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?

With no annotations supplied, the description must carry the full behavioral burden and does not. It never states that this is a read-only listing, that results are paginated via limit/marker, that the schema exposes filter parameters (resource_id, resource_name, compliance_state), or what a returned compliance state looks like.

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 a bracketed domain tag that is front-loaded and wastes no words. It is efficient, though its brevity edges toward under-specification rather than optimal conciseness.

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?

For a seven-parameter, paginated, filterable listing tool with no annotations and no output schema, the description is far too thin. An agent cannot learn from it that results are paged, that filters exist, or what the returned states represent.

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 seven parameters are already documented in the schema. The description only restates the policy_assignment_id scoping and adds no meaning about how the optional filters combine or whether they are ANDed. Baseline 3 is appropriate because the schema does the heavy lifting.

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 names a specific verb (查询/List) and resource (合规结果/compliance results) and scopes it to a rule ID (规则ID), which implicitly sets it apart from the by-domain and by-resource siblings. It does not explicitly name those siblings, so an agent must infer the distinction from the parameter wording alone.

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 when-to-use guidance: no mention of when to pick this over config__ListPolicyStatesByDomainId, config__ListPolicyStatesByResourceId, or the rms__ equivalents, and no prerequisites such as needing an existing assignment. The scope wording implies a natural use case, but nothing is stated.

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