Skip to main content
Glama
sap-ui-automation

sap-ui-automation

by DidroAI

Look at the SAP screen

sap_look
Read-onlyIdempotent

Reads an open SAP screen as compact text with control IDs, labels, values, states, table rows, popups, and status messages, so agents can inspect UI elements and retrieve IDs before acting.

Instructions

The SAP screen as compact text: header, one line per control (id, type, label = "value", state), tables as rows, popups as WINDOW, status bar last. Call it first, for the ids; after sap_act it is rarely needed (that answer is the new screen). Again only to read more: a grid or list shows the rows on screen and the total, read others with id and rows (200 at most), never conclude an entry is missing from the rows on screen; a dropdown, tree or text whole: id; menus: id "mbar", one menu whole: id "menu[2]"; toolbar buttons and hidden ids: full. Charts: sap_screenshot.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sap_look"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoone control whole: dropdown, grid, table, tree, list
colsNowith id: columns by id or title, e.g. "VBELN,NETWR"
diffNoonly what changed since your last view
fullNoevery id and toolbar button (larger)
rowsNowith id: rows from 0, e.g. "120-180"
sessionNonumber, id, system, transaction or sapgui|webgui|fiori; default: the active one

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/closed-world, so the marginal bar is lower, and the description still adds real context: rows on screen are a window over the total, reads are capped at 200 rows, and 'never conclude an entry is missing from the rows on screen'. That caveat is exactly the kind of trap an agent would otherwise fall into. It does not describe error behavior or how 'diff' results are framed.

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 output format before usage, and every sentence carries information rather than filler. The telegraphic fragments ('a dropdown, tree or text whole: id') are compact but occasionally require re-reading, which costs a point against a perfect score.

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?

With no output schema, the description carries the return-format burden and does so concretely, including pagination limits and a warning against false negatives. Remaining gaps are minor: no statement of failure modes, and 'diff' semantics are only implied by the phrase 'only what changed since your last view'.

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 baseline is 3, but the description adds concrete usage that the schema lacks: id values 'mbar' for menus and 'menu[2]' for a single menu, the 200-row cap on rows, and that 'full' returns every id and toolbar button. 'diff' and 'session' are left to the schema, keeping it from a 5.

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 gives a specific verb (read the SAP screen) and spells out the exact shape of the result: header, one line per control with id/type/label/state, tables as rows, popups as WINDOW, status bar last. It also separates itself from siblings by naming sap_act (whose answer is the new screen) and sap_screenshot (for charts).

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?

Explicit routing: 'Call it first, for the ids', plus the when-not case ('after sap_act it is rarely needed') and an alternative for charts ('sap_screenshot'). It also states that the call is only needed again to read more, which tells the agent not to re-poll after every action.

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