Skip to main content
Glama
Portward

Portward

by hamzaelsiesy

update_profile

Save a new version of an access profile to rename it, edit its description, or add and remove data grants with full, anonymised, or totals-only visibility.

Instructions

Save a new version of a profile: rename it, change its description, add grants in full (add, or whole tables from source), anonymised (anonymised: the AI sees stand-ins) or totals only (totals), or remove grants (remove). Adding a column already granted changes its level. Each save publishes a whole new version. Letting the AI see more through a profile that's applied somewhere asks the user first.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "profile": "<profile>"
    },
    "name": "update_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNo
nameNo
removeNo
sourceNo
tablesNo
totalsNo
profileYes
anonymisedNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the load and does real work: it discloses that every save creates a new whole version, that granting an existing column escalates its level, and that widening AI visibility on an applied profile triggers a user confirmation. Gaps remain on reversibility and failure modes, but the key mutation behaviors are disclosed.

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, then dense parentheticals covering each grant mode; nearly every clause earns its place. The single long sentence with backticked parentheticals is harder to scan than a short list would be.

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 9-parameter mutation tool with no annotations and no output schema, the description covers grant modes, versioning behavior and the confirmation rule. It is only short on identifying the target `profile` and on what a successful save returns.

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?

Schema description coverage is 0%, so the description must compensate; it explains add, remove, tables-from-source, anonymised ('AI sees stand-ins'), totals, name and description. However, the required `profile` parameter and `source`'s accepted values are never clarified, leaving a genuine gap for a 9-parameter tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Save a new version of a profile') and enumerates the mutations it performs: rename, description, add/remove grants, anonymised, totals. It also conveys the update-in-place semantics ('publishes a whole new version'), which differentiates it from create_profile without naming it.

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

Usage Guidelines3/5

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

Usage is implied by the mutation framing — you call it to modify an existing profile, and it warns that expansion on an applied profile prompts the user. There is no explicit when-to-use/when-not-to-use guidance against siblings like create_profile, apply_profile, or start_profile_from_block_rules.

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