Skip to main content
Glama
Tencent

Tencent Cloud COS MCP Server

Official
by Tencent

aiSuperResolution

Enhance image resolution using advanced AI technology. Integrated with Tencent Cloud COS MCP Server, it processes images directly from cloud storage, delivering higher quality outputs without manual coding.

Instructions

图片处理-超分辨率

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
objectKeyYes图片在存储桶里的路径

Implementation Reference

  • The aiSuperResolution method in CIAIService class that executes the AI super resolution image processing using Tencent COS API with rule 'ci-process=AISuperResolution'.
    async aiSuperResolution(objectKey: string) {
      try {
        const result = await new Promise((resolve, reject) => {
          const outPutFileid = generateOutPutFileId(objectKey);
          this.cos.request(
            {
              Bucket: this.bucket, // 存储桶,必须字段
              Region: this.region, // 存储桶所在地域,必须字段 如 ap-beijing
              Key: objectKey, // 对象文件名,例如:folder/document.jpg。
              Method: 'POST', // 固定值
              Action: 'image_process', // 固定值
              Headers: {
                'Pic-Operations': JSON.stringify({
                  rules: [
                    {
                      fileid: `${outPutFileid}`,
                      rule: 'ci-process=AISuperResolution',
                    },
                  ],
                }),
              },
            },
            function (error, data) {
              if (error) {
                // 处理请求失败
                reject(error);
              } else {
                // 处理请求成功
                resolve(data);
              }
            },
          );
        });
    
        return {
          isSuccess: true,
          message: '图片超分成功',
          data: result,
        };
      } catch (error) {
        return {
          isSuccess: false,
          message: '图片超分失败',
          data: error,
        };
      }
    }
  • src/server.ts:360-377 (registration)
    Registers the 'aiSuperResolution' tool in the MCP server, defining the schema (objectKey: string) and handler that calls CIAIInstance.aiSuperResolution.
      'aiSuperResolution',
      '图片处理-超分辨率',
      {
        objectKey: z.string().describe('图片在存储桶里的路径'),
      },
      async ({ objectKey }) => {
        const res = await CIAIInstance.aiSuperResolution(objectKey);
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(res.data, null, 2),
            },
          ],
          isError: !res.isSuccess,
        };
      },
    );
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states '图片处理-超分辨率', implying a processing operation that likely modifies or enhances images, but doesn't specify if it's read-only, destructive, requires authentication, has rate limits, or what the output entails (e.g., returns a processed image URL). This is a significant gap for a tool with no annotation coverage.

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

Conciseness4/5

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

The description is very concise with just two words ('图片处理-超分辨率'), which is efficient and front-loaded. However, it's arguably too brief, bordering on under-specified, as it lacks necessary details for clarity. Every word earns its place, but more context would improve usefulness without sacrificing conciseness.

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?

Given the tool's complexity (image processing with potential side effects), no annotations, no output schema, and minimal description, the description is incomplete. It doesn't explain what the tool returns, how it behaves, or when to use it, making it inadequate for an AI agent to invoke correctly. More information is needed to compensate for the lack of structured data.

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

Parameters3/5

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

The input schema has 1 parameter with 100% description coverage ('图片在存储桶里的路径' meaning 'path of the image in the storage bucket'), so the schema fully documents the parameter. The description adds no additional meaning beyond what the schema provides, such as format examples or constraints. With high schema coverage, the baseline score of 3 is appropriate.

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

Purpose3/5

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

The description '图片处理-超分辨率' translates to 'image processing - super resolution', which indicates the general purpose of enhancing image resolution. However, it's vague about the specific action (e.g., 'apply', 'generate', 'enhance') and doesn't differentiate from sibling tools like 'assessQuality' or 'waterMarkFont', which are also image-related. It avoids tautology but lacks specificity.

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?

No guidance is provided on when to use this tool versus alternatives. The description doesn't mention prerequisites, context (e.g., for low-resolution images), or exclusions (e.g., not for text processing). With sibling tools like 'assessQuality' and 'imageInfo', there's no indication of how this tool fits into the workflow, leaving usage unclear.

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

Related 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/Tencent/cos-mcp'

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