Skip to main content
Glama
fastmcp-me

gcp-mcp

by fastmcp-me

get_role_permissions

Retrieve IAM role details and permissions by supplying the role name. Optionally specify a project ID for custom roles.

Instructions

    Get detailed information about an IAM role, including its permissions.
    
    Args:
        role_name: The name of the role (e.g., "roles/compute.admin" or "projects/my-project/roles/myCustomRole")
        project_id: Optional project ID for custom roles. Not needed if role_name is fully qualified.
    
    Returns:
        Detailed information about the IAM role
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
role_nameYes
project_idNo
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does not mention whether the operation is read-only, what errors may occur (e.g., role not found), authentication requirements, or the structure of the returned details. The description only states the return is 'detailed information,' which is generic and lacks behavioral depth.

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?

The description is concise, front-loaded with the purpose, and logically structured with Args and Returns sections. Every sentence contributes value: the purpose sentence, the parameter explanations, and the return statement. There is no redundancy or filler.

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?

Given the low complexity (2 parameters, no output schema, no annotations), the description is adequate but incomplete. It lacks specific return detail fields and error handling behavior. However, for a simple read-only tool, the description sufficiently conveys what the tool does and how to invoke it. The vague 'detailed information' leaves some ambiguity.

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

Parameters4/5

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

The schema provides only parameter names and types with 0% description coverage. The description compensates by explaining role_name with concrete examples ('roles/compute.admin' or fully-qualified custom role paths) and clarifying that project_id is optional for custom roles. This adds meaningful context beyond the schema, though it could be more explicit about interactions between parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'Get detailed information about an IAM role, including its permissions.' The verb 'Get' is specific, the resource 'IAM role' is well-defined, and the scope 'including its permissions' distinguishes it from sibling tools like list_roles (which lists roles) and check_iam_permissions (which checks permissions for principals).

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?

The description provides parameter guidance (role_name format, optional project_id) but does not explicitly state when to use this tool versus alternatives. No exclusions or comparison with sibling tools are given. Usage context is implied through the parameter explanations but not directly addressed.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fastmcp-me/gcp-mcp-henihaddad'

If you have feedback or need assistance with the MCP directory API, please join our Discord server