update_provider

Update a provider's metadata, limits, or expiration. reset_usage clears accumulated usage counters immediately, so use it only when you intend to reset quota tracking. Returns the updated provider id and slug.

Server Portkey Admin CodesWhat/portkey-admin-mcp
Category Write
Risk class Medium
Parameters 121 required

What update_provider does on Portkey Admin

AI agents use update_provider to create or update resources in Portkey Admin — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Portkey Admin environment.

ParameterTypeRequiredDescription
name string New display name for the provider
note string New note or description for the provider
slug string Yes The slug of the provider to update
expires_at string New expiration date in ISO 8601 format
reset_usage boolean Set to true to reset accumulated usage metrics
credit_limit number New credit limit for usage
workspace_id string Workspace ID - required when using organization admin keys
periodic_reset string Period for resetting usage limits: 'monthly' or 'weekly'. Defaults to 'monthly'.
alert_threshold number New alert threshold percentage (0-100)
rate_limit_unit string Rate limit unit: 'rpm' (requests per minute), 'rph' (requests per hour), or 'rpd' (requests per day)
rate_limit_value number New rate limit value
usage_limit_type string Type of usage limit: 'cost' (monetary) or 'tokens' (token count). Defaults to 'cost'.

Parameters from the server's own tool schema.

Why update_provider needs a policy

An AI agent can call update_provider faster than any human can review — one bad instruction and it creates or modifies resources in Portkey Admin by the hundred, each call as confident as the last.

Risk signalsHigh parameter count (12 properties)

Questions about update_provider

What does the update_provider tool do? +

Update a provider's metadata, limits, or expiration. reset_usage clears accumulated usage counters immediately, so use it only when you intend to reset quota tracking. Returns the updated provider id and slug. It is categorised as a Write tool in the Portkey Admin MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

What parameters does update_provider accept? +

update_provider accepts 12 parameters: name, note, slug, expires_at, reset_usage, credit_limit, workspace_id, periodic_reset, alert_threshold, rate_limit_unit, rate_limit_value, usage_limit_type. Required: slug. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on update_provider? +

Register the Portkey Admin MCP server in PolicyLayer and add a rule for update_provider: 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 Portkey Admin. Nothing to install.

What risk level is update_provider? +

update_provider is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit update_provider? +

Yes. Add a rate_limit block to the update_provider 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.

How do I block update_provider completely? +

Set action: deny in the PolicyLayer policy for update_provider. 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.

What MCP server provides update_provider? +

update_provider is provided by the Portkey Admin MCP server (CodesWhat/portkey-admin-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.