Skip to main content
Glama

tm_update_profile

DestructiveIdempotent

Modify an existing traffic profile by ID, updating only specified fields (duration, target URL, RPS curve) while preserving others. Prevents duplicate names on rename.

Instructions

Update an existing profile by id. Fields you omit are kept as-is.

The underlying API endpoint is a full PUT (the request body replaces every field of the profile), but exposing that directly would force the AI to GET-then-PUT in two calls for every tweak. This tool does the read-merge-write internally: fetches the current profile, overlays the kwargs you provided, PUTs the merged body back.

Use this when you know the profile's id. Examples:

  • "Make this profile last 5 minutes instead of 1" → call with profile_id=42, duration_seconds=300.

  • "Switch the target to staging" → profile_id=42, target_url='https://staging.example.com/api'.

  • "Replace the RPS curve" → profile_id=42, points=[...].

Fields not yet exposed (scripts / alerts / schedule) are preserved verbatim from the existing profile.

Rename caveat: the server's PUT endpoint correctly routes by path id (it pins the request body's profile id to the path id, so the save path takes its id-based update branch). But the server does NOT enforce name uniqueness, so a rename to another profile's name would create a duplicate- named pair. To keep the data model clean and AI workflows predictable, this tool still pre-flights a GET /profiles whenever the name kwarg changes the current value, and raises :class:ToolError if the new name collides with any other profile (whitespace + case-insensitive match, mirroring the server's normalization). Updates that don't change the name skip this check entirely (no extra roundtrip).

Returns the full updated profile dict.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
profile_idYes
nameNo
target_urlNo
duration_secondsNo
pointsNo
http_methodNo
request_bodyNo
request_headersNo
loopNo
Behavior5/5

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

Annotations destructiveHint and idempotentHint are present, but the description adds significant context: internal read-merge-write, rename uniqueness check with GET pre-flight, preservation of unexposed fields, and return value. No contradictions.

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?

Well-structured with clear paragraphs and front-loaded purpose. Slightly verbose but every sentence adds value, including examples and caveats.

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

Completeness4/5

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

Covers internal behavior, rename uniqueness check, and return value. Missing details on error scenarios (e.g., when profile_id not found) but sufficient for an update tool with 9 params and no output schema.

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

Parameters3/5

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

With 0% schema coverage, the description partially compensates by explaining key parameters via examples (profile_id, duration_seconds, target_url, points, name). However, not all 9 parameters are documented (e.g., http_method, request_body, request_headers, loop are unmentioned).

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 'Update an existing profile by id' and explains partial update semantics. It distinguishes from siblings like tm_create_profile (creation) and tm_delete_profile (deletion).

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?

Explicitly says 'Use this when you know the profile's id' and provides examples. Lacks explicit exclusions (e.g., 'do not use to create') but context makes it clear.

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/trafficmorph-gif/tm-mcp'

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