Skip to content

aws-dataprocessing-mcp-server: reponse from server takes to many tokes #1597

@DovAmir

Description

@DovAmir

Describe the feature

Describe the feature
response from aws-dataprocessing-mcp-server doing query to athena returns a lot of metadata that in addition to the actual response. The request is to allow the mcp to remove the metadata. and by that reduce the context length

Use Case

The case is to reduce the context length of the model, both for cost and model performance
this is an exmple metadata result for query like "select 1 as tmp"
{
"ResultSetMetadata": {
"ColumnInfo": [
{
"CatalogName": "hive",
"SchemaName": "",
"TableName": "",
"Name": "tmp",
"Label": "tmp",
"Type": "integer",
"Precision": 10,
"Scale": 0,
"Nullable": "UNKNOWN",
"CaseSensitive": false
}
]
}
}

Proposed Solution

Have the mcp remove the metadata and not pass it back to the model, or have a flag that allows the user to choose if the mcp removes the metadata or not.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestNew feature or requestneeds-triageThis needs to be handled, it is the first automatically assigned label to issues.

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions