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. Use this tool to provide URLs and content for faster search engine 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 @mcp.tool decorator with name and description.
    @mcp.tool( name="submit_content", description="Submit page content directly to Bing without crawling.", )
  • The handler function that executes the submit_content tool. It calculates content length if needed and makes a POST request to the Bing Webmaster API's SubmitContent endpoint to submit the page content directly.
    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]: """ 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"}
  • Input schema defined by function parameters with Annotated types and descriptions for MCP tool validation.
    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]:

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