Skip to main content

Updating a Provider Prompt

When you identify edge cases in the LLM’s adherence to a prompt, or when you need to introduce a new required parameter (argument) to a workflow programmatically, you can patch the prompt directly.

Using REST API

The API Endpoint

PATCH /providers/{providerId}/prompts/{id}

Structuring the Patch Request

Generate a JSON object conforming to the UpdateProviderPromptRequest payload. Due to HasMCP’s patch methodology, you only map the internal top-level keys inside the prompt object that demand modification.

Example Request

If the payload merges cleanly against the original schema, the endpoint yields a 200 OK. All active server associations traversing to this provider prompt instantly consume the updated instruction set without requiring restarts.