Skip to main content
Glama

penpot_schema

Retrieve the Penpot API schema in JSON format to understand available endpoints and data structures for programmatic design workflows.

Instructions

Provide the Penpot API schema as JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'penpot_schema' tool, which loads the Penpot schema JSON file from the resources path and returns it as a dictionary.
    def penpot_schema() -> dict: """Provide the Penpot API schema as JSON.""" schema_path = os.path.join(config.RESOURCES_PATH, 'penpot-schema.json') try: with open(schema_path, 'r') as f: return json.load(f) except Exception as e: return {"error": f"Failed to load schema: {str(e)}"}
  • Registration of the 'penpot_schema' tool using the MCP decorator.
    @self.mcp.tool()
  • Identical handler function registered as a resource 'penpot://schema', providing the same schema loading logic.
    def penpot_schema() -> dict: """Provide the Penpot API schema as JSON.""" schema_path = os.path.join(config.RESOURCES_PATH, 'penpot-schema.json') try: with open(schema_path, 'r') as f: return json.load(f) except Exception as e: return {"error": f"Failed to load schema: {str(e)}"}
  • Registration of the penpot_schema as an MCP resource.
    @self.mcp.resource("penpot://schema", mime_type="application/schema+json")

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/montevive/penpot-mcp'

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