agentsclimarketplace

Tensorflow serving endpoint querying

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/tensorflow-serving-endpoint-querying

Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill tensorflow-serving-endpoint-querying

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when you have deployed a TensorFlow model via TensorFlow Serving in a containerized environment (e.

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.4 KB, as published. Nobody here has run it

tensorflow-serving-endpoint-querying

Summary

Query a TensorFlow Serving endpoint to retrieve and validate model metadata, including input and output layer names. This skill is essential for verifying that a deployed model exposes the correct layer interface before performing inference requests.

When to use

Use this skill when you have deployed a TensorFlow model via TensorFlow Serving in a containerized environment (e.g., Docker) and need to confirm that the /model/metadata endpoint correctly reports expected input layer names ('input_2048' and 'input_4096') and output layer name ('output'), or when integrating a TensorFlow Serving passthrough with an overlying API layer that requires validated layer metadata.

When NOT to use

  • The model has not yet been deployed or the TensorFlow Serving container is not running.
  • You are testing model inference accuracy rather than metadata schema — use inference endpoints (/predict) instead.
  • The model layer names are already known and validated in a prior integration step.

Inputs

  • running TensorFlow Serving container URL (e.g., http://localhost:8501)
  • HTTP client or curl command-line tool
  • expected layer name schema (input_2048, input_4096, output)

Outputs

  • JSON file containing the complete /model/metadata API response
  • parsed input layer names and output layer name
  • validation status (pass/fail)

How to apply

Start the Dockerized TensorFlow Serving container using docker-compose. Send an HTTP GET request to the /model/metadata endpoint on the running container. Parse the JSON response to extract the input and output layer name fields. Validate that the parsed layer names match the expected schema (inputs: 'input_2048' and 'input_4096'; output: 'output'). If the validation passes, write the complete metadata response to a JSON file for reference; if layer names do not match, log the discrepancy and halt integration until the model or serving configuration is corrected, as mismatched layer names indicate that downstream inference code will fail.

Related tools

  • TensorFlow Serving (HTTP endpoint provider that exposes /model/metadata for layer introspection)
  • docker (container runtime for executing the TensorFlow Serving environment)
  • docker-compose (orchestration tool to start and manage the Dockerized NP-Classifier server)
  • curl or HTTP client library (sends HTTP GET request to /model/metadata and retrieves JSON response)

Examples

curl -X GET http://localhost:8501/v1/models/np_classifier/metadata | jq '.metadata.signature_def.serving_default.inputs | keys, .outputs | keys' && echo 'Layer names validated: input_2048, input_4096, output'

Evaluation signals

  • HTTP response status code is 200 OK and response body is valid JSON.
  • Parsed response contains 'input_2048' and 'input_4096' as input layer names and 'output' as the output layer name.
  • Metadata JSON file is successfully written to disk and contains all expected fields.
  • No layer name mismatches are detected; all layer names conform to the expected schema.
  • The /model/metadata endpoint response is consistent across multiple sequential queries (idempotency check).

Limitations

  • The skill assumes TensorFlow Serving is already built, configured, and running; it does not cover model conversion, Docker image build, or container startup troubleshooting.
  • Layer names are fixed in the trained model artifact and cannot be changed via the metadata endpoint alone; if layer names do not match expectations, the model file or training pipeline must be corrected.
  • The skill validates only metadata schema, not model weights, input shape validation, or inference correctness — a metadata validation pass does not guarantee downstream inference will succeed.

Evidence

  • [other] Does the TensorFlow Serving endpoint at /model/metadata successfully return model metadata including the correct input and output layer names when queried on the running Dockerized NP-Classifier server?: "Does the TensorFlow Serving endpoint at /model/metadata successfully return model metadata including the correct input and output layer names"
  • [other] The expected model layer names that should be returned by the /model/metadata endpoint are input layers 'input_2048' and 'input_4096', and output layer 'output'.: "expected model layer names that should be returned by the /model/metadata endpoint are input layers 'input_2048' and 'input_4096', and output layer 'output'"
  • [other] 1. Start the Dockerized NP-Classifier server using docker-compose. 2. Send an HTTP GET request to the /model/metadata endpoint on the running TensorFlow Serving container. 3. Parse the JSON response and extract input/output layer name fields. 4. Validate that input layers are named 'input_2048' and 'input_4096' and output layer is named 'output'. 5. Write the complete metadata response to a JSON file.: "Start the Dockerized NP-Classifier server using docker-compose. Send an HTTP GET request to the /model/metadata endpoint on the running TensorFlow Serving container. Parse the JSON response and"
  • [readme] We pass through tensorflow serving at this url: /model/metadata: "We pass through tensorflow serving at this url: /model/metadata"
  • [readme] If the model input names change, then we need to change it in the code: "If the model input names change, then we need to change it in the code"

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.