Skip to main content
Glama

explain_role_selection

Dry-run role resolution for an AWS account: shows which IAM role your TOML environment rules select, without making any service call or allowing model-chosen roles.

Instructions

Dry-run deterministic role resolution for one account; makes no service call.

Shows exactly which role the TOML environment rules would assume. The role is never chosen by the model or by the caller, and there is no override argument.

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": {
      "account_id": "<account_id>",
      "account_name": "<account_name>"
    },
    "name": "explain_role_selection"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgNo
account_idYes
account_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • removedInput schema / properties / role
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Role"
      -}
  2. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the behavioral burden and does disclose meaningful traits: no service call is made, resolution is deterministic from TOML rules, and there is no override argument so callers cannot force a role. It omits error behavior for unknown accounts and any auth requirements, which keeps it short of a 5.

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

Conciseness5/5

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

Two short sentences, front-loaded with the core purpose and no filler. Every clause adds information an agent would otherwise lack.

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?

The output schema exists, so return values need not be explained, and the deterministic no-service-call nature is covered. However, a tool with three undocumented parameters at 0% schema coverage needs at least a note on the dual account identifier and the org argument to be complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description adds almost nothing about the three parameters. It never explains why both account_id and account_name are required, what the optional org does, or how a null org is interpreted, so an agent must infer the identifier semantics entirely on its own.

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: dry-run resolution of which role the TOML environment rules would assume for one account. The 'never chosen by the model or by the caller' line also distinguishes it from action-taking siblings like use_org or list_roles, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Dry-run' and 'makes no service call' imply this is a safe pre-flight inspection to run before actually selecting a role, but the description never says when to prefer it over list_roles or use_org, nor does it state any preconditions such as needing a cached account.

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