Skip to main content
Glama
Portward

Portward

by hamzaelsiesy

get_selection

Retrieve the exact rows and columns a user selected in the Portward results panel by passing the selection ID from their message; selections remain readable for up to 24 hours.

Instructions

Get the rows the user put in the chat from the Portward results panel: exactly the rows and columns they picked. Call it only with a selection id the user's message gave you ("use my selection sel_..."); don't guess ids or reuse a pull_id. You can read a selection again while it lasts (24 hours at most).

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": {
      "selection_id": "<selection_id>"
    },
    "name": "get_selection"
  }
}

Input Schema

NameRequiredDescriptionDefault
selection_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose two useful traits beyond the schema: the result is re-readable and selections expire after 24 hours, which implies a read-only, non-destructive operation. It stops short of saying what happens on an expired or invalid id, or what the response shape looks like.

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?

Three tight sentences with the resource description front-loaded and constraints following in priority order. Nothing is redundant, though the parenthetical quoted user phrasing is slightly more illustrative 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?

For a one-parameter read tool with no output schema, the definition covers purpose, trigger condition, id provenance, and lifetime. The remaining gap is error/empty behavior (expired selection, id that does not exist), which matters given the explicit 24-hour expiry it advertises.

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 0%, so the description must compensate for the single undocumented parameter, and it largely does: it constrains the provenance (must come from the user's message), warns against guessing, and rules out reusing a pull_id. It shows a 'sel_...' prefix but does not state the id format formally or that it is case-sensitive.

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 description gives a specific verb and resource ('Get the rows the user put in the chat from the Portward results panel') and narrows scope to 'exactly the rows and columns they picked.' It implicitly separates this from a pull-id based retrieval, but it never distinguishes itself from adjacent siblings like kept_rows or keep_rows, which an agent could plausibly confuse with a user selection.

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

Usage Guidelines5/5

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

It states a hard precondition ('Call it only with a selection id the user's message gave you') plus explicit exclusions ('don't guess ids or reuse a pull_id'), so the agent knows both when to call and when not to. The quoted example phrasing ('use my selection sel_...') further anchors the trigger condition.

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