Skip to main content
Glama
Portward

Portward

by hamzaelsiesy

apply_profile

Applies visibility profiles to a data connection so the AI sees only granted records, reporting matched, hidden, and absent grants before enforcing access.

Instructions

Apply a profile to a connection. Shows each grant as matched, hidden here instead (with why) or not in your data, with counts; refused only when nothing matches. From then on the AI sees only what the applied profiles grant on that connection, and its block rules stop applying. Several profiles on one connection add up. Switching from block rules, or showing more, 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>",
      "source": "<source>"
    },
    "name": "apply_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYes
profileYes

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 disclosure burden and does it well: it describes the match/hidden/absent outcome reporting, that the call is refused when nothing matches, that the AI's view narrows to the applied grants on that connection, that block rules stop applying, that multiple profiles are additive, and that some transitions require user confirmation. It does not address how to revert the effect, which an agent would want to know.

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 core action is front-loaded and the remaining sentences each add behavioral substance. A few phrases, such as 'hidden here instead (with why) or not in your data', are dense to the point of being cryptic, but there is no filler.

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 state-changing tool with no annotations, no output schema, and undocumented parameters, the description supplies strong behavioral context, including essentially what the result view shows. The main gaps are parameter formats and how the change is undone, which the sibling unapply_profile presumably handles.

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. 'Apply a profile to a connection' loosely maps to the two parameters (profile and source-as-connection), but it never explicitly ties the 'source' parameter to the connection concept or gives any format guidance, leaving partial ambiguity.

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?

The first sentence states a specific verb and resource ('Apply a profile to a connection'), which an agent can distinguish from the unapply_profile sibling. It stops short of naming alternatives, but the action is unambiguous.

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 context is implied rather than spelled out: the description notes that switching from block rules or showing more 'asks the user first', which is useful precondition information. There is no explicit statement of when to prefer this over unapply_profile, create_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.