Skip to main content
Glama

litellm_write

Create or update LiteLLM resources (keys, teams, users, models, etc.) non-destructively via the LiteLLM MCP server. Pass an operation name and JSON parameters to manage proxy settings.

Instructions

Create or update LiteLLM resources (non-destructive): keys, teams, users, orgs, customers, budgets, models, credentials, tags, guardrails, fallbacks, MCP servers/toolsets, access groups.

Call with operation="help" to list all available write operations. Otherwise pass the operation name and a JSON object with parameters.

Example: litellm_write(operation="GenerateKey", params={"team_id": "..."})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsNo
operationYes
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses the non-destructive nature and create/update semantics, but doesn't detail permissions, idempotency, or effects on existing resources. With no annotations, more depth would be helpful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three concise sentences plus a clear example; no redundant information. The key points are front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a broad multi-resource tool, the description adequately orients the agent, leveraging the operation='help' mechanism to discover specifics. No output schema exists, but the help command mitigates this gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description explains the operation parameter via the help mechanism and gives an example with params, compensating for the schema's lack of detail. It clarifies that params is a JSON object but doesn't enumerate possible values beyond the example.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states 'Create or update LiteLLM resources (non-destructive)' with a list of resource types, distinguishing this write tool from siblings like litellm_delete and litellm_read. The verb and resource scope are specific.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit usage instructions: call with operation='help' to list operations, otherwise pass operation name and params. It doesn't explicitly exclude use cases but the non-destructive label implies when to use vs delete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/nikitatsym/litellm-mcp'

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