Shorten multiple URLs in a single call (max 20). Returns per-URL results including any errors. Each successful result includes estimatedTokensSaved — the per-substitution token saving if that slug is used in place of the full URL in future context. Savings are only realized when slugs are reused;...
AI agents use bulk_shorten_urls to create or update resources in Url Shortener — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Url Shortener environment.
This tool creates new shortened URL records in bulk. It is a Write operation (reversible via delete_url/delete_all_urls siblings). The blast radius is medium because an agent could create up to 20 short links per call, potentially spamming or creating misleading redirects, but it does not delete data or move money.
From the tool's definition 'Shorten multiple URLs in a single call' — creates short links (new records) for up to 20 URLs, returning per-URL results including slugs
Attacks that exploit this kind of access
Shorten multiple URLs in a single call (max 20). Returns per-URL results including any errors. Each successful result includes estimatedTokensSaved — the per-substitution token saving if that slug is used in place of the full URL in future context. Savings are only realized when slugs are reused; this field does not account for the upfront cost of this tool call. It is categorised as a Write tool in the Url Shortener MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Url Shortener MCP server in PolicyLayer and add a rule for bulk_shorten_urls: 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 Url Shortener. Nothing to install.
bulk_shorten_urls is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the bulk_shorten_urls 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.
Set action: deny in the PolicyLayer policy for bulk_shorten_urls. 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.
bulk_shorten_urls is provided by the Url Shortener MCP server (michaelshumshum/url-shortener-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →