Skip to main content
Glama

create-presentation

Generate a new PowerPoint presentation by specifying its name. Use this tool to initiate creation of custom presentations for user requests.

Instructions

This tool starts the process of generating a new powerpoint presentation with the name given by the user. Use this tool when the user requests to create or generate a new presentation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the presentation (without .pptx extension)

Implementation Reference

  • The handler logic for the 'create-presentation' tool. It creates a new empty PowerPoint presentation using the python-pptx library's Presentation() constructor and stores it in the PresentationManager instance under the given name.
    elif name == "create-presentation": presentation_name = arguments.get("name") if not presentation_name: raise ValueError("Missing presentation name") # Create new presentation prs = Presentation() try: presentation_manager.presentations[presentation_name] = prs except KeyError as e: raise ValueError(f"Unable to add {presentation_name} to presentation. Error: {str(e)}") return [ types.TextContent( type="text", text=f"Created new presentation: {presentation_name}" ) ]
  • Registration of the 'create-presentation' tool within the @server.list_tools() decorator. Includes the tool's name, description, and input schema definition.
    name="create-presentation", description="This tool starts the process of generating a new powerpoint presentation with the name given " "by the user. Use this tool when the user requests to create or generate a new presentation.", inputSchema={ "type": "object", "properties": { "name": { "type": "string", "description": "Name of the presentation (without .pptx extension)", }, }, "required": ["name"], }, ),
  • Input schema definition for the 'create-presentation' tool, specifying a required 'name' string property.
    name="create-presentation", description="This tool starts the process of generating a new powerpoint presentation with the name given " "by the user. Use this tool when the user requests to create or generate a new presentation.", inputSchema={ "type": "object", "properties": { "name": { "type": "string", "description": "Name of the presentation (without .pptx extension)", }, }, "required": ["name"], }, ),

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/supercurses/powerpoint'

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