Skip to main content
Glama

Renew a proxy

renew_proxy
Destructive

Extends a proxy subscription by one billing period and charges its renewal price to your balance; set a max approved price so the renewal is refused uncharged if the cost is higher.

Instructions

Extend a proxy by one more period of its plan, charged to your balance at its renewal price (next_renewal_price_cents in get_proxy_status); a shared proxy also gets its plan's GB added. A dedicated proxy must still be active; a shared one can be renewed until 7 days after it expires. Requires max_price_cents: the renewal price you showed the user and they approved; refused uncharged if the price is higher.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "proxy_id": "<proxy_id>",
      "max_price_cents": "<max_price_cents>"
    },
    "name": "renew_proxy"
  }
}

Input Schema

NameRequiredDescriptionDefault
proxy_idYesprx_... id
max_price_centsYesThe price you showed the user and they approved, in US cents (e.g. 250 = $2.50). Nothing is charged if the current price is higher; the new price comes back so you can ask the user again.

Output Schema

NameRequiredDescriptionDefault
proxyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / proxy / properties / topup_prices
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "additional_gb": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "days_added": {
      +            "type": "number"
      +          },
      +          "price_cents": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "additional_gb",
      +          "price_cents",
      +          "days_added"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Changed3 schema fields changedv1.2.1
    • addedInput schema / properties / max_price_cents
      Added value: +{
      +  "description": "The price you showed the user and they approved, in US cents (e.g. 250 = $2.50). Nothing is charged if the current price is higher; the new price comes back so you can ask the user again.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 1000000,
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "proxy_id"
      -]New value: +[
      +  "proxy_id",
      +  "max_price_cents"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "proxy": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "auto_renew": {
      +          "type": "boolean"
      +        },
      +        "carrier": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "charged_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "country": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "created_at": {
      +          "type": "string"
      +        },
      +        "data_bytes_used": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "data_gb_total": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "expires_at": {
      +          "type": "string"
      +        },
      +        "gateway": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "properties": {
      +                "host": {
      +                  "type": "string"
      +                },
      +                "password": {
      +                  "type": "string"
      +                },
      +                "port": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                "protocol": {
      +                  "enum": [
      +                    "http",
      +                    "socks5"
      +                  ],
      +                  "type": "string"
      +                },
      +                "socks_port": {
      +                  "anyOf": [
      +                    {
      +                      "maximum": 9007199254740991,
      +                      "minimum": -9007199254740991,
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "username": {
      +                  "type": "string"
      +                },
      +                "username_geo_hint": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "host",
      +                "port",
      +                "protocol",
      +                "username",
      +                "password"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "lists": {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "activation_note": {
      +                "type": "string"
      +              },
      +              "city": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "countries": {
      +                "anyOf": [
      +                  {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "country": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "created_at": {
      +                "type": "string"
      +              },
      +              "credentials": {
      +                "anyOf": [
      +                  {
      +                    "additionalProperties": {},
      +                    "properties": {
      +                      "host": {
      +                        "type": "string"
      +                      },
      +                      "password": {
      +                        "type": "string"
      +                      },
      +                      "port": {
      +                        "maximum": 9007199254740991,
      +                        "minimum": -9007199254740991,
      +                        "type": "integer"
      +                      },
      +                      "protocol": {
      +                        "type": "string"
      +                      },
      +                      "username": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "host",
      +                      "port",
      +                      "protocol",
      +                      "username",
      +                      "password"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "entries": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "format": {
      +                "type": "string"
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "isp": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "name": {
      +                "type": "string"
      +              },
      +              "network": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "proxy_id": {
      +                "type": "string"
      +              },
      +              "region": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "rotation_mode": {
      +                "type": "string"
      +              },
      +              "rotation_period_seconds": {
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              },
      +              "zip": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "proxy_id",
      +              "name",
      +              "rotation_period_seconds",
      +              "rotation_mode",
      +              "format",
      +              "credentials",
      +              "entries",
      +              "activation_note",
      +              "created_at"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "next_renewal_price_cents": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "plan_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "rotation_url": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "status": {
      +          "enum": [
      +            "provisioning",
      +            "active",
      +            "expired",
      +            "refunded",
      +            "exhausted"
      +          ],
      +          "type": "string"
      +        },
      +        "type": {
      +          "enum": [
      +            "shared",
      +            "dedicated_standard",
      +            "dedicated_premium"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "status",
      +        "data_gb_total",
      +        "data_bytes_used",
      +        "charged_price_cents",
      +        "expires_at",
      +        "gateway",
      +        "lists"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "proxy"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changedv1.1.8
    • addedInput schema / properties / proxy_id / description
      Added value: +"prx_... id"
    • addedInput schema / properties / proxy_id / pattern
      Added value: +"^(?:prx_[A-Za-z0-9_-]{1,64}|PRX[A-Za-z0-9]{1,32})$"
  4. First observedv1.1.3

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the destructive/non-idempotent annotations, it discloses exactly what is mutated: one plan period is added, balance is charged at the renewal price, and a shared proxy also receives its plan's GB from the renewal. It also explains the price-guard failure mode (refused uncharged) and eligibility windows, which are not derivable from the annotations.

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

Conciseness4/5

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

The core action leads the first sentence and qualifications follow, so it is well front-loaded. It is dense — one long semicolon-chained sentence plus a fragment — but nearly every clause carries operational information.

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

Completeness5/5

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

For a paid mutation with only two parameters, the description covers what is charged, how to obtain the approved price, the eligibility boundary per proxy type, and the refusal path, while a return schema exists for output details. Nothing an agent needs before invoking it appears missing.

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?

Schema coverage is 100%, so the baseline is 3; the description earns a point by pointing to get_proxy_status.next_renewal_price_cents as the authoritative price source. However, the rest of the max_price_cents explanation largely restates the schema's own prose about the refusal-without-charge behavior.

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

Purpose4/5

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

States a specific verb and resource ('Extend a proxy by one more period of its plan') plus the payment mechanism, which separates it in spirit from purchase_proxy and topup_proxy. It never names those siblings explicitly, so the agent must infer the boundary, but the action itself is unmistakable.

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?

Gives concrete eligibility conditions: a dedicated proxy must still be active, a shared one can be renewed up to 7 days after expiry. These are real when-it-applies rules rather than generic advice, though no sibling tool or exclusion case (e.g. when to use topup_proxy instead) is named.

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