Skip to main content
Glama

s3_put_object

Upload content to an S3 bucket by specifying bucket name, object key, and content data for storage management.

Instructions

Upload an object to an S3 bucket

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bucketYesThe name of the bucket
keyYesThe key (path) of the object
contentYesThe content to upload

Implementation Reference

  • Handler for the s3_put_object tool. Extracts bucket, key, and content from arguments, creates a PutObjectCommand, sends it to the S3 client, and returns a success message.
    case "s3_put_object": { const { bucket, key, content } = request.params.arguments as { bucket: string; key: string; content: string; }; const command = new PutObjectCommand({ Bucket: bucket, Key: key, Body: content, }); await s3Client.send(command); return { content: [ { type: "text", text: `Successfully uploaded to ${bucket}/${key}`, }, ], }; }
  • Tool specification including name, description, and input schema for s3_put_object in the ListTools response.
    { name: "s3_put_object", description: "Upload an object to an S3 bucket", inputSchema: { type: "object", properties: { bucket: { type: "string", description: "The name of the bucket", }, key: { type: "string", description: "The key (path) of the object", }, content: { type: "string", description: "The content to upload", }, }, required: ["bucket", "key", "content"], }, },

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/AM1010101/s3-mcp-server'

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