Skip to main content
Glama

upload_resume

Upload a resume file to sync with your profile or add as an alternate resume. Supports PDF, DOC, and DOCX formats up to 5MB.

Instructions

Upload a resume as base64 file content. Supported formats: PDF, DOC, DOCX. Maximum file size: 5MB. Read the file from the user's machine and pass the base64-encoded content. By default, your profile will be synced with the resume content. Use isAltResume to upload as an alternate resume instead of replacing your primary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileContentYesBase64-encoded file content of the resume. Read the file and pass the base64 content here.
fileNameYesOriginal filename including extension (e.g. "resume.pdf")
syncProfileNoWhether to sync profile with resume content (default: true). Ignored for alt resumes.
isAltResumeNoUpload as an alternate resume instead of replacing the primary resume (default: false)

Implementation Reference

  • The handler function that executes the 'upload_resume' tool logic by calling the API client's uploadResumeFromBase64 method.
    async (args) => {
      const isAlt = args.isAltResume || false;
      const syncProfile = args.syncProfile !== false;
    
      const ext = args.fileName.substring(args.fileName.lastIndexOf('.') + 1).toLowerCase();
      if (!['pdf', 'docx', 'doc'].includes(ext)) {
        return { content: [{ type: 'text' as const, text: JSON.stringify({ error: 'Invalid file type. Supported formats: PDF, DOC, DOCX.' }, null, 2) }] };
      }
    
      const result = await client.uploadResumeFromBase64(args.fileContent, args.fileName, syncProfile, isAlt);
      return {
        content: [{
          type: 'text' as const,
          text: JSON.stringify({
            success: true,
            message: isAlt ? 'Alternate resume uploaded successfully' : 'Resume uploaded successfully',
            uri: result.uri,
            fileName: result.fileName,
            isAltResume: isAlt,
          }, null, 2),
        }],
      };
  • The Zod schema definition for the arguments of the 'upload_resume' tool, specifying input fields like fileContent, fileName, syncProfile, and isAltResume.
    {
      fileContent: z.string().describe('Base64-encoded file content of the resume. Read the file and pass the base64 content here.'),
      fileName: z.string().describe('Original filename including extension (e.g. "resume.pdf")'),
      syncProfile: z.boolean().optional().describe('Whether to sync profile with resume content (default: true). Ignored for alt resumes.'),
      isAltResume: z.boolean().optional().describe('Upload as an alternate resume instead of replacing the primary resume (default: false)'),
    },
  • The registration of the 'upload_resume' tool within the MCP server using the server.tool method.
    server.tool(
      'upload_resume',
      'Upload a resume as base64 file content. Supported formats: PDF, DOC, DOCX. Maximum file size: 5MB. Read the file from the user\'s machine and pass the base64-encoded content. By default, your profile will be synced with the resume content. Use isAltResume to upload as an alternate resume instead of replacing your primary.',
      {
        fileContent: z.string().describe('Base64-encoded file content of the resume. Read the file and pass the base64 content here.'),
        fileName: z.string().describe('Original filename including extension (e.g. "resume.pdf")'),
        syncProfile: z.boolean().optional().describe('Whether to sync profile with resume content (default: true). Ignored for alt resumes.'),
        isAltResume: z.boolean().optional().describe('Upload as an alternate resume instead of replacing the primary resume (default: false)'),
      },
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well by disclosing key behavioral traits: file format constraints (PDF, DOC, DOCX), size limits (5MB), default behavior (profile syncing), and the effect of the isAltResume parameter. It doesn't mention authentication requirements, rate limits, or error conditions, but covers the essential operational constraints.

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?

The description is efficiently structured with four sentences that each serve a distinct purpose: stating the core function, listing constraints, providing implementation guidance, and explaining parameter behavior. There's no wasted text, and key information is front-loaded.

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

Completeness4/5

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

For a mutation tool with no annotations and no output schema, the description provides good coverage of operational constraints and parameter behavior. It could be more complete by mentioning authentication requirements, response format, or error handling, but given the schema's thorough parameter documentation, it's reasonably complete for the agent's needs.

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 description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds minimal parameter semantics beyond the schema - it mentions the purpose of 'isAltResume' and that 'syncProfile' is ignored for alt resumes, but doesn't provide additional context about parameter interactions or usage patterns.

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?

The description clearly states the specific action ('Upload a resume as base64 file content') and distinguishes it from sibling tools like 'delete_resume' or 'get_resume' by focusing on file upload functionality. It specifies the resource (resume) and the method (base64 encoding).

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?

The description provides clear context for when to use this tool (uploading resumes with specific formats and size limits) and mentions the 'isAltResume' parameter for alternative use cases. However, it doesn't explicitly state when NOT to use it or name specific alternatives among sibling tools like 'generate_resume_for_job' or 'import_job_by_url'.

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

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/6figr-com/job-gpt-mcp-server'

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