Skip to main content
Glama

Set auto-renew on a rental, number or proxy

toggle_auto_renew
DestructiveIdempotent

Turn auto-renewal on or off for a rental, dedicated number, or proxy. Enable it to charge each new period to your balance, or disable it to stop recurring charges.

Instructions

Turn auto-renewal on or off for a long-term rental (ren_...), a dedicated number (ded_...) or a Standard dedicated proxy (prx_...). When on, each new period is charged to your balance at next_renewal_price_cents; for a number, if that charge fails, auto-renew switches off and the number expires at the end of its period. A proxy renews about 12 hours before expiry and expires if it cannot be renewed by then. Turning it off needs Manage access. Turning it on needs Buy access and is otherwise refused with PERMISSION_DENIED; an app connection can never turn it on (the account owner does that in the dashboard). Ask the user before turning it on.

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": {
      "rental_id": "<rental_id>",
      "auto_renew": "<auto_renew>"
    },
    "name": "toggle_auto_renew"
  }
}

Input Schema

NameRequiredDescriptionDefault
rental_idYesren_..., ded_... or prx_... id
auto_renewYes

Output Schema

NameRequiredDescriptionDefault
proxyNo
rentalNo
dedicated_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2.1.0
    • addedOutput schema / properties / dedicated_number / properties / messages / items / properties / content_withheld
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / dedicated_number / properties / messages / items / properties / text / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / dedicated_number / properties / payment_due
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "amount_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "since": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "amount_cents",
      +        "since"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / rental / properties / messages / items / properties / content_withheld
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / rental / properties / messages / items / properties / text / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / rental / properties / payment_due
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "amount_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "since": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "amount_cents",
      +        "since"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Changed5 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"
    • changedInput schema / properties / rental_id / description
      Previous value: -"ren_... or ded_..."New value: +"ren_..., ded_... or prx_... id"
    • changedInput schema / properties / rental_id / pattern
      Previous value: -"^(?:(?:ren|ded)_[A-Za-z0-9_-]{1,64})$"New value: +"^(?:(?:ren|ded)_[A-Za-z0-9_-]{1,64}|prx_[A-Za-z0-9_-]{1,64}|PRX[A-Za-z0-9]{1,32})$"
    • 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
      Added value: +{
      +  "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"
      +    },
      +    "topup_prices": {
      +      "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"
      +        }
      +      ]
      +    },
      +    "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"
      +}
  3. Changed1 schema field changedv1.2.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "dedicated_number": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "auto_renew": {
      +          "type": "boolean"
      +        },
      +        "billing_period": {
      +          "type": "string"
      +        },
      +        "charged_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "country": {
      +          "type": "string"
      +        },
      +        "country_name": {
      +          "type": "string"
      +        },
      +        "created_at": {
      +          "type": "string"
      +        },
      +        "display_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "expires_at": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "messages": {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "code": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "received_at": {
      +                "type": "string"
      +              },
      +              "text": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "text",
      +              "received_at"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "next_renewal_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "nickname": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "paid_until": {
      +          "type": "string"
      +        },
      +        "phone_number": {
      +          "type": "string"
      +        },
      +        "quoted_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "status": {
      +          "enum": [
      +            "active",
      +            "expired"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "status",
      +        "phone_number",
      +        "country",
      +        "country_name",
      +        "billing_period",
      +        "quoted_price_cents",
      +        "charged_price_cents",
      +        "next_renewal_price_cents",
      +        "auto_renew",
      +        "created_at",
      +        "paid_until",
      +        "expires_at"
      +      ],
      +      "type": "object"
      +    },
      +    "rental": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "auto_renew": {
      +          "type": "boolean"
      +        },
      +        "can_cancel": {
      +          "type": "boolean"
      +        },
      +        "cancel_window_expires_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "charged_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "country": {
      +          "type": "string"
      +        },
      +        "created_at": {
      +          "type": "string"
      +        },
      +        "display_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "duration": {
      +          "type": "string"
      +        },
      +        "expires_at": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "messages": {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "code": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "received_at": {
      +                "type": "string"
      +              },
      +              "text": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "text",
      +              "received_at"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "next_renewal_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "paid_until": {
      +          "type": "string"
      +        },
      +        "phone_number": {
      +          "type": "string"
      +        },
      +        "re_rent_available": {
      +          "type": "boolean"
      +        },
      +        "re_rent_blocked_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "re_rent_price_cents": {
      +          "anyOf": [
      +            {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "refunded_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "rental_type": {
      +          "const": "rental",
      +          "type": "string"
      +        },
      +        "service_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "service_name": {
      +          "type": "string"
      +        },
      +        "status": {
      +          "enum": [
      +            "active",
      +            "expired",
      +            "cancelled"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "status",
      +        "phone_number",
      +        "service_id",
      +        "service_name",
      +        "country",
      +        "duration",
      +        "rental_type",
      +        "charged_price_cents",
      +        "auto_renew",
      +        "next_renewal_price_cents",
      +        "re_rent_available",
      +        "re_rent_price_cents",
      +        "re_rent_blocked_at",
      +        "created_at",
      +        "paid_until",
      +        "expires_at",
      +        "can_cancel"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Changed2 schema fields changedv1.1.8
    • changedInput schema / properties / rental_id / description
      Previous value: -"ren_xxx or ded_xxx"New value: +"ren_... or ded_..."
    • addedInput schema / properties / rental_id / pattern
      Added value: +"^(?:(?:ren|ded)_[A-Za-z0-9_-]{1,64})$"
  5. First observedv1.1.3

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description explains billing behavior at next_renewal_price_cents, what happens if a number charge fails, the approximately 12-hour proxy renewal window, permission requirements with PERMISSION_DENIED, and the app-connection restriction. These are substantive behavioral details that materially affect correct invocation.

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?

The description is front-loaded with the core action, then layers in billing, failure, permission, and confirmation details in a compact sequence. Each sentence contributes necessary operational context, and the final line appropriately instructs the agent to confirm with the user before enabling.

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?

Given two parameters, an output schema, and annotations covering safety and idempotency, the description is complete for correct invocation. It covers resource scope, billing effects, permission requirements, failure behavior, and user-confirmation expectations without needing to explain return values.

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 50%, with rental_id already described as accepting ren_, ded_, or prx_ identifiers. The description reinforces those prefixes and explains that auto_renew turns renewal on or off, adding useful meaning to the otherwise undocumented boolean parameter.

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?

The description opens with a specific verb and resource: 'Turn auto-renewal on or off' for rentals, dedicated numbers, or Standard dedicated proxies. It names the exact ID prefixes (ren_, ded_, prx_) so the agent can identify the applicable resource types without opening the schema.

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?

It gives clear operational context: turning off requires Manage access, turning on requires Buy access, app connections can never turn it on, and the agent should ask the user before enabling it. It does not explicitly name alternatives such as using renew_proxy for an immediate manual renewal, so it stops short of full when-to-use vs alternative guidance.

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