Skip to main content
Glama

Upload a photo

upload_photo

Upload an image the person shared so it can be attached to a job. Returns a file_id for create_job_draft.attachments.

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": {
      "image_base64": "<image_base64>"
    },
    "name": "upload_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNo
content_typeNoimage/jpeg
image_base64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare a non-destructive write to an open world, so the safety profile is covered. The description usefully adds the return contract (a file_id consumed by create_job_draft.attachments) but omits upload constraints an agent would trip over, such as the ~10MB base64 payload cap and whether re-uploads are idempotent.

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

Conciseness5/5

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

Two short sentences, zero filler, with the purpose front-loaded and the return value placed where an agent needs it before chaining to the next tool.

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?

No output schema exists, and the description does part of that job by naming file_id. However, for a 3-parameter tool with zero schema documentation and a binary payload, missing encoding and size guidance leaves real gaps.

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?

Schema description coverage is 0%, so the description must carry parameter meaning, and it does not. It never says image_base64 must be a base64-encoded string, what filename does, or that content_type defaults to image/jpeg and is restricted to four enum values — the name image_base64 alone hints at encoding.

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?

Specific verb and resource ("Upload an image") plus the business intent (attach to a job) and the downstream consumer (create_job_draft.attachments). No sibling can be confused with it, though it does not explicitly say it is the only upload path.

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

Usage Guidelines4/5

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

States the triggering context (an image the person shared) and where the result goes, which effectively routes the agent to create_job_draft next. It gives no explicit when-not guidance or prerequisites (auth, size limits) that would earn a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources