Skip to main content
Glama
grammy-mcp
by louietyj

setMyProfilePhoto

Destructive

Updates the bot's Telegram profile photo by setting a new photo; returns True on success.

Instructions

Changes the profile photo of the bot. Returns True on success.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "photo": "<photo>"
    },
    "name": "setMyProfilePhoto"
  }
}

Input Schema

NameRequiredDescriptionDefault
photoYesThe new profile photo to set

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the mutation profile is covered. The description adds the return contract ('Returns True on success'), which is valuable given there is no output schema, but it never states that the previous photo is replaced/lost or what authorization is needed for a destructive change.

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?

Two short sentences, front-loaded with the action and followed by the return contract; no filler. It is efficient, though it leans on brevity rather than explanatory structure.

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

Completeness3/5

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

For a destructive, open-world mutation with a nested-object parameter, the definition is thin: it omits what happens to the existing photo, permission requirements, and any reference to the removal sibling. The return-value note partially compensates for the missing output schema.

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?

Schema coverage is 100% with a single required 'photo' parameter, so the schema carries the semantics. The description adds nothing about the accepted nested InputProfilePhoto shapes or whether a reference/file reference vs upload is expected, which is the baseline-3 outcome when the schema does the work.

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 names a specific verb and resource ('Changes the profile photo') and scopes it to 'the bot', which distinguishes it from the chat-photo and business-account-photo siblings without naming them. It is clear but stops short of explicitly routing to those alternatives.

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 on when to use this versus setChatPhoto, setBusinessAccountProfilePhoto, or removeMyProfilePhoto, and no prerequisites (e.g., required rights or bot-owner scope) are stated. The agent must infer all usage conditions from the name alone.

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

Deploy Server

Other Tools