Skip to main content
Glama

confirm_upload

Step 2 after the PUT to the get_upload_url URL succeeds: registers the file in the user's HubPost media and returns the mediaId to attach to a post.

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": {
      "filePath": "<filePath>",
      "filename": "<filename>"
    },
    "name": "confirm_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYes
filenameYesDisplay name for the media

Output Schema

NameRequiredDescriptionDefault
mediaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, closed-world mutation, so the description's main added value is the sequencing and the fact that it returns a mediaId for post attachment. It does not say what happens on a retry or duplicate call (no idempotency statement) or what errors arise if the prior PUT never completed, which are the real behavioral risks for a two-phase upload.

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?

One sentence, front-loaded with the precondition and ending with the actionable output (mediaId). No filler and nothing repeated from the schema or annotations.

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?

The output schema means return values need not be explained, and the step ordering is fully covered. However, for a mutation whose correctness hinges on supplying the right filePath, leaving that parameter's meaning and any retry/idempotency behavior unaddressed is a meaningful gap.

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 description never mentions either parameter. Coverage is only 50%: filename has a schema description but filePath does not, and its name misleadingly suggests a local filesystem path while the pattern (^[a-z0-9-]+\.[a-z0-9]+$) implies a server-side key or object name. With that ambiguity unresolved in both schema and description, an agent could easily pass the wrong value.

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

Purpose5/5

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

States a specific verb and resource ('registers the file in the user's HubPost media') and positions itself precisely in a two-step flow, naming the sibling get_upload_url as step 1 and create_post implicitly as the consumer of the returned mediaId. An agent can distinguish this from every sibling without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit precondition: call this only after the PUT to the get_upload_url URL has succeeded. That both says when to use it and rules out the failure case (PUT not yet done), and it names the sibling that must precede it.

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