upload_design_md
Uploads DESIGN.md to a Stitch project. Use this tool when the user wants to create a design system from a DESIGN.md file. Instructions for Tool Call: * Call create_design_system_from_design_md tool immediately after this tool to create the design system from the uploaded DESIGN.md, and display th...
This record as markdown: /tools/com-googleapis-stitch-mcp/upload-design-md.md
What upload_design_md does on Mcp
AI agents use upload_design_md to create or update resources in Mcp, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Mcp environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Required. The project ID to upload the DESIGN.md to, example: '4044680601076201931', without the `projects/` prefix. |
designMdBase64 | string | Yes | Required. The base64-encoded DESIGN.md content. The decoded content must be valid UTF-8; uploads with invalid UTF-8 bytes will be rejected. Run `base64 -w 0 ` t |
Parameters from the server's own tool schema.
Why upload_design_md is rated Medium
The tool performs a write operation by uploading a file to a project. It is reversible (can be deleted or overwritten) and does not delete data or execute arbitrary code. The severity is low because design system files are typically configuration/documentation artifacts with limited blast radius if misused—the worst case would be overwriting a design system definition, which is recoverable.
From the tool's definition Uploads DESIGN.md to a Stitch project. This is a file upload operation that creates or modifies project data (the DESIGN.md file within the project).
Attacks that exploit this kind of access
The rule that runs upload_design_md safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Mcp, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For upload_design_md, this is the rule to start with:
upload_design_md stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Mcp, apply this rule, and every upload_design_md call is checked against it from then on.
Questions about upload_design_md
Uploads DESIGN.md to a Stitch project. Use this tool when the user wants to create a design system from a DESIGN.md file. Instructions for Tool Call: * Call create_design_system_from_design_md tool immediately after this tool to create the design system from the uploaded DESIGN.md, and display the design system in the UI. It is categorised as a Write tool in the Mcp MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
upload_design_md accepts 2 parameters: projectId, designMdBase64. Required: projectId, designMdBase64. The full parameter table on this page comes from the server's own tool schema.
Register the MCP server in PolicyLayer and add a rule for upload_design_md: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Mcp. Nothing to install.
upload_design_md is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the upload_design_md rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for upload_design_md. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
upload_design_md is provided by the MCP server (https://stitch.googleapis.com/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on , and thousands of servers like it.
This server
Across the catalogue