create_tenant_provider_policy
Define policies for tenant providers by specifying conditions, audience, and descriptions to manage access and permissions effectively within the UseGrant MCP Server.
Instructions
Create a new policy for a tenant provider
Input Schema
Name | Required | Description | Default |
---|---|---|---|
audience | Yes | The audience of the tenant provider policy | |
conditions | Yes | The conditions of the tenant provider policy | |
description | Yes | The description of the tenant provider policy | |
name | Yes | The name of the tenant provider policy | |
providerId | Yes | The ID of the tenant provider | |
tenantId | Yes | The ID of the tenant |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"audience": {
"description": "The audience of the tenant provider policy",
"maxLength": 100,
"minLength": 3,
"type": "string"
},
"conditions": {
"description": "The conditions of the tenant provider policy",
"items": {
"additionalProperties": false,
"properties": {
"key": {
"description": "The key of the condition",
"maxLength": 10,
"minLength": 1,
"type": "string"
},
"operator": {
"description": "The operator of the condition",
"enum": [
"stringEquals",
"stringLike",
"stringNotEquals",
"stringNotLike"
],
"type": "string"
},
"value": {
"description": "The value of the condition",
"maxLength": 100,
"minLength": 1,
"type": "string"
}
},
"required": [
"key",
"operator",
"value"
],
"type": "object"
},
"maxItems": 5,
"minItems": 1,
"type": "array"
},
"description": {
"description": "The description of the tenant provider policy",
"maxLength": 100,
"minLength": 10,
"type": "string"
},
"name": {
"description": "The name of the tenant provider policy",
"minLength": 3,
"type": "string"
},
"providerId": {
"description": "The ID of the tenant provider",
"minLength": 1,
"type": "string"
},
"tenantId": {
"description": "The ID of the tenant",
"minLength": 1,
"type": "string"
}
},
"required": [
"tenantId",
"providerId",
"name",
"description",
"audience",
"conditions"
],
"type": "object"
}