Skip to main content
Glama

Update a query / API

appsmith_update_query

Updates an existing query or API call by modifying only the fields you specify (body, path, headers, method, or parameters) while preserving all other settings, datasource, and untouched configuration.

Instructions

Edits an existing query or API action. Only the fields you pass are changed — the server merges the rest, so the datasource and untouched settings are preserved. Does not rename: renaming needs a refactor that rewrites bindings across the app.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoQuery text: SQL, Mongo/plugin body, or REST request body.
pathNoREST only: path appended to the datasource URL.
headersNoREST only: request headers. Replaces the existing list.
actionIdYesAction id, from appsmith_list_queries.
httpMethodNoREST only: HTTP method.
queryParametersNoREST only: query string parameters. Replaces the existing list.
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral transparency burden. It discloses that it merges (partial update, only passed fields change, datasource preserved) and explicitly warns that renaming is not supported because it rewrites bindings. This is genuinely useful behavioral context beyond the schema. It doesn't mention idempotency, error behavior, or response format, but the merge semantics and rename limitation are strongly transparent.

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?

Two sentences, zero wasted words. Each sentence earns its place: first establishes the purpose and merge semantics, second clarifies the rename limitation. Front-loaded with the core action and scoping. Excellent economy.

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?

For a 6-param update tool with 100% schema coverage and no output schema, the description covers the essential semantics: merge behavior, rename limitation, and scope. The REST-only restrictions are handled by the schema. Could briefly mention idempotency/response, but for a partial-update tool with strong schema support this is reasonably complete.

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 100%, so all 6 params are documented in the schema. The description adds meaningful value by clarifying the merge behavior ('Only the fields you pass are changed — the server merges the rest'), which changes how an agent should treat partial updates. The REST-only restrictions are already in the schema. Slight gap: no elaboration on how REST-only vs query params interact with the merge semantics, but overall adds value.

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?

Clear verb+resource ('Edits an existing query or API action') with an explicit merge semantics statement telling the agent that only passed fields change and the datasource/settings are preserved. It also proactively distinguishes from renaming behavior, which clarifies the tool's exact scope against update tools in the sibling list.

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?

States clearly what the tool does (edits existing query/API) and explicitly notes what it does NOT do (rename, which needs a refactor). This contextualizes when the tool is appropriate. However it doesn't name sibling alternatives (e.g., create_query, appsmith_execute_query) explicitly, though the distinction is reasonably implied.

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/Davidgraciano/appsmith-mcp'

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