Skip to main content
Glama
Portward

Portward

by hamzaelsiesy

create_profile

Define a named visibility profile that controls which columns, tables and totals the AI can see, with optional anonymised stand-ins. Apply it to a connection to enforce per-job data access.

Instructions

Create a profile: a named bundle of what the AI may see, for one job. grants name columns as schema.table.column or table.column (the AI then sees each in full); anonymised names columns the AI sees only as stand-ins (the same value always gets the same stand-in, so it can still filter, group and join on them; the user sees the real values in the panel); totals names columns the AI may only sum, average or count, with small groups left out (numbers only: on any other column it falls to hidden); tables grants whole tables, listing their columns now from source, so columns added later stay hidden. Each column gets one level. Anything no applied profile grants is hidden. Apply it to a connection with apply_profile.

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": {
      "name": "<name>",
      "description": "<description>"
    },
    "name": "create_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
grantsNo
sourceNo
tablesNo
totalsNo
anonymisedNo
descriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden and does so well: it explains the four grant levels, deterministic stand-ins for anonymised values, small-group suppression for totals, the numbers-only fallback, the table-snapshot behavior of `tables`, and the default-deny rule ('Anything no applied profile grants is hidden'). These are substantive behavioral and privacy semantics that an agent could not infer from the schema alone.

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 dense but front-loaded, opening with the core definition before detailing each grant level. It is appropriately sized for a seven-parameter privacy-configuration tool, though the nested parentheticals make some clauses harder to parse than necessary.

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?

Given seven parameters, no annotations, no output schema, and no schema descriptions, the definition is substantially complete: it covers the nontrivial parameters, the grant model, default denial, and the connection step. It does not describe the return value or error behavior (for example, duplicate profile names), which are minor gaps.

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 description coverage is 0%, so the description must compensate, and it does for the semantically complex parameters: `grants`, `anonymised`, `totals`, `tables`, and `source` are all explained with formats and effects. The remaining required parameters (`name`, `description`) are self-explanatory, though the description does not specify precedence when the same column appears under multiple grant levels.

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 states a specific verb and resource ('Create a profile') and immediately defines what a profile is: 'a named bundle of what the AI may see, for one job.' It also distinguishes the tool from its sibling by telling the agent to apply the result with apply_profile.

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 clearly indicates that the created profile is used via apply_profile, giving the agent a follow-up path. However, it does not explain when to create a new profile versus update_profile or start_profile_from_block_rules, so some sibling-selection guidance is left implicit.

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