Skip to main content
Glama
andhikapraa
by andhikapraa

update_restrictions

Modify dietary restrictions for Warteg Online meal deliveries by setting protein, ingredient, or flavor preferences using restriction IDs.

Instructions

    Update the user's dietary restrictions (pantangan).

    Args:
        restriction_ids: Comma-separated list of restriction IDs to set.
                        Use empty string or omit to clear all restrictions.

    Available IDs:
        Protein: 1=No Udang, 2=No Ikan, 3=No Sapi, 13=No Cumi, 15=No Seafood
        Additional: 4=No Kecombrang, 7=No Sayur, 10=No Telur, 12=No Olahan Susu, 14=No Kacang
        Rasa: 5=No Pedas, 11=No Mayo

    Returns:
        Result of the update operation
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
restriction_idsNo
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly indicates this is a mutation operation ('Update') and shows how to clear restrictions, but doesn't mention authentication requirements, error conditions, side effects, or what 'Result of the update operation' actually contains.

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 description is well-structured with clear sections (purpose, args, available IDs, returns) and every sentence adds value. It could be slightly more concise by integrating the 'Available IDs' section more tightly with the parameter explanation, but overall it's efficient and front-loaded.

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

Completeness3/5

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

For a mutation tool with no annotations and no output schema, the description does well on parameter documentation but lacks important behavioral context. It doesn't explain what the return value contains, error handling, authentication needs, or side effects. The parameter coverage is excellent, but other aspects are incomplete.

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

Parameters5/5

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

The schema has 0% description coverage, so the description must fully explain the parameter. It provides comprehensive documentation: the parameter name, format ('comma-separated list'), special values ('empty string or omit to clear'), and a detailed mapping of IDs to dietary restrictions across three categories (Protein, Additional, Rasa).

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 clearly states the specific action ('Update') and resource ('user's dietary restrictions') with the local term 'pantangan' providing additional context. It distinguishes from sibling tools like 'get_my_restrictions' (read-only) and 'get_available_restrictions' (reference data).

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?

The description provides clear context for when to use this tool (to set or clear dietary restrictions) and implicitly distinguishes it from read-only siblings. However, it doesn't explicitly state when NOT to use it or mention alternatives like bulk operations or other user profile updates.

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/andhikapraa/wartegonline-mcp'

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