Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Contract Testing: Admin Update Role

contract-testing_admin_update_role
Idempotent

Update an existing role's name and permissions in SmartBear contract testing. Modify role details and permission scopes.

Instructions

Update an existing role's name and permissions (admin).

Toolset: Admin

Parameters:

  • roleId (string) required: UUID of the role to update

  • name (string) required: Name of the role

  • permissions (array) required: Permissions granted by this role

  • description (string): Description of the role

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the role
roleIdYesUUID of the role to update
descriptionNoDescription of the role
permissionsYesPermissions granted by this role
Behavior3/5

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

Annotations already indicate idempotent and non-destructive behavior. The description adds that it updates name and permissions, but does not clarify partial update semantics (e.g., whether omitted optional fields like description are cleared or left unchanged). No additional behavioral traits beyond what annotations and schema provide.

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?

The description is short and front-loaded with the action. The parameter list is redundant with the schema, but the overall length is reasonable. No unnecessary words.

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?

The description lacks information about the return value or success indicator. For a mutation tool with no output schema, the agent needs to know what the tool returns (e.g., the updated role object or a success message). This omission reduces completeness.

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 the schema already documents all parameters. The description repeats the parameter list but adds no extra meaning (e.g., does not explain that 'permissions' is an array of objects with a 'scope' property). The description adds marginal value beyond the schema.

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 identifies the action ('Update'), the resource ('existing role'), and the scope ('name and permissions'). It also includes '(admin)' to indicate the toolset. This distinguishes it from sibling tools like 'contract-testing_admin_create_role' and 'contract-testing_admin_delete_role'.

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 implies usage when updating a role but does not explicitly state when to use it versus alternatives (e.g., when to create vs update). No guidance on prerequisites (e.g., role must exist) or when not to use it. The context of 'admin' provides some implicit direction.

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/SmartBear/smartbear-mcp'

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