Skip to main content
Glama
J-MaFf

s2-netbox-mcp

by J-MaFf

get_picture

Retrieve a person's ID photo as Base64-encoded JPEG by PERSONID. Use PICTUREURL for lightweight file identification without large payload.

Instructions

Returns a person's photo ID image (wraps NBAPI GetPicture). The response's PICTURE field is a Base64-encoded JPEG and may be very large — a full-size badge photo runs to hundreds of kilobytes of Base64 text, so prefer PICTUREURL when you only need to identify the file. The response also carries PERSONID, PICTUREURL, LASTNAME, FIRSTNAME and LASTMOD. The payload is passed through unmodified: this tool neither decodes, resizes nor truncates the Base64 string. A person with no photo answers FAIL with "No picture URL for this person ID" or "Picture file does not exist"; an oversized image answers "Person picture image file size exceeds maximum to be returned/exported".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
PERSONIDYesRequired. The PERSONID of the person whose picture should be retrieved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden, and it excels: it discloses that the payload is passed through unmodified (no decode/resize/truncate), warns about the potentially very large Base64 string, and enumerates the exact error messages for missing or oversized images. It also lists all response fields, giving the agent a complete behavioral picture.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Though longer than average, every sentence earns its place: the core purpose is front-loaded, followed by a critical size caveat, response fields, pass-through behavior, and error cases. The structure is logical and skimmable, with no redundancy or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with no output schema and no annotations, this description is exhaustive. It covers the return format, the size concern, the unmodified pass-through, and the exact error conditions. An agent has everything needed to call the tool correctly and handle the response, with no gaps.

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 coverage is 100% — the only parameter, PERSONID, is already documented as required and described. The description adds no new parameter-specific meaning beyond what the schema provides; it mentions PERSONID in the response fields but not in a way that clarifies the input. Baseline 3 is appropriate because the schema already handles parameter semantics fully.

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 opens with a specific verb and resource: 'Returns a person's photo ID image', and names the underlying API it wraps (NBAPI GetPicture). It clearly distinguishes this from sibling tools like get_person, which returns person data rather than the image. The additional detail on response fields and error cases leaves no ambiguity about the tool's purpose.

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 explicitly advises preferring PICTUREURL when only file identification is needed, citing the large Base64 size, which is a concrete when-to-use alternative. Though no sibling tool serves the same function, the guidance about which response field to use is a clear usage directive. It also implies when to expect errors, adding context for the agent's decision-making.

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