Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Contract Testing: Admin Create Role

contract-testing_admin_create_role

Create a new admin role with a name and permission scopes for contract testing. Define granular access rights to manage users, webhooks, or other resources.

Instructions

Create a new role with specific permissions (admin).

Toolset: Admin

Parameters:

  • 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
descriptionNoDescription of the role
permissionsYesPermissions granted by this role
Install Server

TDQS

C2.9/5.0
Behavior2/5

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

The description only restates the create action, which is already captured by annotations (readOnlyHint=false). It adds no unique behavioral context—no mention of idempotency, required admin privileges, uniqueness constraints, or what happens after creation. With annotations present, the description contributes no additional disclosure.

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

Conciseness3/5

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

The core first sentence is concise and front-loaded with the operation. However, the following parameter list fully duplicates the input schema, adding redundancy without new information. The structure is adequate but not tightly edited.

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?

For a create operation with no output schema, the description does not state response details, name uniqueness, or admin-level authorization requirements. The full parameter schema does allow an agent to construct a valid request, so it is minimally adequate, but several contextual gaps remain.

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%, including the permissions item's scope property. The description repeats the parameter names and descriptions verbatim without adding examples, constraints, or relationships beyond the schema. This meets the baseline for high schema coverage but adds no extra value.

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 clearly states the operation: 'Create a new role with specific permissions.' The verb 'Create' and resource 'role' are unambiguous, and the sibling tools (admin_update_role, admin_delete_role) are distinguished by verb. However, the parenthetical '(admin)' is ambiguous—it likely refers to the toolset but could be misread as a permission modifier.

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?

No guidance is provided on when to use this tool versus alternatives like admin_update_role, admin_set_user_roles, or admin_add_role_to_user. The 'Toolset: Admin' label gives only a category, not selection criteria. There are no stated exclusions or conditions.

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

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