get_content_submission_quota
Retrieve content submission quota details for a website from Bing Webmaster Tools to manage URL submission limits.
Instructions
Get content submission quota information.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:934-949 (handler)The handler function that implements the core logic of the 'get_content_submission_quota' tool. It makes an API request to retrieve the content submission quota for the given site URL and processes the response.async def get_content_submission_quota( site_url: Annotated[str, "The URL of the site"] ) -> Dict[str, Any]: """ Get content submission quota information. Args: site_url: The URL of the site Returns: Content submission quota details """ async with api: quota = await api._make_request(f"GetContentSubmissionQuota?siteUrl={site_url}") return api._ensure_type_field(quota, "ContentSubmissionQuota")
- mcp_server_bwt/main.py:930-933 (registration)The @mcp.tool decorator that registers the 'get_content_submission_quota' tool with the MCP server, specifying its name and description.@mcp.tool( name="get_content_submission_quota", description="Get content submission quota information.", )
- mcp_server_bwt/main.py:934-936 (schema)The function signature defines the input schema (site_url as string) and output type (Dict[str, Any]), which the MCP framework uses for validation.async def get_content_submission_quota( site_url: Annotated[str, "The URL of the site"] ) -> Dict[str, Any]: