Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

submit_content

Submit page content directly to Bing Webmaster Tools for indexing without waiting for crawling. Provide site URL, page URL, and content to ensure search visibility.

Instructions

Submit page content directly to Bing without crawling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes
urlYes
contentYes
content_typeNotext/html
content_lengthNo

Implementation Reference

  • Registration of the 'submit_content' tool using the @mcp.tool decorator.
    @mcp.tool( name="submit_content", description="Submit page content directly to Bing without crawling.", )
  • Input schema defined by function parameters with typing.Annotated descriptions for MCP tool schema.
    async def submit_content( site_url: Annotated[str, "The URL of the site"], url: Annotated[str, "The URL of the content"], content: Annotated[str, "The HTML content to submit"], content_type: Annotated[str, "MIME type of the content"] = "text/html", content_length: Annotated[int, "Length of the content in bytes"] = -1, ) -> Dict[str, str]:
  • The core handler logic that calculates content length if needed and makes a POST request to Bing's SubmitContent API endpoint.
    """ Submit page content directly to Bing without crawling. Args: site_url: The URL of the site url: The URL of the content content: The HTML content to submit content_type: MIME type of the content (default: text/html) content_length: Length of the content in bytes (default: auto-calculated) Returns: Success message """ async with api: if content_length == -1: content_length = len(content.encode("utf-8")) await api._make_request( "SubmitContent", "POST", { "siteUrl": site_url, "url": url, "content": content, "contentType": content_type, "contentLength": content_length, }, ) return {"message": f"Content for {url} submitted successfully"}

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/isiahw1/mcp-server-bing-webmaster'

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