verify_domain
Check and confirm domain ownership for a provider using the specified domain and provider IDs through the UseGrant MCP Server.
Instructions
Verify a domain for a provider
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domainId | Yes | The ID of the domain | |
| providerId | Yes | The ID of the provider |
Implementation Reference
- src/index.ts:189-194 (handler)The handler function for the 'verify_domain' tool. It takes providerId and domainId, calls usegrant.verifyDomain, and returns a JSON-formatted response.async ({ providerId, domainId }) => { const domain = await usegrant.verifyDomain(providerId, domainId); return { content: [{ type: 'text', text: JSON.stringify(domain, null, 2) }], }; },
- src/index.ts:185-188 (schema)Input schema for the 'verify_domain' tool, defining providerId and domainId using schemas from UseGrant SDK.{ providerId: UgSchema.ProviderIdSchema, domainId: UgSchema.DomainIdSchema, },
- src/index.ts:182-195 (registration)Registration of the 'verify_domain' tool on the MCP server, including name, description, schema, and handler.server.tool( 'verify_domain', 'Verify a domain for a provider', { providerId: UgSchema.ProviderIdSchema, domainId: UgSchema.DomainIdSchema, }, async ({ providerId, domainId }) => { const domain = await usegrant.verifyDomain(providerId, domainId); return { content: [{ type: 'text', text: JSON.stringify(domain, null, 2) }], }; }, );