Skip to main content
Glama

Ucode SMS

Rent a number (agent: API key or pay-per-SMS)

ucode_agent_rent

Rent one virtual number for a lawful SMS verification. Pays from the agent wallet when a uc_live_ API key is active (from ucode_agent_buy_credits, ucode_agent_use_api_key, or an Authorization: Bearer uc_live_… header on the MCP connection). Without a key it uses pay-per-SMS: first call returns PAYMENT_REQUIRED (x402, USDC on Base); call again with paymentHeader. Returns phone, id and pollToken → then call ucode_agent_check_sms. Signed-in human accounts should use ucode_sms_rent_with_credits instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiKeyNouc_live_… key if not already active in this session
countryNocountryId (preferred), ISO code or name
purposeYesWhy the number is needed
serviceYesService code from ucode_find_numbers, e.g. tg
paymentHeaderNox402 X-PAYMENT value for pay-per-SMS
acceptLawfulUseYesMust be true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, open-world, non-destructive operation; the description goes well beyond that by disclosing the two payment paths, the exact key-activation sources (buy_credits, use_api_key, Bearer header), the x402 USDC-on-Base PAYMENT_REQUIRED handshake, and the returned phone/id/pollToken. This is the auth and billing context an agent needs before invoking.

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?

Front-loaded with the core action and efficient overall, but the parenthetical list of key sources makes one sentence long and dense. No wasted sentences, though the payment-branch explanation is compressed into a single run-on.

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?

There is no output schema, so the description carries the return contract and does so (phone, id, pollToken), names the next tool to call, and names the alternative for a different caller class. For a 6-param, 3-required mutation with a two-step payment flow, nothing essential is 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 description coverage is 100%, so the baseline is 3; the description adds real meaning on top by explaining how apiKey becomes active and what paymentHeader is for in the retry flow. It does not, however, clarify country resolution defaults or the purpose enum beyond what the schema already lists.

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?

States a specific verb and resource ("Rent one virtual number for a lawful SMS verification") and immediately distinguishes itself from the sibling it is not for ("Signed-in human accounts should use ucode_sms_rent_with_credits instead"). An agent can separate this from ucode_sms_rent_packages, ucode_sms_rent_with_credits, and ucode_sms_rent_provider_direct without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use branches: with an active uc_live_ key it pays from the agent wallet; without a key it falls into pay-per-SMS and must be retried with paymentHeader. It also names the alternative tool and the condition that selects it, plus the follow-up call to ucode_agent_check_sms.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources