Skip to main content
Glama
zimsoft

智睦云打印

Official

create_roaming_task

Submit documents from public URLs to cloud print queues for pickup at any connected printer. Create remote print jobs and access files across multiple locations.

Instructions

Create a roaming print task from a public document URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_nameYes
urlYes
media_formatYes

Implementation Reference

  • MCP tool handler for create_roaming_task. Decorated with @app.tool(), it validates the media_format against SUPPORTED_MEDIA_FORMATS and delegates to the CloudPrintClient.
    @app.tool()
    def create_roaming_task(file_name: str, url: str, media_format: str) -> dict:
        """Create a roaming print task from a public document URL."""
        normalized = media_format.upper()
        if normalized not in SUPPORTED_MEDIA_FORMATS:
            raise ValueError(f"Unsupported media_format: {media_format}")
        return get_client().create_roaming_task(
            file_name=file_name,
            url=url,
            media_format=normalized,
        )
  • Core implementation of create_roaming_task in CloudPrintClient. Makes HTTP POST request to /openapi/task/createRoamingTask endpoint with file_name, url, and media_format.
    def create_roaming_task(
        self,
        file_name: str,
        url: str,
        media_format: str,
    ) -> dict[str, Any]:
        return self._post_text(
            "/openapi/task/createRoamingTask",
            {
                "fileName": file_name,
                "url": url,
                "mediaFormat": media_format,
            },
        )
  • Tool registration via @app.tool() decorator from FastMCP. The function signature defines the tool's input schema for the MCP framework.
    @app.tool()
    def create_roaming_task(file_name: str, url: str, media_format: str) -> dict:
        """Create a roaming print task from a public document URL."""
        normalized = media_format.upper()
        if normalized not in SUPPORTED_MEDIA_FORMATS:
            raise ValueError(f"Unsupported media_format: {media_format}")
        return get_client().create_roaming_task(
            file_name=file_name,
            url=url,
            media_format=normalized,
        )
  • SUPPORTED_MEDIA_FORMATS tuple defines valid media format values used for input validation in create_roaming_task and other tools.
    SUPPORTED_MEDIA_FORMATS = (
        "HTML",
        "PNG",
        "JPG",
        "PDF",
        "BMP",
        "WEBP",
        "WORD",
        "EXCEL",
        "PPT",
        "TEXT",
        "WPS",
        "ODF",
        "ODT",
        "ODS",
        "ODP",
        "ODG",
        "XPS",
        "PWG",
    )
  • _post_text helper method used by create_roaming_task to make HTTP POST requests and return the response as text (returns taskId).
    def _post_text(self, endpoint: str, payload: dict[str, Any]) -> dict[str, Any]:
        response = self.session.post(
            f"{self.base_url}{endpoint}",
            json=payload,
            timeout=self.timeout,
        )
        self._raise_for_http_error(response)
        return {"success": True, "taskId": response.text.strip()}
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds the constraint that the URL must be 'public,' but fails to disclose whether the operation is asynchronous, what the return value is (likely a task ID given the 'create task' naming), or how to check task status. It does not indicate if the operation is destructive or idempotent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single efficient sentence with no redundancy. However, given that all three parameters lack schema descriptions and no annotations exist, the description is underspecified. It prioritizes brevity over necessary detail, making it 'too concise' for the complexity of the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with three undocumented parameters, no annotations, and no output schema, the description is insufficient. It lacks guidance on the 'roaming' workflow, expected 'media_format' values, the purpose of 'file_name' when a URL is provided, and how to interpret or use the return value (presumably a task identifier).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage for all three parameters (file_name, url, media_format). The description only partially compensates by implying the 'url' parameter requires a public document URL. It completely omits explanation of 'file_name' (is it a destination name or metadata?) and 'media_format' (expected values like 'A4', 'Letter', 'PDF'?).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Create') and resource ('roaming print task'), and includes the source ('public document URL'). The term 'roaming' helps distinguish it from the sibling 'direct_print_document', though it could further clarify what 'roaming' implies in this context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus siblings like 'direct_print_document' or 'upload_file'. It mentions 'public document URL' which hints at a requirement, but does not explicitly state selection criteria or prerequisites for using this specific tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/zimsoft/webprinter-mcp'

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